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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

variable question

Status
Not open for further replies.

manfishj

Programmer
May 30, 2002
44
US
Hi,

I'm having some trouble. I am working on a project that has a bunch of pages. Each page is a movie clip. All of these movie clips are laid out on the main timeline. Across the main timeline, there is also a menu button that stretches out the length of all of the clips.

When I click on the menu button, I want to be taken to the "slidemenu" movie clip, which is at the end of the timeline. Then, when I click the "close" button on the slide menu page, I want to be taken back to whatever frame I was on in the original movie clip. Make sense?

I was trying to store it in a variable. Each movie clip is set up so that when it's playing it's "myClip". When the menu button is pressed, myFrame=_root.myClip._currentframe
Then, when the close button is pressed: _root.gotoAndPlay(myFrame) I also tried _root.myClip.gotoAndPlay(myFrame).

Nothing is working. I click on the close button and it doesn't go anywhere. Please help. Thanks.

manfishj
 
Try...

_root.myFrame = _root.myClip._currentframe;

Then...

_root.myClip.gotoAndPlay(_root.myFrame);
Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top