« Restarter.exe 1.0 | ^ Main | Oh how I wish... »


Where my Flex skills met my Flash skills

Coming froma Flash background I’m so used to setting dynamic x/y coordinates by hand I took the same approach in Flex. I was doing things like this.

<mx:Canvas id="mycanvas" />
<mx:Canvas id="yourcanvas" y="{mycanvas.y+mycanvas.height+10}) />

+10 simply gave me a little extra cushion. I basically took the y position and height of mycanvas to figure out where the bottom of the clip was positioned. Here’s how simple it is using what’s readily available to you in Flex.

<mx:VBox>
     <mx:Canvas id="mycanvas" />
     <mx:Canvas id="yourcanvas" />
</mx:VBox>

I know. I said “wow” too. LOL. This is just 1 example of me leaning on Flash based layouts instead of utilizing Flex’s natural ability. I have more but this is enough for now. :-)

Posted by John C. Bland II on May 3, 2006 3:26 PM |

TrackBack

TrackBack URL for this entry:
http://mt.katapultmedia.com/mt-tb.cgi/125

Post a comment