Skip to main content
Participant
February 13, 2016
Question

button to load image in different frame

  • February 13, 2016
  • 1 reply
  • 258 views

Please help me , the example if i click button or movie clip in first frame, and then in next frame or spesific frame, automatically can load the same image or desirable on the button or movie clip before.
I am confuse, what shoul i do.. get value in button and save in data manager or create new class file or how?? i dont know, i am new in as 3.0

anyone can help me with example simple program or fla file?? really appreciated, thank you

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
February 13, 2016

If you are working with the timeline then what you can do is store data in variables based on clicking the button so that when you get to another frame you can check the values of those variables to determine what to do at the destination frame.  For instance, if you wanted an image to appear then your button could assign a value to a variable that indicates the image identity.  When you reach the frame you have code there that check if that variable has a value, and if it does then it loads the image it identifies.