This content has been marked as final. Show 3 replies
there's no reason to use the asbroadcaster for events that are already broadcast. specifically, mouse events (like onPress) are already broadcast by buttons and movieclips:
mc1._alpha = 50;
mc2._alpha = 50;
Thank you for that. The reason, I am exploring AsBroadcaster, because I would like to move things around when one particular movie is loaded. So if this movie gets loaded, all the other movies shift their_x, and _y and this only happens when one particular movie is loaded.
I thought about making and function and then passing an array of the movies as argument. This function will only be executed when this particular movie clip is loaded.
Am I on right path?
Thanks a lot.
you would use the asbroadcaster for an event that flash doesn't detect with its standard listeners. flash already has an onLoadComplete() method for the moviecliploader class - but you'll probably want to use onLoadInit().
it makes no more sense to create a custom onloadcomplete listener than it would to make a custom movieclip class that does nothing different than the standard flash movieclip class.