Flash
Flash
Out of context: Reply #1
- Started
- Last post
- 4 Responses
- restlessdesign0
well...where are you calling the function?
anyways, if you're going to be doing a lot of logic testing, i would suggest using a SWITCH statement instead of a bunch of IF statements
for the way you're doing it, you don't even really need to pass any parameters to your function. you could just make a global variable:
_global.thePage = "home"
and change the value of that variable whenever a button is clicked, then call a function to load it:function loadPage() {
switch (_global.thePage) {
case "home" :
some_mc.loadMovie("home.swf")
break;
}
}etc.