Skip to main content
Known Participant
July 28, 2009
Answered

Question about actionscript and timeline

  • July 28, 2009
  • 1 reply
  • 411 views

Hi,

I have a conceptual question for you. I'm creating a sequencing module with a bunch of radio buttons in frame 1. When a user clicks the wrong radio button it tells them. When the click the right one it moves them to frame 10. In frame 10 the correct radio button is hidden and the user has to click the next one in order. if they click the wrong one it tells them and if they click the correct one it gives new feedback and advances them to frame 20 and so forth until they get them all in order.

Can I add a new event listener to a component in frame 10? how do I cancel out a previous event listener and associated function from frame 1 that was associated with that radio button?

The problem I am having is that the script is calling both the frame 1 function on that button AND the frame 10 function on that button. Any ideas on how to correct this?

sage

This topic has been closed for replies.
Correct answer kglad

you can use removeEventListener() to remove event listeners.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
July 28, 2009

you can use removeEventListener() to remove event listeners.