<?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: [Learn] AS2 to AS3 Basic Liquid Layout</title>
	<atom:link href="http://blog.mindfock.com/learn-as2-to-as3-basic-liquid-layout/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mindfock.com/learn-as2-to-as3-basic-liquid-layout/</link>
	<description>Flash and ActionScript for the masses. With a little Python thrown in.</description>
	<lastBuildDate>Sun, 22 Aug 2010 03:30:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: John del Rosario</title>
		<link>http://blog.mindfock.com/learn-as2-to-as3-basic-liquid-layout/comment-page-1/#comment-4217</link>
		<dc:creator>John del Rosario</dc:creator>
		<pubDate>Sun, 22 Aug 2010 03:30:06 +0000</pubDate>
		<guid isPermaLink="false">http://mindfock.wordpress.com/?p=29#comment-4217</guid>
		<description>@Didier: I don&#039;t have Flash at the moment and it&#039;s been a while since I&#039;ve last coded AS3, so I&#039;m sorry I can&#039;t figure that out. 
For your background issue, try googling &quot;full background image in Flash AS3&quot; or something.</description>
		<content:encoded><![CDATA[<p>@Didier: I don&#8217;t have Flash at the moment and it&#8217;s been a while since I&#8217;ve last coded AS3, so I&#8217;m sorry I can&#8217;t figure that out.<br />
For your background issue, try googling &#8220;full background image in Flash AS3&#8243; or something.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Didier</title>
		<link>http://blog.mindfock.com/learn-as2-to-as3-basic-liquid-layout/comment-page-1/#comment-4210</link>
		<dc:creator>Didier</dc:creator>
		<pubDate>Fri, 20 Aug 2010 06:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://mindfock.wordpress.com/?p=29#comment-4210</guid>
		<description>Yeiii that works... in the opposite way i wished but i just inverted de simbol and it´s working fine.

After that i&#039;m triying to exercise myself writting code... i tried to make the object resise with a little tween just as Jupeto wrote above. Iget the tween effect on the resize event, however it&#039;s acting really strange and don´t respect my values.... the code i wrote is:

//I imported the classes at the beginning outside the function and this code is inside the function setStage

var xTween:Tween;
	var yTween:Tween;

	box1.x = 0
	box1.y = 0
	
	xTween = new Tween (box2, &quot;x&quot;, Back.easeOut, box2.x, (stage.stageWidth - box2.x), 1, true);
	yTween = new Tween (box2, &quot;y&quot;, Back.easeOut, box2.y, (0), 1, true);
	
	xTween = new Tween (box3, &quot;x&quot;, Back.easeOut, box3.x, (stage.stageWidth - box3.x), 1, true);
	yTween = new Tween (box3, &quot;y&quot;, Back.easeOut, box3.y, (stage.stageHeight - box3.y), 1, true);
	
	xTween = new Tween (box4, &quot;x&quot;, Back.easeOut, box4.x, (0), 1, true);
	yTween = new Tween (box4, &quot;y&quot;, Back.easeOut, box4.y, (stage.stageHeight - box4.y), 1, true);
	
------------------------------------

Another thing i tried was to make a background that resize on proportion racting to the same resize event but this isn´t working at all... Since I&#039;m still a rookie at this i know that my code may be really wrong and can´t figure it out the error... hope you could help me on this too...This is my code for the resizing background

var imageAspectRatio = bg_mov_mc.width / bg_mov_mc.height;
	var stageAspectRatio = stage.width / stage.height;
	   if (stageAspectRatio &gt;= imageAspectRatio) {
		  bg_mov_mc.width = stage.width;
		  bg_mov_mc.height = stage.width / imageAspectRatio;
	   } else {
		  bg_mov_mc.height = stage.height;
		  bg_mov_mc.width = stage.height * imageAspectRatio;
	   }</description>
		<content:encoded><![CDATA[<p>Yeiii that works&#8230; in the opposite way i wished but i just inverted de simbol and it´s working fine.</p>
<p>After that i&#8217;m triying to exercise myself writting code&#8230; i tried to make the object resise with a little tween just as Jupeto wrote above. Iget the tween effect on the resize event, however it&#8217;s acting really strange and don´t respect my values&#8230;. the code i wrote is:</p>
<p>//I imported the classes at the beginning outside the function and this code is inside the function setStage</p>
<p>var xTween:Tween;<br />
	var yTween:Tween;</p>
<p>	box1.x = 0<br />
	box1.y = 0</p>
<p>	xTween = new Tween (box2, &#8220;x&#8221;, Back.easeOut, box2.x, (stage.stageWidth &#8211; box2.x), 1, true);<br />
	yTween = new Tween (box2, &#8220;y&#8221;, Back.easeOut, box2.y, (0), 1, true);</p>
<p>	xTween = new Tween (box3, &#8220;x&#8221;, Back.easeOut, box3.x, (stage.stageWidth &#8211; box3.x), 1, true);<br />
	yTween = new Tween (box3, &#8220;y&#8221;, Back.easeOut, box3.y, (stage.stageHeight &#8211; box3.y), 1, true);</p>
<p>	xTween = new Tween (box4, &#8220;x&#8221;, Back.easeOut, box4.x, (0), 1, true);<br />
	yTween = new Tween (box4, &#8220;y&#8221;, Back.easeOut, box4.y, (stage.stageHeight &#8211; box4.y), 1, true);</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Another thing i tried was to make a background that resize on proportion racting to the same resize event but this isn´t working at all&#8230; Since I&#8217;m still a rookie at this i know that my code may be really wrong and can´t figure it out the error&#8230; hope you could help me on this too&#8230;This is my code for the resizing background</p>
<p>var imageAspectRatio = bg_mov_mc.width / bg_mov_mc.height;<br />
	var stageAspectRatio = stage.width / stage.height;<br />
	   if (stageAspectRatio &gt;= imageAspectRatio) {<br />
		  bg_mov_mc.width = stage.width;<br />
		  bg_mov_mc.height = stage.width / imageAspectRatio;<br />
	   } else {<br />
		  bg_mov_mc.height = stage.height;<br />
		  bg_mov_mc.width = stage.height * imageAspectRatio;<br />
	   }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John del Rosario</title>
		<link>http://blog.mindfock.com/learn-as2-to-as3-basic-liquid-layout/comment-page-1/#comment-4209</link>
		<dc:creator>John del Rosario</dc:creator>
		<pubDate>Fri, 20 Aug 2010 05:51:51 +0000</pubDate>
		<guid isPermaLink="false">http://mindfock.wordpress.com/?p=29#comment-4209</guid>
		<description>@Didier try 

if (WIDTH &gt; minX){
    // set all objects&#039; x and width properties
}
if (HEIGHT &gt; minY){
   // set all objects&#039; y and height properties
}</description>
		<content:encoded><![CDATA[<p>@Didier try </p>
<p>if (WIDTH > minX){<br />
    // set all objects&#8217; x and width properties<br />
}<br />
if (HEIGHT > minY){<br />
   // set all objects&#8217; y and height properties<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Didier</title>
		<link>http://blog.mindfock.com/learn-as2-to-as3-basic-liquid-layout/comment-page-1/#comment-4208</link>
		<dc:creator>Didier</dc:creator>
		<pubDate>Fri, 20 Aug 2010 05:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://mindfock.wordpress.com/?p=29#comment-4208</guid>
		<description>Hi, I liked very much your explanation. I&#039;m starting to understand the structure of AS and specially the AS3.

I&#039;m triying to define a limit size to resize. Beyong taht limit I&#039;ll to have a scroll bar in the browser.

I added some code to your example hopping it will work fine but it isn&#039;t. I added two variables with the minimun values and the put a conditional camparing those to the actual stagesize.

var minX:Number = 800;
var minY:Number = 500;
	 
	 	if ( WIDTH &lt;= minX) {
			WIDTH = minX;
		}
		if ( HEIGHT &lt;= minY) {
			HEIGHT = minY;
		}

I&#039;m not getting any error un the compilation, but it isn&#039;t working either.

Could yoy tell me where the error is or if there&#039;s another easiest way to achive that?

Thanks,</description>
		<content:encoded><![CDATA[<p>Hi, I liked very much your explanation. I&#8217;m starting to understand the structure of AS and specially the AS3.</p>
<p>I&#8217;m triying to define a limit size to resize. Beyong taht limit I&#8217;ll to have a scroll bar in the browser.</p>
<p>I added some code to your example hopping it will work fine but it isn&#8217;t. I added two variables with the minimun values and the put a conditional camparing those to the actual stagesize.</p>
<p>var minX:Number = 800;<br />
var minY:Number = 500;</p>
<p>	 	if ( WIDTH &lt;= minX) {<br />
			WIDTH = minX;<br />
		}<br />
		if ( HEIGHT &lt;= minY) {<br />
			HEIGHT = minY;<br />
		}</p>
<p>I&#039;m not getting any error un the compilation, but it isn&#039;t working either.</p>
<p>Could yoy tell me where the error is or if there&#039;s another easiest way to achive that?</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ROHIT</title>
		<link>http://blog.mindfock.com/learn-as2-to-as3-basic-liquid-layout/comment-page-1/#comment-3608</link>
		<dc:creator>ROHIT</dc:creator>
		<pubDate>Fri, 30 Apr 2010 11:02:18 +0000</pubDate>
		<guid isPermaLink="false">http://mindfock.wordpress.com/?p=29#comment-3608</guid>
		<description>hi...... thanks for this useful tutorial</description>
		<content:encoded><![CDATA[<p>hi&#8230;&#8230; thanks for this useful tutorial</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John del Rosario</title>
		<link>http://blog.mindfock.com/learn-as2-to-as3-basic-liquid-layout/comment-page-1/#comment-3298</link>
		<dc:creator>John del Rosario</dc:creator>
		<pubDate>Sat, 06 Mar 2010 23:49:58 +0000</pubDate>
		<guid isPermaLink="false">http://mindfock.wordpress.com/?p=29#comment-3298</guid>
		<description>You need to set you flash to take up the whole browser window in your html. Check out &lt;a href=&quot;http://code.google.com/p/swfobject/&quot; rel=&quot;nofollow&quot;&gt;SWFObject&lt;/a&gt; to easily embed swf&#039;s into html.</description>
		<content:encoded><![CDATA[<p>You need to set you flash to take up the whole browser window in your html. Check out <a href="http://code.google.com/p/swfobject/" rel="nofollow">SWFObject</a> to easily embed swf&#8217;s into html.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Al Lemieux</title>
		<link>http://blog.mindfock.com/learn-as2-to-as3-basic-liquid-layout/comment-page-1/#comment-3296</link>
		<dc:creator>Al Lemieux</dc:creator>
		<pubDate>Sat, 06 Mar 2010 21:24:11 +0000</pubDate>
		<guid isPermaLink="false">http://mindfock.wordpress.com/?p=29#comment-3296</guid>
		<description>This code works fine in the flash player, but not when resizing the browser. I&#039;m using Firefox and when I resize the browser nothing happens. Are there any special publish settings I should have set for this to work?</description>
		<content:encoded><![CDATA[<p>This code works fine in the flash player, but not when resizing the browser. I&#8217;m using Firefox and when I resize the browser nothing happens. Are there any special publish settings I should have set for this to work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John del Rosario</title>
		<link>http://blog.mindfock.com/learn-as2-to-as3-basic-liquid-layout/comment-page-1/#comment-2820</link>
		<dc:creator>John del Rosario</dc:creator>
		<pubDate>Sat, 12 Dec 2009 08:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://mindfock.wordpress.com/?p=29#comment-2820</guid>
		<description>@Fluxstate you could try mc.width = stage.stageWidth; mc.height = stage.stageHeight;</description>
		<content:encoded><![CDATA[<p>@Fluxstate you could try mc.width = stage.stageWidth; mc.height = stage.stageHeight;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fluxstate</title>
		<link>http://blog.mindfock.com/learn-as2-to-as3-basic-liquid-layout/comment-page-1/#comment-2817</link>
		<dc:creator>Fluxstate</dc:creator>
		<pubDate>Fri, 11 Dec 2009 22:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://mindfock.wordpress.com/?p=29#comment-2817</guid>
		<description>Thanks for this tutorial. How would you set it so that 1 of the MCs would scale to the fit the browser window. I&#039;m trying to get photos to scale and the navigation to stay fixed.

Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for this tutorial. How would you set it so that 1 of the MCs would scale to the fit the browser window. I&#8217;m trying to get photos to scale and the navigation to stay fixed.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John del Rosario</title>
		<link>http://blog.mindfock.com/learn-as2-to-as3-basic-liquid-layout/comment-page-1/#comment-2041</link>
		<dc:creator>John del Rosario</dc:creator>
		<pubDate>Sat, 31 Oct 2009 00:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://mindfock.wordpress.com/?p=29#comment-2041</guid>
		<description>you can place the new position in a variable, and use that variable as the target position.</description>
		<content:encoded><![CDATA[<p>you can place the new position in a variable, and use that variable as the target position.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
