Flash=play next
- Started
- Last post
- 4 Responses
- rasko4
I have a main movie with say 10 buttons (numbered 1-10), each button loads the relevant swf into a blank 'content; MC on the 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 play swf no. 4.
How do I do this, what do I need to look into?
- Anarchitect0
//Stage
count=1//in each button
this.onPress = function(){
this._parent.targetMC.loadMovie...
(this._parent.count{10) ? ++this._parent.count : 1;
}//start button
start.onPress = function(){
next = (this._parent.count { 10)?cthis._parent.count+1 : 1;
this._parent.targetMC.loadMovie...
}PS - unfit just got back from a most "exausting" day at the beach. I'll answer your mail soon.
- unformatted0
when you press the button to load the swf set a var like
currSection = 4;
then in your start button
currSection += 1;
add 1 to it.
- rasko40
haha, nice!
awesome thanks :)
- rasko40
hmm I'm gettin actionscript errors for some reason, do the buttons have to be movieclips or something?
*I must buy an AS book