<?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>Mon, 16 Aug 2010 00:57:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<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>
	<item>
		<title>By: Joe Hisashi</title>
		<link>http://www.negush.net/blog/loader-is-not-resizing/comment-page-1/#comment-2936</link>
		<dc:creator>Joe Hisashi</dc:creator>
		<pubDate>Thu, 30 Apr 2009 22:49:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.negush.net/blog/?p=26#comment-2936</guid>
		<description>The fun part is trying to get the loaded swf object to communicate with the loader swf object and vice versa.
To call a function of the loader object from the loaded object, you can do this:

var parentObject:Object = this.parent.parent as Object;

//now call a method in the loader
parentObject.test();

However, how do you read/write variables in the loader?

so if the loader has a variable: var testVar:String = &quot;hello&quot;;

How can I change it to &quot;goodbye&quot; from the loaded swf?

If you can answer that, you are a genius. Thanks</description>
		<content:encoded><![CDATA[<p>The fun part is trying to get the loaded swf object to communicate with the loader swf object and vice versa.<br />
To call a function of the loader object from the loaded object, you can do this:</p>
<p>var parentObject:Object = this.parent.parent as Object;</p>
<p>//now call a method in the loader<br />
parentObject.test();</p>
<p>However, how do you read/write variables in the loader?</p>
<p>so if the loader has a variable: var testVar:String = &#8220;hello&#8221;;</p>
<p>How can I change it to &#8220;goodbye&#8221; from the loaded swf?</p>
<p>If you can answer that, you are a genius. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.negush.net/blog/loader-is-not-resizing/comment-page-1/#comment-931</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 23 Oct 2008 20:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.negush.net/blog/?p=26#comment-931</guid>
		<description>@june_zhuhui

Thanks for noticing that. Indeed you need to add the listener to the contentLoaderInfo object and not directly to the loader object. I corrected the code. Thanks again.</description>
		<content:encoded><![CDATA[<p>@june_zhuhui</p>
<p>Thanks for noticing that. Indeed you need to add the listener to the contentLoaderInfo object and not directly to the loader object. I corrected the code. Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: june_zhuhui</title>
		<link>http://www.negush.net/blog/loader-is-not-resizing/comment-page-1/#comment-930</link>
		<dc:creator>june_zhuhui</dc:creator>
		<pubDate>Thu, 23 Oct 2008 09:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.negush.net/blog/?p=26#comment-930</guid>
		<description>I have solved the problem. Thank you.

But, I need to change the code below:

loaderObject.addEventListener(Event.COMPLETE, resizeLoader);

to

loaderObject.contentLoaderInfo.addEventListener(Event.COMPLETE, resizeLoader);</description>
		<content:encoded><![CDATA[<p>I have solved the problem. Thank you.</p>
<p>But, I need to change the code below:</p>
<p>loaderObject.addEventListener(Event.COMPLETE, resizeLoader);</p>
<p>to</p>
<p>loaderObject.contentLoaderInfo.addEventListener(Event.COMPLETE, resizeLoader);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
