Hi,
Just getting to grips with this actionscript malarky, but I can't work out how to do this:
I have a button on frame 5 which, when clicked makes the movie jump to frame 10 and fade in something else. However, if the movie is already at frame 10 the button can still be clicked on, and the fade occurs again unecessarily if someone clicks it. Is there any way to disable the button from working if the current frame is the frame the button points to?
I think it's an If / else script required along these lines:
on (press)
if (currentFrame =10)
stop;
else
on (release)
gotoAndPlay (10)
Any help would be greatly appreciated![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Just getting to grips with this actionscript malarky, but I can't work out how to do this:
I have a button on frame 5 which, when clicked makes the movie jump to frame 10 and fade in something else. However, if the movie is already at frame 10 the button can still be clicked on, and the fade occurs again unecessarily if someone clicks it. Is there any way to disable the button from working if the current frame is the frame the button points to?
I think it's an If / else script required along these lines:
on (press)
if (currentFrame =10)
stop;
else
on (release)
gotoAndPlay (10)
Any help would be greatly appreciated