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!

Help with MovieClips... 1

Status
Not open for further replies.

dmears1

Technical User
Jun 18, 2003
208
US
I'm having a problem figuring this out. Because I want the timeline of my main movie to contain as few frames as possible, I've put all animations & buttons inside of movie clips. Here's my problem: on Frame 1 of the main timeline, my menu bar containing all buttons is in a movie clip. In this clip, the menu bar does not appear until from 280. When I click an any button (which takes me to a different frame in the main timeline) the clip containing the menu bar restarts, meaning I have to wait 280 frames again before my buttons display again. Is there a way to change it so that the movie clip containing my menu bar stays displayed after clicking the buttons?
Any suggestions will be greatly appreciated. Hope this description is not too confusing. Thanks in advance for any help...
 
Try assigning a variable to track the menu state.

In other words... the first time the menu loads set a variable on the root of the movie. EX:

On the last frame (before the stop(); action) of the menu:

Code:
_root.menuLoaded = true;
stop();

Then on the first frame of the menu MC:

Code:
if(_root.menuLoaded == true){
   gotoAndStop(framenumber); // replace with the frame number of your last frame.
}

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Wow...that's exactly what I wanted to do! Works great...Thanks alot & have a star.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top