Re: [flexcoders] difference between stage and application?

2009-04-24 Thread Joseph Balderson
Sorry, I realized you were talking about UIComponent.addChild(), not Container.addChild(), my bad. ___ Joseph Balderson, Flex & Flash Platform Developer :: http://joeflash.ca Author, Professional Flex 3 :: http://tinyurl.com/prof

Re: [flexcoders] difference between stage and application?

2009-04-24 Thread Joseph Balderson
If memory serves, Container.addChild() overrides DisplayObject.addChild(), and requires that the argument implement the IUIComponent interface, which means only Flex components can be added. You need to use Container.rawChildren.addChild(Sprite) instead. You may also have to override updateDisp

RE: [flexcoders] difference between stage and application?

2009-04-22 Thread Alex Harui
You should use the Flash/Flex Component Kit to wrap your Flash content. Flash content won't work well in Flex without being wrapped in some fashion. The minimum thing you could do is stick in an mx:UIComponent of the appropriate size in the application and addChild the sprite to it. Alex Haru