Jump to content

Animate CC/HTML5: Movieclip not going to frame label


trial
 Share

Recommended Posts

Hello, I'm using Animate CC. I'm trying to get a movieclip placed in the beginning of the timeline to load to a frame label. I used this code but it doesn't seem to work:

this.movieClip_mc.gotoAndStop("start");

I was thinking maybe the code loads first before the movieclip, that's why it's not being fired?

Link to comment
Share on other sites

This code worked for me to change the movieclip to the frame label that I wanted:

stage.on("goToFrameLabel", initAllFrameMCs, this, true);

function initAllFrameMCs() {
	this.movieClip_mc.gotoAndStop("start");
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...