Im trying to make a menu that when you click on it the menu scrolls out then when you cick on it again it scrolls back again i would like to do it with as. but I have so far just got something that stops stuck out.
could some have a quick sneak peak and try and help me out here!
on (press) {
if (_root.menu._x<90) {
moveOut();
}
if (_root.menu._x>90) {
moveIn();
}
moveOut = function () {
onEnterFrame = function () { if (_root.menu._x<90) {_root.menu._x += 3;trace(_root.menu._x);}};
};
moveIn = function () {
onEnterFrame = function () { if (_root.menu._x>90) {_root.menu._x -= 3;trace(_root.menu._x);}};
};
}