Create any container like HBox, VBox and add the image object into that container.
thanx. using flashbuilder and addChild doesn't seem to work...but addElement does.
on the same issue...i'd like to use some of the functions of the Sprite class....so i've got my image and added that to a Sprite object but can't seem to add the Sprite to any of the spark/mx containers...keep getting this error:
Main Thread (Suspended: Error: addChild() is not available in this class. Instead, use addElement() or modify the skin, if you have one.)
flash.events::EventDispatcher/dispatchEventFunction [no source]
flash.events::EventDispatcher/dispatchEvent [no source]
addChild() requires the child to implement IUIComponent, which Sprite does not.
Create a UIComponent, add the Sprite to that, then add the entire thing to the display list.