View Full Version : load movie button


ccalleo
05-06-2005, 05:06 PM
Hey folks,
I'm relatively new to flash and I have an actionscript problem.


I want to have a button that does the following things:
-loads the external movieA.swf onto level 3
-waits until it's fully loaded.
-then goes to frame 16 of that loaded movie and stops.

Moreover, I want this in the form of a function that I can modify to make different buttons to load different external movies to level 3, and go to and stop at different frames. For instance, one button will load movieB.swf, wait, and go to frame 5 of that clip. Another button will load movieC.swf, wait and got to frame 6 of that clip. Is there a way to create a function where I can change those... parameters(?)... that is, movie.swf and frame?

Thanks,
Curtiss

VooDoo
05-06-2005, 08:16 PM
You would be better using html for that problem if your talking about playing a series of animations on the same timeline.

ccalleo
05-09-2005, 09:23 AM
Thanks for your reply. Sorry, I didn't make it clear...this is all within a flash site. The button that loads the external clip onto the main stage, waits until it is loaded, and then goes to frame 16 of the freshly loaded movie is within a flash site.

ccalleo
05-09-2005, 11:26 AM
http://www.forwardtrends.com/loadtotarget/

It's basically what the above files do, except that i need it to be loaded into levels rather than empty movie clips.

VooDoo
05-10-2005, 04:31 AM
I don't like making sites entirley out of flash i think it looks ugly but i know what you mean, i would use a series of stop actions and next buttons to accomplish what you are trying to do. But is it menus or animations that your wanting to jump.

You could do this... On your timeline add a new blank layer and add a blank keyframe above just where your wanting it to jump click on the blank keyframe go to the actions panel and type this in.

gotoAndPlay(16);

or type in this

gotoAndStop(16);