Flex 2.0 beta 2
March 23rd, 2006 by Sonja DuijvesteijnSince 20 March the new beta for Flex 2.0 is available from labs.macromedia.com.
One of the things that is possible in Flex is giving defining how far from the next object your ‘box’ is.
This was the code in Flex 2.0 beta 1.
<Canvas>
<Button label="hello, world" />
<layoutConstraints>
<Anchor left="10" right="10" bottom="5" />
</layoutConstraints>
</Button>
</Canvas>
And now, much slicker and more like css:
<Canvas>
<Button label="hello, world" left="10 "right="10" bottom="5"/>
</Canvas>
You have x and y already for pixel precise layouts, so the left and right are great to specify where something is in relationship to other elements, without specifically having to call it an anchor.
But most importantly of course is all the bugs that are gone now, making flex a better friend in development.
Related posts
Flex 2 beta 3
Flex 2.0 beta 1
Flash and search engines
March 27th, 2006 at 3:20
So, no more errors 260t from now on? :-)