I'm using the following actionscript a few times in my movie:
gotoAndPlay(myvalue+"location"
;
For example:
if myvar is equal to 5. It actually goes to the frame labelled "3location". In other words, it subtracts two all by itself.
To combat this I have to do this:
gotoAndPlay((myvalue+2)+"location"
;
Is there an issue with vars and gotoAndPlay, am I overlooking something?
gotoAndPlay(myvalue+"location"
For example:
if myvar is equal to 5. It actually goes to the frame labelled "3location". In other words, it subtracts two all by itself.
To combat this I have to do this:
gotoAndPlay((myvalue+2)+"location"
Is there an issue with vars and gotoAndPlay, am I overlooking something?