View Full Version : script not working?
rrmcguire
01-25-2007, 06:14 PM
I have this script attached to this button where when you rollover it, it should go to the frame named "animation" and do the motion tween. It seems as though its not even doing the script?
3pepe3
01-26-2007, 01:14 AM
first off all i think there are a lot of tutorials about how to do buttoms but well...
delete all the code you have and copy and past this in the first frame actions:
stop();
navigation.onRollOver = function() {
gotoAndPlay(15);
onEnterFrame = function () {
if (_currentframe == 22) {
this.stop();
delete this.onEnterFrame;
}
};
};
navigation.onRollOut = function() {
onEnterFrame = function () {
prevFrame();
if (_currentframe == 14) {
this.stop();
delete this.onEnterFrame;
}
};
};
And please don't say... that u recive this messege:
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement must appear within on/onClipEvent handler
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.