<?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>Comments on: Loader is not resizing</title>
	<atom:link href="http://www.negush.net/blog/loader-is-not-resizing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.negush.net/blog/loader-is-not-resizing/</link>
	<description>Flash, ActionScript and stuff...</description>
	<lastBuildDate>Sun, 25 Dec 2011 23:08:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: negush</title>
		<link>http://www.negush.net/blog/loader-is-not-resizing/comment-page-1/#comment-28670</link>
		<dc:creator>negush</dc:creator>
		<pubDate>Mon, 14 Mar 2011 15:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.negush.net/blog/?p=26#comment-28670</guid>
		<description>@mulderjoe

It&#039;s true, you cannot access the contents of the AS2 swf file directly, but you could use some workarounds like using ExternalInterface or LocalConnection.

However, positioning and resizing does work on the entire AS2 clip, exactly like on any AS3 clip loaded into the Loader object. This way you&#039;ll resize the AS2 clip. If you would like to apply action on the contents of the AS2 clip when it is resized by the AS3 clip, this is a totally different matter. In this case you should try the ExternalInterface or LocalConnection solutions (http://www.actionscript.org/forums/archive/index.php3/t-116805.html, http://gskinner.com/blog/archives/2007/07/swfbridge_easie.html or http://www.jumpeyecomponents.com/Flash-Components/Various/ActionScript-Bridge-91/).

Good luck.</description>
		<content:encoded><![CDATA[<p>@mulderjoe</p>
<p>It&#8217;s true, you cannot access the contents of the AS2 swf file directly, but you could use some workarounds like using ExternalInterface or LocalConnection.</p>
<p>However, positioning and resizing does work on the entire AS2 clip, exactly like on any AS3 clip loaded into the Loader object. This way you&#8217;ll resize the AS2 clip. If you would like to apply action on the contents of the AS2 clip when it is resized by the AS3 clip, this is a totally different matter. In this case you should try the ExternalInterface or LocalConnection solutions (<a href="http://www.actionscript.org/forums/archive/index.php3/t-116805.html" rel="nofollow">http://www.actionscript.org/forums/archive/index.php3/t-116805.html</a>, <a href="http://gskinner.com/blog/archives/2007/07/swfbridge_easie.html" rel="nofollow">http://gskinner.com/blog/archives/2007/07/swfbridge_easie.html</a> or <a href="http://www.jumpeyecomponents.com/Flash-Components/Various/ActionScript-Bridge-91/" rel="nofollow">http://www.jumpeyecomponents.com/Flash-Components/Various/ActionScript-Bridge-91/</a>).</p>
<p>Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mulderjoe</title>
		<link>http://www.negush.net/blog/loader-is-not-resizing/comment-page-1/#comment-28603</link>
		<dc:creator>mulderjoe</dc:creator>
		<pubDate>Fri, 11 Mar 2011 21:53:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.negush.net/blog/?p=26#comment-28603</guid>
		<description>But if the loaded object is a swf, especially one created in AS2, AS3 will not allow you to change the properties of that loaded object.

I wish it would.  Sigh.</description>
		<content:encoded><![CDATA[<p>But if the loaded object is a swf, especially one created in AS2, AS3 will not allow you to change the properties of that loaded object.</p>
<p>I wish it would.  Sigh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ale</title>
		<link>http://www.negush.net/blog/loader-is-not-resizing/comment-page-1/#comment-22800</link>
		<dc:creator>Ale</dc:creator>
		<pubDate>Sun, 28 Nov 2010 18:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.negush.net/blog/?p=26#comment-22800</guid>
		<description>é só mudar essa parte &gt;&gt;&gt;

loaderObject.contentLoaderInfo.addEventListener (Event.COMPLETE, resizeLoader);

para &gt;&gt;&gt;

loaderObject.contentLoaderInfo.addEventListener (Event.INIT, resizeLoader);</description>
		<content:encoded><![CDATA[<p>é só mudar essa parte &gt;&gt;&gt;</p>
<p>loaderObject.contentLoaderInfo.addEventListener (Event.COMPLETE, resizeLoader);</p>
<p>para &gt;&gt;&gt;</p>
<p>loaderObject.contentLoaderInfo.addEventListener (Event.INIT, resizeLoader);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rendra</title>
		<link>http://www.negush.net/blog/loader-is-not-resizing/comment-page-1/#comment-17194</link>
		<dc:creator>rendra</dc:creator>
		<pubDate>Fri, 11 Jun 2010 03:29:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.negush.net/blog/?p=26#comment-17194</guid>
		<description>Thanks a lot,,, it worked :)</description>
		<content:encoded><![CDATA[<p>Thanks a lot,,, it worked :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.negush.net/blog/loader-is-not-resizing/comment-page-1/#comment-12044</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 11 Jan 2010 07:28:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.negush.net/blog/?p=26#comment-12044</guid>
		<description>@Jorge

The size for display objects is always expressed in pixels. So you must always specify the width and height of the loader in pixels.

To use percentages, you need to make the math yourself, meaning that you need to calculate the new size (width and height values) in pixels according to the percentages you need. So, for example if you want to set the width to 60% (of the loader&#039;s container or stage width or whatever reference point you have), you need to calculate the corresponding width in pixels and then set the loader&#039;s width property.

You could create your own loader class that extends the existing Loader class and add it two more parameters for size that accept the size as percentages. It shouldn&#039;t be so hard. You just need to pay attention to the math behind it.

I hope this helps.</description>
		<content:encoded><![CDATA[<p>@Jorge</p>
<p>The size for display objects is always expressed in pixels. So you must always specify the width and height of the loader in pixels.</p>
<p>To use percentages, you need to make the math yourself, meaning that you need to calculate the new size (width and height values) in pixels according to the percentages you need. So, for example if you want to set the width to 60% (of the loader&#8217;s container or stage width or whatever reference point you have), you need to calculate the corresponding width in pixels and then set the loader&#8217;s width property.</p>
<p>You could create your own loader class that extends the existing Loader class and add it two more parameters for size that accept the size as percentages. It shouldn&#8217;t be so hard. You just need to pay attention to the math behind it.</p>
<p>I hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge</title>
		<link>http://www.negush.net/blog/loader-is-not-resizing/comment-page-1/#comment-12029</link>
		<dc:creator>Jorge</dc:creator>
		<pubDate>Sun, 10 Jan 2010 16:42:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.negush.net/blog/?p=26#comment-12029</guid>
		<description>Hi, I know that this is an old post. But your last tip helped me a lot (:
Thanks!

Now I have a little doubt. What if I want to reset width and height in percentages? Do you know how can I do these? I want to display it and adjust in fullscreen mode. Can I do that?

Thanks again and in advance.</description>
		<content:encoded><![CDATA[<p>Hi, I know that this is an old post. But your last tip helped me a lot (:<br />
Thanks!</p>
<p>Now I have a little doubt. What if I want to reset width and height in percentages? Do you know how can I do these? I want to display it and adjust in fullscreen mode. Can I do that?</p>
<p>Thanks again and in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Melissa</title>
		<link>http://www.negush.net/blog/loader-is-not-resizing/comment-page-1/#comment-10326</link>
		<dc:creator>Melissa</dc:creator>
		<pubDate>Sun, 22 Nov 2009 16:42:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.negush.net/blog/?p=26#comment-10326</guid>
		<description>Thanx!! It solved all my problems!!</description>
		<content:encoded><![CDATA[<p>Thanx!! It solved all my problems!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnjohn</title>
		<link>http://www.negush.net/blog/loader-is-not-resizing/comment-page-1/#comment-9412</link>
		<dc:creator>johnjohn</dc:creator>
		<pubDate>Fri, 30 Oct 2009 17:48:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.negush.net/blog/?p=26#comment-9412</guid>
		<description>try this: MovieClip(loader.content).var = &quot;bye bye&quot;;</description>
		<content:encoded><![CDATA[<p>try this: MovieClip(loader.content).var = &#8220;bye bye&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt danner</title>
		<link>http://www.negush.net/blog/loader-is-not-resizing/comment-page-1/#comment-7146</link>
		<dc:creator>matt danner</dc:creator>
		<pubDate>Mon, 31 Aug 2009 17:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.negush.net/blog/?p=26#comment-7146</guid>
		<description>Thanks for this.  The solution to this problem is not as intuitive as one would think.</description>
		<content:encoded><![CDATA[<p>Thanks for this.  The solution to this problem is not as intuitive as one would think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose Galindo</title>
		<link>http://www.negush.net/blog/loader-is-not-resizing/comment-page-1/#comment-6421</link>
		<dc:creator>Jose Galindo</dc:creator>
		<pubDate>Mon, 10 Aug 2009 22:18:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.negush.net/blog/?p=26#comment-6421</guid>
		<description>try this:

MovieClip(this.parent.parent).testVar = &quot;goodbye&quot;</description>
		<content:encoded><![CDATA[<p>try this:</p>
<p>MovieClip(this.parent.parent).testVar = &#8220;goodbye&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

