Do I have to use a listener in order to make the onRelease function work? Right now it doesn’t and I think it’s because the png isn’t loaded before the onRelease function is invoked.
main["container"+j].createEmptyMovieClip("Plus",j+3);
var Plus:MovieClip = main["container"+j].Plus;
Plus.loadMovie("icons/plus.png");
Plus._x = 10;
Plus._y = 110;
Plus.onRelease = function(){
trace("hi");
}
I hate making listeners for everything. I hope AS3 makes this process easier.
Thanks for any info.