<?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: BaseUI v3 layout manager</title>
	<atom:link href="http://www.soundstep.com/blog/2008/08/12/baseui-v3-layout-manager/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.soundstep.com/blog/2008/08/12/baseui-v3-layout-manager/</link>
	<description>Flash, Flex and ActionScript talking.</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:02:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Wael Jammal</title>
		<link>http://www.soundstep.com/blog/2008/08/12/baseui-v3-layout-manager/comment-page-1/#comment-59659</link>
		<dc:creator>Wael Jammal</dc:creator>
		<pubDate>Sun, 16 Oct 2011 19:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=45#comment-59659</guid>
		<description>Hi,

Rotation seems to break it completely, I am trying to use it with senoculars transform tool everything works fine but if I rotate the object then base ui deforms the transformation.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Rotation seems to break it completely, I am trying to use it with senoculars transform tool everything works fine but if I rotate the object then base ui deforms the transformation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kwasi</title>
		<link>http://www.soundstep.com/blog/2008/08/12/baseui-v3-layout-manager/comment-page-1/#comment-489</link>
		<dc:creator>Kwasi</dc:creator>
		<pubDate>Sun, 08 Nov 2009 09:31:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=45#comment-489</guid>
		<description>Is it possible to add and mix containers e.g. adding HBoxUI into VBoxUI, when I try it it seems that the containers get squashed together.

Almost like the y position doesn&#039;t change.</description>
		<content:encoded><![CDATA[<p>Is it possible to add and mix containers e.g. adding HBoxUI into VBoxUI, when I try it it seems that the containers get squashed together.</p>
<p>Almost like the y position doesn&#8217;t change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Bailey</title>
		<link>http://www.soundstep.com/blog/2008/08/12/baseui-v3-layout-manager/comment-page-1/#comment-93</link>
		<dc:creator>John Bailey</dc:creator>
		<pubDate>Thu, 04 Sep 2008 19:11:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=45#comment-93</guid>
		<description>* &quot;I&#039;ve added it in my TODO list for the next release, thanks for your input.&quot;
  Great thanks!

* &quot;If you want to add specific code in your area, just extend CanvasUI or use a simple sprite and add the canvas instance inside. The second solution is simpler and very often polymorphism is more flexible.&quot;
  Totally agree and will do. Thank you very much for the explanation. I&#039;ve read your notes throughout your classes and found it helpful as well.

* I understand that the mins would add much complexity to the project.

* Look forward to the revisions and a possible group forum and additional man power on this project.</description>
		<content:encoded><![CDATA[<p>* &#8220;I&#8217;ve added it in my TODO list for the next release, thanks for your input.&#8221;<br />
  Great thanks!</p>
<p>* &#8220;If you want to add specific code in your area, just extend CanvasUI or use a simple sprite and add the canvas instance inside. The second solution is simpler and very often polymorphism is more flexible.&#8221;<br />
  Totally agree and will do. Thank you very much for the explanation. I&#8217;ve read your notes throughout your classes and found it helpful as well.</p>
<p>* I understand that the mins would add much complexity to the project.</p>
<p>* Look forward to the revisions and a possible group forum and additional man power on this project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Romuald</title>
		<link>http://www.soundstep.com/blog/2008/08/12/baseui-v3-layout-manager/comment-page-1/#comment-92</link>
		<dc:creator>Romuald</dc:creator>
		<pubDate>Thu, 04 Sep 2008 00:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=45#comment-92</guid>
		<description>Hi john,

A VBoxUI in HBoxUI won&#039;t work at the moment (version 3.0), it shouldn&#039;t be a big deal but I just didn&#039;t do it yet. It will work in a CanvasUI though if you want to calculate the positions of the children yourself. I&#039;ve added it in my TODO list for the next release, thanks for your input.

About the bug, I&#039;m not sure it is really one. 
The problem is: your Area movie get always resized (the width and height change) by the first BaseUI and the rectangle inside get also resized by a second BaseUI. The rectangle is resized 2 times by the 2 BaseUI instances.

Basically, I built the layouts to handle this kind of problem. If you change the width and height of a sprite, everything inside will be also resized, which is not the case with a CanvasUI instance, the children will keep their size. In your example, you can even remove the BaseUI in the Area class, draw a rectangle with any values like 100*100 as the Area movie will be resized to 80%. Add a centered rectangle 50*50 in the Area class and you get what you want to reach. This is working if you don&#039;t care that the Sprite and its children are resized, otherwise you have to use a CanvasUI.

If you want a main movie set to 80% width and height and a child movie set to 50% width and height of the main movie. I would create the main movie as a CanvasUI and set the children size. This should do what you&#039;re trying to do:

var area:CanvasUI = new CanvasUI();
area.canvasColor = Math.random()*0xFFFFFF;
area.canvasAlpha = .5;
area.percentWidth = area.percentHeight = &quot;80%&quot;;
var el:ElementUI = area.addChildUI(myRectangle);
el.width = el.height = &quot;50%&quot;;
area.refresh();

If you want to add specific code in your area, just extend CanvasUI or use a simple sprite and add the canvas instance inside. The second solution is simpler and very often polymorphism is more flexible.

The other solution would be use only one BaseUI and have both the Area and the rectangle in the same movie clip (your main class for example), so the rectangle is not anymore a children of the Area class but of the main movie, if this fit what you want to do, it is very simple and make you use flash with layouts like you would do in Photoshop.

I hope it helps, if you can&#039;t reach what you need, send me an email and I&#039;ll try to help.

I probably should open a group or a forum to discuss this kind of problem.

Thanks anyway.

About minWidth and minHeight, the first version of BaseUI (in AS2 and not released) handled it in a way, but it makes things a lot more complicated, I&#039;ll think about.

I might take other people on the project if they are interested and if BaseUI if used by a lot of people, we&#039;ll see :)

Romu</description>
		<content:encoded><![CDATA[<p>Hi john,</p>
<p>A VBoxUI in HBoxUI won&#8217;t work at the moment (version 3.0), it shouldn&#8217;t be a big deal but I just didn&#8217;t do it yet. It will work in a CanvasUI though if you want to calculate the positions of the children yourself. I&#8217;ve added it in my TODO list for the next release, thanks for your input.</p>
<p>About the bug, I&#8217;m not sure it is really one.<br />
The problem is: your Area movie get always resized (the width and height change) by the first BaseUI and the rectangle inside get also resized by a second BaseUI. The rectangle is resized 2 times by the 2 BaseUI instances.</p>
<p>Basically, I built the layouts to handle this kind of problem. If you change the width and height of a sprite, everything inside will be also resized, which is not the case with a CanvasUI instance, the children will keep their size. In your example, you can even remove the BaseUI in the Area class, draw a rectangle with any values like 100*100 as the Area movie will be resized to 80%. Add a centered rectangle 50*50 in the Area class and you get what you want to reach. This is working if you don&#8217;t care that the Sprite and its children are resized, otherwise you have to use a CanvasUI.</p>
<p>If you want a main movie set to 80% width and height and a child movie set to 50% width and height of the main movie. I would create the main movie as a CanvasUI and set the children size. This should do what you&#8217;re trying to do:</p>
<p>var area:CanvasUI = new CanvasUI();<br />
area.canvasColor = Math.random()*0xFFFFFF;<br />
area.canvasAlpha = .5;<br />
area.percentWidth = area.percentHeight = &#8220;80%&#8221;;<br />
var el:ElementUI = area.addChildUI(myRectangle);<br />
el.width = el.height = &#8220;50%&#8221;;<br />
area.refresh();</p>
<p>If you want to add specific code in your area, just extend CanvasUI or use a simple sprite and add the canvas instance inside. The second solution is simpler and very often polymorphism is more flexible.</p>
<p>The other solution would be use only one BaseUI and have both the Area and the rectangle in the same movie clip (your main class for example), so the rectangle is not anymore a children of the Area class but of the main movie, if this fit what you want to do, it is very simple and make you use flash with layouts like you would do in Photoshop.</p>
<p>I hope it helps, if you can&#8217;t reach what you need, send me an email and I&#8217;ll try to help.</p>
<p>I probably should open a group or a forum to discuss this kind of problem.</p>
<p>Thanks anyway.</p>
<p>About minWidth and minHeight, the first version of BaseUI (in AS2 and not released) handled it in a way, but it makes things a lot more complicated, I&#8217;ll think about.</p>
<p>I might take other people on the project if they are interested and if BaseUI if used by a lot of people, we&#8217;ll see <img src='http://www.soundstep.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Romu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Bailey</title>
		<link>http://www.soundstep.com/blog/2008/08/12/baseui-v3-layout-manager/comment-page-1/#comment-91</link>
		<dc:creator>John Bailey</dc:creator>
		<pubDate>Wed, 03 Sep 2008 19:33:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=45#comment-91</guid>
		<description>Romuald, on the bug above: Just try resizing the Flash Stand-Alone Player window when you publish the swf from the IDE.</description>
		<content:encoded><![CDATA[<p>Romuald, on the bug above: Just try resizing the Flash Stand-Alone Player window when you publish the swf from the IDE.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Bailey</title>
		<link>http://www.soundstep.com/blog/2008/08/12/baseui-v3-layout-manager/comment-page-1/#comment-90</link>
		<dc:creator>John Bailey</dc:creator>
		<pubDate>Wed, 03 Sep 2008 19:22:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=45#comment-90</guid>
		<description>Romuald, I believe I&#039;ve found a bug. http://posting.imitationstudios.com/baseUI/baseUI_possibleBug.zip
It appears to be just a timing of the drawing...</description>
		<content:encoded><![CDATA[<p>Romuald, I believe I&#8217;ve found a bug. <a href="http://posting.imitationstudios.com/baseUI/baseUI_possibleBug.zip" rel="nofollow">http://posting.imitationstudios.com/baseUI/baseUI_possibleBug.zip</a><br />
It appears to be just a timing of the drawing&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Bailey</title>
		<link>http://www.soundstep.com/blog/2008/08/12/baseui-v3-layout-manager/comment-page-1/#comment-89</link>
		<dc:creator>John Bailey</dc:creator>
		<pubDate>Tue, 02 Sep 2008 19:51:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=45#comment-89</guid>
		<description>Also, do you have any plans for a minWidth and minHeight for the ElementUI? How do you feel about other updating the source code?</description>
		<content:encoded><![CDATA[<p>Also, do you have any plans for a minWidth and minHeight for the ElementUI? How do you feel about other updating the source code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Bailey</title>
		<link>http://www.soundstep.com/blog/2008/08/12/baseui-v3-layout-manager/comment-page-1/#comment-88</link>
		<dc:creator>John Bailey</dc:creator>
		<pubDate>Tue, 02 Sep 2008 19:11:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=45#comment-88</guid>
		<description>Seriously wonderful stuff! You&#039;ve considered different wants for the inputs and usage and have done a nice job of complying with the current Flex standard/model.

Question:
How do you get multiple objects in the layout package to &quot;fit inside each other&quot;? In other words, I&#039;m wanting to place a two vbox&#039;es inside one hbox.</description>
		<content:encoded><![CDATA[<p>Seriously wonderful stuff! You&#8217;ve considered different wants for the inputs and usage and have done a nice job of complying with the current Flex standard/model.</p>
<p>Question:<br />
How do you get multiple objects in the layout package to &#8220;fit inside each other&#8221;? In other words, I&#8217;m wanting to place a two vbox&#8217;es inside one hbox.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Romuald</title>
		<link>http://www.soundstep.com/blog/2008/08/12/baseui-v3-layout-manager/comment-page-1/#comment-87</link>
		<dc:creator>Romuald</dc:creator>
		<pubDate>Sun, 31 Aug 2008 00:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=45#comment-87</guid>
		<description>Sure, the percentWidth and percentHeight are special properties of CanvasUI but you can use the width and height properties of an ElementUI with a percent value.

This should do the job:

var canvas:CanvasUI = new CanvasUI();
// set 50% width and height for the canvas
canvas.percentWidth = &quot;50%&quot;; // or canvas.percentWidth = &quot;50&quot;; or canvas.percentWidth = 50;
canvas.percentHeight = &quot;50%&quot;;
var el:ElementUI = canvas.addChildUI(myTextField);
// set 50% width and height for the textfield
el.width = &quot;50%&quot;;
el.height = &quot;50%&quot;;</description>
		<content:encoded><![CDATA[<p>Sure, the percentWidth and percentHeight are special properties of CanvasUI but you can use the width and height properties of an ElementUI with a percent value.</p>
<p>This should do the job:</p>
<p>var canvas:CanvasUI = new CanvasUI();<br />
// set 50% width and height for the canvas<br />
canvas.percentWidth = &#8220;50%&#8221;; // or canvas.percentWidth = &#8220;50&#8243;; or canvas.percentWidth = 50;<br />
canvas.percentHeight = &#8220;50%&#8221;;<br />
var el:ElementUI = canvas.addChildUI(myTextField);<br />
// set 50% width and height for the textfield<br />
el.width = &#8220;50%&#8221;;<br />
el.height = &#8220;50%&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guy Stables</title>
		<link>http://www.soundstep.com/blog/2008/08/12/baseui-v3-layout-manager/comment-page-1/#comment-86</link>
		<dc:creator>Guy Stables</dc:creator>
		<pubDate>Fri, 29 Aug 2008 18:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=45#comment-86</guid>
		<description>Awesome stuff.

I have question though. Is there an easy way to add an object with percentWidth other than the canvas? ie. Say you want to add a textField to the canvas that is always 50% of the canvas width.

Thanks,
Guy</description>
		<content:encoded><![CDATA[<p>Awesome stuff.</p>
<p>I have question though. Is there an easy way to add an object with percentWidth other than the canvas? ie. Say you want to add a textField to the canvas that is always 50% of the canvas width.</p>
<p>Thanks,<br />
Guy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anggie Bratadinata</title>
		<link>http://www.soundstep.com/blog/2008/08/12/baseui-v3-layout-manager/comment-page-1/#comment-65</link>
		<dc:creator>Anggie Bratadinata</dc:creator>
		<pubDate>Thu, 14 Aug 2008 05:00:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=45#comment-65</guid>
		<description>really nice! thanks for sharing :-)</description>
		<content:encoded><![CDATA[<p>really nice! thanks for sharing <img src='http://www.soundstep.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Federico Bebber</title>
		<link>http://www.soundstep.com/blog/2008/08/12/baseui-v3-layout-manager/comment-page-1/#comment-64</link>
		<dc:creator>Federico Bebber</dc:creator>
		<pubDate>Wed, 13 Aug 2008 16:21:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=45#comment-64</guid>
		<description>WOW can&#039;t wait to try it :)

thank you!!</description>
		<content:encoded><![CDATA[<p>WOW can&#8217;t wait to try it <img src='http://www.soundstep.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>thank you!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

