PDA

View Full Version : [FMX] dynamic gotoAndStop();



Psykloak1
May 3rd, 2005, 07:54 AM
I want to be able to do something like this:


gotoAndStop(("level"+x),1);
Where x is a number variable and there are the scenes "level1", "level2", "leve3l", etc. I tried this and a few other things but none of them worked. Is this even possible or is the scene field in gotoAndStop that limited?

Dutchy
May 3rd, 2005, 08:01 AM
I don't think you can do it with scenes... You can do it with framelabels.

Just copy your scenes to the main timeline and give them framelabels...

Dutchy

fasterthanlight™
May 3rd, 2005, 12:09 PM
Definately can't reference scenes using a variable... A stupid limitation i know, but you'll have to do what Dutchy said, or use external swfs.