shuga
1
i have a variable called ‘num’ in the _root’s main timeline
then i have a button that is told to
on(press){
_root.num=design
_root.window.play();
}
so i want the mc called window to play it’s animation then when it reaches a frame at the end of the animation a controller mc tells it to
onClipEvent(enterFrame){
gotoAndStop(_root.num);
}
and I have a frame label in window that is called ‘design’ but it’s not working.
what i want is for the movieclip to reach this frame then jump to the frame specified in the variable that is stored in the _root.
what am i doing wrong?
system
2
You never defined num as a string, perhaps that is it.
_root.num = “design”
system
3
ok
i figured it out
you can’t have alpha characters as part of a variable
so i changed the variable to a number then called the label f1, f2 etc and told it to gotoAndStop(“f”+_root.num);
=)
thanks
system
4
lol … i posted at the same time as you … so if i want alpha characters i have to define it as a string … sweet
i’ll try that
thanks beta
system
5
tried it
it worked
thank you very much beta =)
system
6
No problem Shuga.
Everytime I read your name it reminds me of Rogue from the X-Men. (<-- Big fan of the X-Men)