I'm building a quick flash presentation, navigating with the up and down arrows but need to create an if else statement using the current scene's name.
I have 10 scenes named 01 - 10 but from 7 to 10 are only accessible by from a hidden button and need to find a way to loop the navigate from 01- 06 using the scene name for example:
if scene name = 04 {
go to nextScene();
} else if scene name = 05 {
go to nextScene();
} else if scene name = 06 {
go to scene 02
}
I have all working apart from the if else statement as it goes to next scene with the up arrow but continues up to 10 when I need to go to 6 and start again.
Any help would be great?
Thanks,
Thomas.
create a couple of functions, use one for your key handler and the other for the hidden button like: