PDA

View Full Version : loading swf in sequence



oskar
June 8th, 2004, 03:09 PM
I have a main movie with 12 buttons (numbered 1-12), each button loads the relevant swf into a blank 'content' MC on the main stage.

I also need to have 1 button called 'start' which plays whichever swf is due next. ie; if you are on swf no. 3 pressing start will load swf no. 4.

How do I do this, what do I need to look into?

I guess a simple way would be to have the 'start' button tell the 'content' movie to go to a certain frame which has an action on it to load whichever movie is next... ???

thanks for any help

Ordinathorreur
June 8th, 2004, 04:59 PM
Assign a variable when you press the button. e.g.

for the button that loads movie 1

on(release) {
_global.picture = 1;
}


Then add something to the start button like:

on(release) {
_global.picture = _global.picture +1;
}


(I'm not quite sure if you really need the _global prefix though, and this will only work if you have your movies numbered 1 through 12)

oskar
June 8th, 2004, 06:48 PM
thanks dude....

will try that out :)