4n6design
4n6design

Reputation: 11

CreateJS play a child movieclip

If you have a child movieclip on stage with an animation in it, can you have the main timeline play the child movieclip at a certain timeline?

mc_child is a 20 frame animation with this.stop() at frame one so that it is paused at the beginning.

If you add the code this.mc_child.play() or this.mc_child.gotoAndPlay(5) you get an error in createJS. "Uncaught TypeError: Cannot read property 'play' of undefined."

How do you make child movieclips play at a certain frame?

Upvotes: 0

Views: 2745

Answers (1)

gskinner
gskinner

Reputation: 2488

You can use gotoAndPlay(5);

Have a look at the EaselJS documentation: http://www.createjs.com/docs/easeljs/classes/MovieClip.html

Upvotes: 1

Related Questions