This content has been marked as final. Show 7 replies
Note that even the example from the Flex docs fails the same way. I put this in the init handler and get the same damn error.
var square:Sprite = new Sprite();
square.y = 50;
trace(event.currentTarget.toString() + " dispatches MouseEvent. Local coords [" + event.localX + "," + event.localY + "] Stage coords [" + event.stageX + "," + event.stageY + "]");
Every child you want to add to the display list must extend IUIComponent. Wrap the sprite in a UIComponent or UIMovieClip.
Yes. Or, as someone corrected me, make your component implement the IUIComponent interface.
how do i wrap the sprite in a UIComponent or UIMovieClip?
ah, thanks, i guess i didn't understand "wrap"
"Handycam" <email@example.com> wrote in message
> ah, thanks, i guess i didn't understand "wrap"
Musicians these days. So unintelligible...