[CS3] ADDED_TO_STAGE eventlistener not triggering
Hey guys, I am new to actionscripting, and am trying to get an xml slideshow to work. I have read a number of tutorials online and looked at a few variations of the xml slideshow. I have the xml loading fine, and pushed into an array. The next step I want it so take is drop a container for the bitmaps onto the stage, and proceed when that is done via the ADDED_TO_STAGE event listener, but it is not triggering. I have isolated the bit of code into another program, and it looks fine to me but the trace does not go off, so I assume that either nothing is going onto the stage, or the event is not triggering properly. here is the code (for AS 3.0):
var container:Sprite = new Sprite();
I have seen something almost exactly the same work in other code. Any ideas what is wrong with this code? Any help would be greatly appreciated.
Click Here to Expand Forum to Full Width