Reverse action?

[SIZE=3][FONT=Times New Roman]I have this code which makes 2 objects slide across the page from right to left (PAGE, SUB). I need them to then go back to their position when another button is clicked. Is there a way of just saying ‘reverse function’ or do I have to reverse the code?[/FONT][/SIZE]

**[FONT=Times New Roman][SIZE=3][/SIZE][/FONT] **

[FONT=Times New Roman][SIZE=3]I’m trying to write the code to accomodate the changes but can’t quite get it right!![/SIZE][/FONT]

**[SIZE=3][FONT=Times New Roman][/FONT][/SIZE] **

**[SIZE=3][FONT=Times New Roman][/FONT][/SIZE] **

[SIZE=3][FONT=Times New Roman]this.onEnterFrame = function()[/FONT][/SIZE]

[SIZE=3][FONT=Times New Roman][/FONT][/SIZE]

[SIZE=3][FONT=Times New Roman]{_root.btns._alpha = 0}[/FONT][/SIZE]

[SIZE=3][FONT=Times New Roman]{if (_root.container1.SUB._x>440) {[/FONT][/SIZE]

[SIZE=3][FONT=Times New Roman]_root.container1.SUB._x += -30; [/FONT][/SIZE]

[SIZE=3][FONT=Times New Roman]} else if (_root.container1.SUB._x>-30) {[/FONT][/SIZE]

[SIZE=3][FONT=Times New Roman]_root.container1.PAGE._x += (-40-_root.container1.PAGE._x)/8;[/FONT][/SIZE]

[SIZE=3][FONT=Times New Roman]_root.container1.SUB._x += (0-_root.container1.SUB._x) /2;}[/FONT][/SIZE]

[SIZE=3][FONT=Times New Roman]else {delete this.onEnterFrame;[/FONT][/SIZE]

[SIZE=3][FONT=Times New Roman]}}}[/FONT][/SIZE]