Right I'll try to explain. I've got a game that when the correct button, (button in a movie clip) is pressed it firstly plays a animation then I want it to load the next scene after 3 seconds upon pressing the button.
I've got this code which automatically loads the next scene after 3 seconds but I want to attach it to a mc of a button so it only goes to the next scene once it is pressed.
On the last frame of my main timeline I have:
Stop
Set Variable:"stoppedtime"=GetTimer
then on that same frame I've got a movie clip called scene which consists of two frames
frame 1
Set Variable:"stoppedtime"=stoppedtime
Set Variable:"pausetime" ="3000"
If(GetTimer >=pausetime+stoppedtime)
Begin tell target("/")
Play
End tell target
End If
frame3:
Set Variable:"stoppedtime"=stoppedtime
Set Variable:"pausetime" ="3000"
If(GetTimer >=pausetime+stoppedtime)
Begin tell target("/")
Play
End tell target
End If
frame3:
Go to and play (_currentframe - 1)
The button action should be:
OnPress
Tell target (/mcname)
Go to and play (2)
End tell target