Variable losing setting or not getting set...
Posted on 2004-08-14
I have a button and within the button on the “over” frame there is a movie clip.
The movie clip has an animation of the home button moving down and back up to the original position and changing colour.
The problem is when the button is clicked. After the click the mouse is still over the button so the movie clip plays again. I tried to stop this by coding in my movieclip frame1:
if (played == "true")
and on scene 5:
played = "true";
it seems that when the “down” frame is activated the variable is cleared and then when it is “over is again” it replays.
I tried coding on the main button :
played = “true”;
so that the variable would hopefully be set for the next time the “over” frame was active.