QUOTE(girasquid @ 30 Apr, 2008 - 09:43 AM)

I think that you have the wrong forum - you wanted Flash & ActionScript, not JavaScript.
Regarding your question, why not just set the
MovieClip._visibile property to either true or false?
here is some sample code to show you how to do that.
Also, you could have just waited for a mod to move
your other post.
Well that solved one problem,(thanks !) but has also given me another !!
I set the visibility to false in both the onPress and onRelease funtions, (because of the following problem) however when each button is clicked it is conflicting with the other movieclip and my image completely dissapears, and all buttons become redundant.
heres my code (try to stifle the laughter !!)
CODE
forward_btn.onPress = function() {
ipod_mc.onEnterFrame = function() {
ipod_mc.gotoAndStop(ipod_mc._currentframe+1);
ipodDown_mc._visible = false;
ipodRight_mc._visible = false;
ipodLeft_mc._visible = false;
};
};
forward_btn.onRelease = function() {
ipod_mc.onEnterFrame = function() {
ipod_mc.stop();
ipodDown_mc._visible = false;
ipodRight_mc._visible = false;
ipodLeft_mc._visible = false;
};
}
down_btn.onPress = function() {
ipodDown_mc.onEnterFrame = function() {
ipodDown_mc.gotoAndStop(ipodDown_mc._currentframe+1);
ipod_mc._visible = false;
ipodRight_mc._visible = false;
ipodLeft_mc._visible = false;
};
};
down_btn.onRelease = function() {
ipodDown_mc.onEnterFrame = function() {
ipodDown_mc.stop();
ipod_mc._visible = false;
ipodRight_mc._visible = false;
ipodLeft_mc._visible = false;
};
}
right_btn.onPress = function() {
ipodRight_mc.onEnterFrame = function() {
ipodRight_mc.gotoAndStop(ipodRight_mc._currentframe+1);
ipod_mc._visible = false;
ipodDown_mc._visible = false;
ipodLeft_mc._visible = false;
};
};
right_btn.onRelease = function() {
ipodRight_mc.onEnterFrame = function() {
ipodRight_mc.stop();
ipod_mc._visible = false;
ipodDown_mc._visible = false;
ipodLeft_mc._visible = false;
};
}
left_btn.onPress = function() {
ipodLeft_mc.onEnterFrame = function() {
ipodLeft_mc.gotoAndStop(ipodLeft_mc._currentframe+1);
ipod_mc._visible = false;
ipodDown_mc._visible = false;
ipodRight_mc._visible = false;
};
};
left_btn.onRelease = function() {
ipodLeft_mc.onEnterFrame = function() {
ipodLeft_mc.stop();
ipod_mc._visible = false;
ipodDown_mc._visible = false;
ipodRight_mc._visible = false;
};
}
Any help would be greatly appriciated !