Right,
I'm trying to do a telltarget command that sends a movie to a variable scene, generated by adding the number of attempts made in a game to the suffix "off" (I'm turning window lights off one by one....)
Now I've tested the variable and it's generating that ok. So I get:
1off
2off
3off et
And they are (funnily enough) the names of the scenes. The file I want to change is on the main timeline and called "windows" . So when I use the code below, it's supposed to send it there - how come it doesn't then??? ARGH!
My code:
tellTarget (_root.windows) {
_root.windownumber = _root.numberattempts + "off";
gotoAndPlay (_root.windownumber);
}