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

gotoAndPlay with action script 1

Status
Not open for further replies.

webscripter

Programmer
Jul 29, 2002
266
US
Flash MX 6

I have a main swf file which creates an empty movie clip and loads a sub movie. In the sub movie there is a pushbutton component which when pushed I want to the movie to go to frame 2 of the main movie.

I set the handler for the pushbutton to sendinfo.

Then created a function called sendinfo and put it in the main movies first frame where most of my actionscript is.
The pushbutton trace doesn't show it finding the function.

If I put the sendinfo into the sub movie it finds the function. But the gotoAndPlay doesn't find the main scene and frame 2.

How do I tie a sub movie action to do somethng in the main movie?

Thanks
Tricia
yorkeylady@earthlink.net
 
sounds like a path problem
for the code inside the movie clip get to the main timeline you want using parent

_parent.gotoandplay(2);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top