In Flex, Navigator children must be Containers or INavigatorContent
Container children must be IUIComponents
UIComponent children can be anything.

Shape and SimpleButton are smaller and faster, but they cannot cooperate with 
the other features of the framework like focus, styles and skinning.  
Frameworks have a cost.  They are less efficient because they are packed with 
features you might need in order to save you time.


On 2/4/10 11:28 AM, "trzewiczek" <[email protected]> wrote:






Hi everyone,

I'm very new to AS3/Flex. I started to work in a bigger AS3/Flex project and 
after some work done in pure AS3 with a lot of Shape, SimpleButton and Sprite 
classes use, it turned out the main visual part is being written as a subclass 
of mx.containers.Canvas. I can't just addChild my stuff to that Canvas.

Is it some kind of restriction that you can't addChild any flash.display.* 
class into the mx.containers.* classes?

If that it true, what about efficiency of mx.* packages. As far as I know Shape 
and SimpleButton are the most efficient way to handle vector and interactive 
vector stuff. What about mx.* classes? Should I use Canvas and Button instead 
or what?

Thanks for any help!!

trace("Best from Poland");
trzewiczek






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to