Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / September 2005



Tip: Looking for answers? Try searching our database.

gotoAndStop(scene_variable, 1); ???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
groovything.com - 30 Sep 2005 20:17 GMT
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???
funkme - 30 Sep 2005 22:47 GMT
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
}
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.