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

Can you activate a button from another movie?

Status
Not open for further replies.

rossi3713

Technical User
Feb 18, 2004
18
US
I have a Flash movie file with a loaded swf file, which contains a next button. When clicked it unloads the current movie and then calls and loads the next movie.

Can I activate button actions on named anchor frame in the 1st swf file from the 2nd swf files Action Script?

The idea here is if the user selects Button (A) on the first screen all of the movies will load consecutively until the last movie is loaded. If they select Button (B) they will just click the next button on every page until the last movie is loaded.

Thank you,
Rossi3713
 
I think i understand what your trying to say. you press a button in the main stage (A) which then loads a movie into it (B). when you press a button in (B) it activates something in (A), right? if so, the buttons action should be something similiar to:

on (press) {
_parent._parent.gotoAndPlay(2);
}

This tells the buttons parent (b) to tell the parent of that (a) to goto frame 2 and play. Understandable? I hope this helps.

 
Crazybeans128

Thank you for your reply, your answer is right but I think I asked the question wrong because you still have to click the button on the next movie to advance.

What I am attempting to do here is give the user the option of a Self Guided tour or an Auto run tour. Currently the site is self-guided; the user just continues to hit the next button, which unloads the current movie and then loads the next until they get to the end, which are about 150 files total.


On the introduction page I am going to place the following explanation.

“Place the cursor on Low Bandwidth or High Bandwidth at right that corresponds to the speed of your Internet connection. This will show another selection. Click on Self-Paced if you wish to control the speed of the lesson or on Auto Run if you want to let the lesson play continuously.”


You can see the site at the following url.


The page content loads on level2 and every movie has a stop action at the end. What I was thinking was to name the previous frame before the stop frame “goto” so if the user selects AutoRun an additional swf file would be loaded that can read the goto frame in the level2 ovie and activate the next button on the current page, which has the follow script for example.

on (release) {
unloadMovieNum(2);
stopAllSounds();
loadMovieNum("../section_3/03_top05/03_top05_pg03.swf", 2);
}

Any ideas?

Thanks again

Rossi3713
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top