all groups > flash actionscript > september 2005 >
You're in the

flash actionscript

group:

gotoAndStop(scene_variable, 1); ???


gotoAndStop(scene_variable, 1); ??? groovything.com
9/30/2005 7:17:34 PM
flash actionscript: gotoAndStop(scene_variable, 1);

if I do this I get an error saying the first value must be a quoted string,
but if i type it as "scene_variable", it looks for a scene called
"scene_variable"

anyone know how to do this???
Re: gotoAndStop(scene_variable, 1); ??? funkme
9/30/2005 9:47:09 PM
you cannot gotoAndStop to a scene via a variable

try this one

button1.onPress=function(){
_root.scn=1;
}

//and then in some distant frame (because i guess u want to go to another
scene after some animation has been played)

switch(_root.scn){
case 1: gotoAndStop("scene1",1);
case 2: gotoAndStop("scene2",1);
//and so on
}

AddThis Social Bookmark Button