Sequencing actions

This may seem daft to experienced users, but as a novice this one has me stumped.

How can actionscript be written so that on a single (say “On Release”) 2 or more actions are invoked?

e.g. I want a button to both open a new window with a new URL in it AND ALSO close the existing window (I’m using Get URL, but I can’t get a button to navigate between pages without openning new windows all of the time)

ALSO - a variation to the theme here…

If a button is used within a movie , can its actions be sequenced? e.g., once clicked, play the movie clip in frame “x”, and when the movie clip is finished, go to frame “y”

I look forward to hearing from anyone who might be able to help.

Thanks,

Martin

the firts one is doable:

on (realease){
doThis ;
doThat ;
}

the second is no possible to do in the code for the button, but you can do that in any number of ways.

=)