Changing stacking order of layers

is there any way to switch the stacking order of layers during a movie clip. actually i want to do it with an on(release) action. any ideas? and you’ll have to break it down for me, i’m kinda new to actionscripting.