Skip to main content
October 7, 2015
Answered

How to stop frame from moving?

  • October 7, 2015
  • 1 reply
  • 401 views

I am working on a project similar to monopoly, where after i roll a dice, the player moves accordingly to the number shown on the dice.

I have a script written and a frame set up. However on playing at swf, the frame just keeps playing even though there is a Roll button for the dice and doesnt stops. How do I ensure that the frame stops playing and only move when the Roll button is pressed?

This topic has been closed for replies.
Correct answer kglad

if you're trying to stop a movieclip from advancing frames, apply a stop() to the movieclip either by adding a stop() to that movieclip's timeline or by using the movieclip's name:

mc.stop();  // to stop mc from advancing frames.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
October 7, 2015

if you're trying to stop a movieclip from advancing frames, apply a stop() to the movieclip either by adding a stop() to that movieclip's timeline or by using the movieclip's name:

mc.stop();  // to stop mc from advancing frames.