Answered
Is there a way to see what eventListeners currently exist?
I've currently got a function in which a event listener is
added (addEventListener(Event.ENTER_FRAME, create Animation) but I
am calling the function repeatedly in my program it is giving me an
error:
ArgumentError: Error #1063: Argument count mismatch on Projectv017_fla::MainTimeline/createAnimation(). Expected 0, got 1.
Which I assume is an error saying that this event listener already exists. Is this correct? If so, I'm wondering if anyone knows if there is a way I can see whether the listener already exists so I can write an if statement around the addEventListener so that it only creates the event listener if it doesn't already exist. I want to do this because I want to add and remove the event listener occasionally in my program because I don't need it to always be running, but want it to be turned on and off.
ArgumentError: Error #1063: Argument count mismatch on Projectv017_fla::MainTimeline/createAnimation(). Expected 0, got 1.
Which I assume is an error saying that this event listener already exists. Is this correct? If so, I'm wondering if anyone knows if there is a way I can see whether the listener already exists so I can write an if statement around the addEventListener so that it only creates the event listener if it doesn't already exist. I want to do this because I want to add and remove the event listener occasionally in my program because I don't need it to always be running, but want it to be turned on and off.
