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
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
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
3 matches
Mail list logo