Skip navigation
jamestparker
Currently Being Moderated

CurrentFrame help

May 29, 2012 12:43 PM

I have next button that will goes to the next frame on the timeline. I also have a movieclip loaded from the library, and I want it to be on the same frame number as the main timeline. If next is pushed to 2nd frame the loaded movie needs to show its 2nd frame. Any suggestions?

 
Replies
  • Currently Being Moderated
    May 29, 2012 1:15 PM   in reply to jamestparker

    When the movie is loaded, add another event listener/handler for the same button that makes the loaded movieclip advance as well.  If you unload the movieclip later on, remove the secondary listener as well.

     
    |
    Mark as:
  • Currently Being Moderated
    May 29, 2012 1:46 PM   in reply to jamestparker

    You should be able to use something like...

     

    mc.gotoAndStop(currentFrame);

     

    in the second listener's event handler function.  Though you could also just use...  mc.nextFrame() ...if you know they will be in synch from the start.

     
    |
    Mark as:
  • Currently Being Moderated
    May 29, 2012 3:03 PM   in reply to jamestparker

    You're welcome

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points