Skip to main content
Venian
Inspiring
October 6, 2007
Question

Changing a picture with several clicks.

  • October 6, 2007
  • 1 reply
  • 191 views
Hi.

I have an MC (MovieClip). By clicking, lets say, 5 times on it, it changes to another MC. Can i do this any other way then frames.
I can have 5 frames and every click (NextFrame). But i was wondering if there is another, more better, way to do it by ActionScript.

Thank you.
This topic has been closed for replies.

1 reply

Inspiring
October 6, 2007
I am not absolutely sure what you are trying to get at, however you can have a variable inside a MC to keep track of how many times it has been hit. The example has a MC called box_mc that the user can click on and after the user clicks on it the fifth time it will execute code to reveal another MC (ball_mc).