it might be more complicated than I thought
here is where I set up the class, and what I tried
PHP Code:
var pixelExplosion:pixelator = new pixelator(menu_mc);
addChild(pixelExplosion);
pixelExplosion.explode();
//then I end it and try to listen for the end
pixelExplosion.retract();
pixelExplosion.addEventListener("PIXELS_DONE", finished);
function finished(e:EVENT):void{
trace("pixels imploded");
}
I got these errors which refer to tweenmax which pixelator uses.
this one refers to the listener line
1046: Type was not found or was not a compile-time constant: EVENT.