Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

goto and play label under movieclip? 1

Status
Not open for further replies.

greengrassbrian

Technical User
Mar 26, 2004
33
US
how do i set an action to go to and play a label within a movieclip that is placed on a labeled keyframe within the scene?

more details:
I'm creating an alternate link that goes straight to my demo reel.

on the first frame i need to give it an action that instead of playing regularly goes to the portfolio section (labeled keyframe portfolio)...but it can't stop there-> there's a movieclip which within there's a label called entertainment....

i want it to go to the 'entertainment' label upon loading...

any help out there?
 
If I understand your structure correctly try this.

Code:
on(release){
   _root.gotoAndStop("portfolio");
   with(_root.movieClip){
      gotoAndStop("entertainment");
   }
}

This assumes the button will be on the main timeline and that the movieclip housing the "entertainment" label is also on the main timeline.

Hope it helps.


Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top