Button has states, 4 of them.Up, Over,Down, Hit.If you want some kind of animation on mouse down state,create a movieclip with the animation and place it on the down state.No need of onRelease function.
gotoAndPlay works for movieclips.So other way around is to create movieclip, put many frames and use onRelease gotoAndPlay.
Hope this helps.
thankyou for the reply, but my 'mouse down' state seems to be working fine,
im actualy having trouble making a 'mouse up' state. i want a seperate animation to play after the mouse is un-clicked, is this possible with flash?
Well in that case you can use movieclips.
create a new movieclip symbol,add three keyframe in that movieclip.In the first frame have the normal state, second frame the down state and third have the release state.
then for the movieclip you can add this code.
Thankyou it works fine