Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.18 / 5.00 3,534 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.80 / 5.00 4,200 ViewsI have different buttons on different frames. I then initialize the click event listeners in my code. My question is: are event listeners (with weak reference) lost when the movieclip that contains the buttons changes frames?
If so, is initializing the listeners every time the movie clip enters a particular frame advisable? Would it not create a leak from the listeners?
To avoid headaches, leave frames for the people who are meant to work with them (animators) and simply use the visibility property if you want to do something with code.
The listener is added to the object not to the frame.
You can solve pretty much any problem you may have with AS3 by consulting the AS3 Language reference.
Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P