# Sequencing actions

**URL:** <https://forum.kirupa.com/t/sequencing-actions/9895>\
**Category:** Uncategorized\
**Created:** [December 20, 2002, 12:15pm UTC](https://forum.kirupa.com/t/sequencing-actions/9895 "2002-12-20T12:15:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uk\_martin](https://avatars.discourse-cdn.com/v4/letter/u/ec9cab/32.png) [@uk\_martin](https://forum.kirupa.com/u/uk_martin)\
**Post date:** [December 20, 2002, 12:15pm UTC](https://forum.kirupa.com/t/sequencing-actions/9895/1 "2002-12-20T12:15:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 20, 2002, 12:27pm UTC](https://forum.kirupa.com/t/sequencing-actions/9895/2 "2002-12-20T12:27:01Z")

</div>

the firts one is doable:

```auto
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.

=)
