Thanks for the answer. My additional questions would be:

1. Is the size&speed difference really big? 

2. I understand that instead of Shape i could use Canvas, right? What is the 
alternative for the SimpleButton in Flex then. I'm really new to Flex.


Best from sunny nut cold Poland,
trzewiczek

--- In flexcoders@yahoogroups.com, Alex Harui <aha...@...> wrote:
>
> 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" <trzewic...@...> 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