<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Kommentare zu: Dynamic Resize Flash Application Container / Flash Stage ( without external JavaScript )</title>
	<atom:link href="http://blog.sebastian-martens.de/2010/06/resize-flash-application-container/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sebastian-martens.de/2010/06/resize-flash-application-container/</link>
	<description></description>
	<lastBuildDate>Wed, 21 Dec 2011 06:00:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>Von: dude</title>
		<link>http://blog.sebastian-martens.de/2010/06/resize-flash-application-container/#comment-2672</link>
		<dc:creator>dude</dc:creator>
		<pubDate>Wed, 21 Dec 2011 06:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sebastian-martens.de/?p=459#comment-2672</guid>
		<description>Hi,

This is nice tutorial,
What i want, i have one flash swf file.
the width is 200; height 200;
and i dynamically added the movieclip to 10,
then the total height of the movieclip is 400;

What i will do...pls help me for this.

thanks
Dude</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This is nice tutorial,<br />
What i want, i have one flash swf file.<br />
the width is 200; height 200;<br />
and i dynamically added the movieclip to 10,<br />
then the total height of the movieclip is 400;</p>
<p>What i will do&#8230;pls help me for this.</p>
<p>thanks<br />
Dude</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Niklas</title>
		<link>http://blog.sebastian-martens.de/2010/06/resize-flash-application-container/#comment-1325</link>
		<dc:creator>Niklas</dc:creator>
		<pubDate>Thu, 29 Sep 2011 09:32:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sebastian-martens.de/?p=459#comment-1325</guid>
		<description>Hi there Sebastian!
Really like your solution.
I used the javascript solution &quot;swffit&quot; before.
I have problems with IE9 with that solution so I found your solution. But I have problems with IE9 using this as well. When resizeInstance.resize is called the flash get distorted. It&#039;s like someone has taken one of the upper corners &amp; dragged it to the left &amp; the opposite bottom corner the opposite way. I´ve set the the width to 100% by changing the &quot;node.style.width=width+&#039;px&#039;&quot; in your as class to &quot;node.style.width=width+&#039;%&#039;&quot;. Initially I thought that this might be the problem but it wasn&#039;t... :(
Is this something that you&#039;ve heard of before?

Niklas</description>
		<content:encoded><![CDATA[<p>Hi there Sebastian!<br />
Really like your solution.<br />
I used the javascript solution &#8220;swffit&#8221; before.<br />
I have problems with IE9 with that solution so I found your solution. But I have problems with IE9 using this as well. When resizeInstance.resize is called the flash get distorted. It&#8217;s like someone has taken one of the upper corners &amp; dragged it to the left &amp; the opposite bottom corner the opposite way. I´ve set the the width to 100% by changing the &#8220;node.style.width=width+&#8217;px&#8217;&#8221; in your as class to &#8220;node.style.width=width+&#8217;%'&#8221;. Initially I thought that this might be the problem but it wasn&#8217;t&#8230; :(<br />
Is this something that you&#8217;ve heard of before?</p>
<p>Niklas</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Sebastian.Martens</title>
		<link>http://blog.sebastian-martens.de/2010/06/resize-flash-application-container/#comment-395</link>
		<dc:creator>Sebastian.Martens</dc:creator>
		<pubDate>Sat, 20 Aug 2011 15:24:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sebastian-martens.de/?p=459#comment-395</guid>
		<description>Hi stealz,

i haven&#039;t tried about this issue so far. But i&#039;m pretty sure that the video adoption, without having access to the source might not work. At least there are the traditional way of embedding video and the so called stage video mechanism, which is rendered by the GPU.

cheers.
Sebastian</description>
		<content:encoded><![CDATA[<p>Hi stealz,</p>
<p>i haven&#8217;t tried about this issue so far. But i&#8217;m pretty sure that the video adoption, without having access to the source might not work. At least there are the traditional way of embedding video and the so called stage video mechanism, which is rendered by the GPU.</p>
<p>cheers.<br />
Sebastian</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: stealz</title>
		<link>http://blog.sebastian-martens.de/2010/06/resize-flash-application-container/#comment-394</link>
		<dc:creator>stealz</dc:creator>
		<pubDate>Sat, 20 Aug 2011 14:59:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sebastian-martens.de/?p=459#comment-394</guid>
		<description>I&#039;m trying to fix an Ubuntu Fullscreen Flash issue on dual monitors: It is somehow not possible to control on which Monitor the fullscreen flash appears on.

I have found a way to move the fullscreen flash to a different monitor and resize the container window that is spawned by the browser. However the flash video will usually not adapt the new container window size. I was wondering if it would be possible to resize the flash video without having access to the html/flash source, say for example by a GreaseMonkey script.

Also I was wondering if I would have to account for the different aspect ratio when resizing the flash, or if the video will keep its aspect by itself.

I am a newbie to flash but I, and I believe many Linux users, would really appreciate your help in this.

cheers
stealz</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to fix an Ubuntu Fullscreen Flash issue on dual monitors: It is somehow not possible to control on which Monitor the fullscreen flash appears on.</p>
<p>I have found a way to move the fullscreen flash to a different monitor and resize the container window that is spawned by the browser. However the flash video will usually not adapt the new container window size. I was wondering if it would be possible to resize the flash video without having access to the html/flash source, say for example by a GreaseMonkey script.</p>
<p>Also I was wondering if I would have to account for the different aspect ratio when resizing the flash, or if the video will keep its aspect by itself.</p>
<p>I am a newbie to flash but I, and I believe many Linux users, would really appreciate your help in this.</p>
<p>cheers<br />
stealz</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Sebastian.Martens</title>
		<link>http://blog.sebastian-martens.de/2010/06/resize-flash-application-container/#comment-110</link>
		<dc:creator>Sebastian.Martens</dc:creator>
		<pubDate>Sun, 07 Aug 2011 12:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sebastian-martens.de/?p=459#comment-110</guid>
		<description>Hi Alex,

sorry for the late reply. I overlooked some older comments and found them during email archiving.
Please try if the script is working anyhow, e.g. is the width changing ? Maybe there are also some css problems. The resize script has to resize the html container also. If there might be another sourrounding container which has a fixed width and doesn&#039;t allow the flash container to resize, this might cause the problem.

cheers.
Sebastian</description>
		<content:encoded><![CDATA[<p>Hi Alex,</p>
<p>sorry for the late reply. I overlooked some older comments and found them during email archiving.<br />
Please try if the script is working anyhow, e.g. is the width changing ? Maybe there are also some css problems. The resize script has to resize the html container also. If there might be another sourrounding container which has a fixed width and doesn&#8217;t allow the flash container to resize, this might cause the problem.</p>
<p>cheers.<br />
Sebastian</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Sebastian.Martens</title>
		<link>http://blog.sebastian-martens.de/2010/06/resize-flash-application-container/#comment-109</link>
		<dc:creator>Sebastian.Martens</dc:creator>
		<pubDate>Sun, 07 Aug 2011 11:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sebastian-martens.de/?p=459#comment-109</guid>
		<description>Hi Giorgio,

i overlooked some older comments. I&#039;m sooo sorry for that.
If i&#039;m understand your plans right this wouldn&#039;t work because my script is only for a single swf file, not for one swf of multiple single movie clips. It just resizes the master swf file within the html page. So you have to trigger the resizing in the surrounding main swf, depeding on the different movie clips.

cheers.
Sebastian</description>
		<content:encoded><![CDATA[<p>Hi Giorgio,</p>
<p>i overlooked some older comments. I&#8217;m sooo sorry for that.<br />
If i&#8217;m understand your plans right this wouldn&#8217;t work because my script is only for a single swf file, not for one swf of multiple single movie clips. It just resizes the master swf file within the html page. So you have to trigger the resizing in the surrounding main swf, depeding on the different movie clips.</p>
<p>cheers.<br />
Sebastian</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Alex</title>
		<link>http://blog.sebastian-martens.de/2010/06/resize-flash-application-container/#comment-108</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 17 Feb 2011 16:28:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sebastian-martens.de/?p=459#comment-108</guid>
		<description>Hi.
Great code. But I am having a problem with it.

I am adding buttons dynamicly to make a accordion menu. The size should be 180, 600.
But the height is not going to the right size.
I am even using this to test:
resizeInstance.resize(180, 600);
But it is resizing to something like: 180 x 200</description>
		<content:encoded><![CDATA[<p>Hi.<br />
Great code. But I am having a problem with it.</p>
<p>I am adding buttons dynamicly to make a accordion menu. The size should be 180, 600.<br />
But the height is not going to the right size.<br />
I am even using this to test:<br />
resizeInstance.resize(180, 600);<br />
But it is resizing to something like: 180 x 200</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Giorgio</title>
		<link>http://blog.sebastian-martens.de/2010/06/resize-flash-application-container/#comment-107</link>
		<dc:creator>Giorgio</dc:creator>
		<pubDate>Thu, 27 Jan 2011 10:26:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sebastian-martens.de/?p=459#comment-107</guid>
		<description>Hi Sebastian, and congratulation for your work.

It may sound as a stupid, but I&#039;m a flash newbye and I&#039;m a bit confused. The website I&#039;m creating has different section heights and I would like to resize the web page depending on them. Every section is a movieclip.

I guess that I have to:
- set the flash document height to the sections maximum height
- at the beginning of every section (movieclip) add an actionscript frame with
&lt;code&gt;
import com.nonstatics.swfSelfResize.swfSelfResize;
import flash.display.Sprite;
var resizeInstance:swfSelfResize;
resizeInstance = new swfSelfResize();
resizeInstance.resize([mc_height],[mc_width]);
&lt;/code&gt;
- copy the swfSelfResize.swf file in my folder
- in my HTML embedding page set swfobject.embedSWF height to homepage height

Is everything all right? Am I missing anything? Sorry again for the simplicity of the question. Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi Sebastian, and congratulation for your work.</p>
<p>It may sound as a stupid, but I&#8217;m a flash newbye and I&#8217;m a bit confused. The website I&#8217;m creating has different section heights and I would like to resize the web page depending on them. Every section is a movieclip.</p>
<p>I guess that I have to:<br />
- set the flash document height to the sections maximum height<br />
- at the beginning of every section (movieclip) add an actionscript frame with<br />
<code><br />
import com.nonstatics.swfSelfResize.swfSelfResize;<br />
import flash.display.Sprite;<br />
var resizeInstance:swfSelfResize;<br />
resizeInstance = new swfSelfResize();<br />
resizeInstance.resize([mc_height],[mc_width]);<br />
</code><br />
- copy the swfSelfResize.swf file in my folder<br />
- in my HTML embedding page set swfobject.embedSWF height to homepage height</p>
<p>Is everything all right? Am I missing anything? Sorry again for the simplicity of the question. Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Sebastian.Martens</title>
		<link>http://blog.sebastian-martens.de/2010/06/resize-flash-application-container/#comment-106</link>
		<dc:creator>Sebastian.Martens</dc:creator>
		<pubDate>Thu, 16 Dec 2010 19:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sebastian-martens.de/?p=459#comment-106</guid>
		<description>Hi Fabse,

of course this is possible. But this also requires an additional JavaScript call. Somthing like that:

&lt;pre lang=&quot;ActionScript&quot;&gt;
   this.resize = new swfSelfResize();
   // resize to 100px height, 120px width
   this.resize.resize( 100, 120 );

   if( ExternalInterface.available ){
      ExternalInterface.call( &quot;moveSWF&quot; );
   }

   // 	do sth. more
&lt;/pre&gt;

Now you have to define a JavaScript method &lt;i&gt;moveSWF&lt;/i&gt; which does the repositioning of the DIV-Container:

&lt;pre lang=&quot;JavaScript&quot;&gt;
function moveSWF(){
   var node = document.getElementById( &#039;idOfFlashDivContainer&#039; );
   node.style.top = &#039;0px&#039;;
   node.style.left = &#039;0px&#039;;
}
&lt;/pre&gt;

The Flash container must be &quot;position:absolute&quot;. ( This is written from mind and not testen and not complete - if there are any small errors in it ).

cheers,
Sebastian</description>
		<content:encoded><![CDATA[<p>Hi Fabse,</p>
<p>of course this is possible. But this also requires an additional JavaScript call. Somthing like that:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">   <span style="color: #0066CC;">this</span>.<span style="color: #006600;">resize</span> = <span style="color: #000000; font-weight: bold;">new</span> swfSelfResize<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
   <span style="color: #808080; font-style: italic;">// resize to 100px height, 120px width</span>
   <span style="color: #0066CC;">this</span>.<span style="color: #006600;">resize</span>.<span style="color: #006600;">resize</span><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">100</span>, <span style="color: #cc66cc;">120</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
   <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span> ExternalInterface.<span style="color: #006600;">available</span> <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
      ExternalInterface.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">&quot;moveSWF&quot;</span> <span style="color: #66cc66;">&#41;</span>;
   <span style="color: #66cc66;">&#125;</span>
&nbsp;
   <span style="color: #808080; font-style: italic;">// 	do sth. more</span></pre></div></div>

<p>Now you have to define a JavaScript method <i>moveSWF</i> which does the repositioning of the DIV-Container:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> moveSWF<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
   <span style="color: #003366; font-weight: bold;">var</span> node <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span> <span style="color: #3366CC;">'idOfFlashDivContainer'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   node.<span style="color: #660066;">style</span>.<span style="color: #660066;">top</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'0px'</span><span style="color: #339933;">;</span>
   node.<span style="color: #660066;">style</span>.<span style="color: #660066;">left</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'0px'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>The Flash container must be &#8220;position:absolute&#8221;. ( This is written from mind and not testen and not complete &#8211; if there are any small errors in it ).</p>
<p>cheers,<br />
Sebastian</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Fabse</title>
		<link>http://blog.sebastian-martens.de/2010/06/resize-flash-application-container/#comment-105</link>
		<dc:creator>Fabse</dc:creator>
		<pubDate>Wed, 15 Dec 2010 12:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sebastian-martens.de/?p=459#comment-105</guid>
		<description>hey sebastian,
I was trying your script and it works quite well. What i can´t solve is the following problem: At start I want to have the swf div at e.g. position left: 200px and then resize to a bigger sized container div at position left: 0px. Is that possible? In my tests i alway had to descide to have it left aligned or centered. If possible, could you give an html example please?</description>
		<content:encoded><![CDATA[<p>hey sebastian,<br />
I was trying your script and it works quite well. What i can´t solve is the following problem: At start I want to have the swf div at e.g. position left: 200px and then resize to a bigger sized container div at position left: 0px. Is that possible? In my tests i alway had to descide to have it left aligned or centered. If possible, could you give an html example please?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

