I want to reference a scene name in a variable - for instance, I want to be able to say:
gotoAndStop(mySceneString, myFrameLabel);
however, this is giving me an error, saying "Scene name must be quoted string". I tried the following:
gotoAndStop(new String(mySceneString), myFrameLabel);
but that still didn't work. Is this sort of thing possible? Otherwise, there is no way to automate this.. and the only way to get around this would be:
if (mySceneString == "scene01" gotoAndStop("scene01", myFrameLabel);
this would be highly inefficient, and it doesn't seem like Flash would make such a restriction... is there another way to go about this? Thank you for your time... Liam Morley
lmorley@gdc.wpi.edu
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."
gotoAndStop(mySceneString, myFrameLabel);
however, this is giving me an error, saying "Scene name must be quoted string". I tried the following:
gotoAndStop(new String(mySceneString), myFrameLabel);
but that still didn't work. Is this sort of thing possible? Otherwise, there is no way to automate this.. and the only way to get around this would be:
if (mySceneString == "scene01" gotoAndStop("scene01", myFrameLabel);
this would be highly inefficient, and it doesn't seem like Flash would make such a restriction... is there another way to go about this? Thank you for your time... Liam Morley
lmorley@gdc.wpi.edu
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."