Skip to main content
tony_r
Participant
June 23, 2016
Answered

MovieClip - trouble with instance.play() & stop()

  • June 23, 2016
  • 1 reply
  • 418 views

Hello, I'm trying to start and stop a simple animation.  I made a circle, converted it to a MovieClip symbol named 'circle', and move it around using a tween.  It stops and plays when I pass the 'stop()' or 'this.stop()' and 'play()' or 'this.play()' commands, but does neither when i use 'circle.play()' or 'circle.stop()'. 

I have tried 'insert target path' and it passes in 'this.circle' but it still does not work.

Any suggestions?

This topic has been closed for replies.
Correct answer Ned Murphy

If you named the movieclip "circle" but you animate it in its parent timeline, then the circle itself has nothing to play.   That is likelt why play() and stop() work because those are commands for the timeline you put the code into.   The circle movieclip needs to contain the timeline tween, not be placed into it.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
June 23, 2016

If you named the movieclip "circle" but you animate it in its parent timeline, then the circle itself has nothing to play.   That is likelt why play() and stop() work because those are commands for the timeline you put the code into.   The circle movieclip needs to contain the timeline tween, not be placed into it.

tony_r
tony_rAuthor
Participant
June 23, 2016

thanks for the clarification, have it working now. 

Ned Murphy
Legend
June 23, 2016

You're welcome