Frosty_spl
12-10-2007, 04:10 PM
I have a animated christmas card. I have a guy that has his tongue stuck to a frozen pole, and the user has to click on tools to try to free the character.
I have almost completed it, all animation and sound is complete except for one thing.
On rollover of the tools, I wanted to make the movieclip of the person go to the specific tool reaction, so the character would react to the user rollingover each tool, and he would get scared
So I have a main MC that contains a little loop of the guy trying to pull is tongue free from the pole, it loops by a frame on the end that says gotoandplay "begin". That movieclip also has animations of each tool reaction, where the character says stuff like "no not that one" or whatnot. There is a label on the first part of each, and a gotoandplay "begin" at the end, so that way the reaction will play through once and start the loop of him pulling is tongue away.
My problem is that it does not work. I just tried to make a simple FLA of just a button, and MC. But it works and I did it the same way. My FLA just keeps looping the tongue animation, it doesnt jump to any of the other labels in that MC.
Example of my code where the rollover portion does not work ( i triple checked that the labels and MCs are spelled correctly):
on (rollOver) {
main.gotoAndPlay("dryerr");
}
on (rollOut) {
main.gotoAndPlay("begin");
}
on (press) {
gotoAndPlay("hairdryer");
hairdryer.gotoAndPlay("start");
btn = "on";
}
on (release) {
btn = "off";
count++;
_root.hairdryerbtn._visible = false;
_root.torchbtn._visible = false;
_root.kettlebtn._visible = false;
_root.chainsawbtn._visible = false;
_root.spatulabtn._visible = false;
_root.crowbarbtn._visible = false;
}
I have almost completed it, all animation and sound is complete except for one thing.
On rollover of the tools, I wanted to make the movieclip of the person go to the specific tool reaction, so the character would react to the user rollingover each tool, and he would get scared
So I have a main MC that contains a little loop of the guy trying to pull is tongue free from the pole, it loops by a frame on the end that says gotoandplay "begin". That movieclip also has animations of each tool reaction, where the character says stuff like "no not that one" or whatnot. There is a label on the first part of each, and a gotoandplay "begin" at the end, so that way the reaction will play through once and start the loop of him pulling is tongue away.
My problem is that it does not work. I just tried to make a simple FLA of just a button, and MC. But it works and I did it the same way. My FLA just keeps looping the tongue animation, it doesnt jump to any of the other labels in that MC.
Example of my code where the rollover portion does not work ( i triple checked that the labels and MCs are spelled correctly):
on (rollOver) {
main.gotoAndPlay("dryerr");
}
on (rollOut) {
main.gotoAndPlay("begin");
}
on (press) {
gotoAndPlay("hairdryer");
hairdryer.gotoAndPlay("start");
btn = "on";
}
on (release) {
btn = "off";
count++;
_root.hairdryerbtn._visible = false;
_root.torchbtn._visible = false;
_root.kettlebtn._visible = false;
_root.chainsawbtn._visible = false;
_root.spatulabtn._visible = false;
_root.crowbarbtn._visible = false;
}