PDA

View Full Version : Variables not working


mattsky27
09-03-2004, 06:08 PM
I am trying to apply some script to a button so when pressed itll jump the playhead to a certain frame depending on where the playhead is at the time of the button being pressed.

This is the script but it doesnt work,

arrowup.onRelease = function() {
};
if (_global_name == "search") {
MovieClip.gotoAndPlay(1);
}

Any ideas?

Xeef
09-03-2004, 07:22 PM
more info PLS
is a arrowup on the stage ??
is _global_name defined ???
is MovieClip on stage ??? does it have maybe a stop() on frame 1 ??
.....


trie this :
arrowup.onRelease = function() {
if (_global_name == "search") {
MovieClip.gotoAndPlay(1);
}
}

thankyou
09-03-2004, 07:27 PM
maybe this?

arrowup.onRelease = function() {
if (_global_name == "search") {
MovieClip.gotoAndPlay(1);
}
};

mattsky27
09-03-2004, 09:23 PM
Cheers for your help,

i managed to get it sorted not long after posting that message.