This content has been marked as final. Show 4 replies
I am having the same problem. Does anyone have a small chunk of code that will just show a sprite being loaded?
You can't. form the docs of Container class:
Note: While the child argument to the method is specified as of type DisplayObject, the argument must implement the IUIComponent interface to be added as a child of a container. All Flex components implement this interface.
So, essentially you'll need to a child class of UIComponent to add it to container. The easiest way would be to extend the UIComponent class, do all the drawings on its graphics and add the instance of the new class to container.
addRawChild method should do the trick
Did not addRawChild method in flex.
Could you be more specific Mush15 please ?