# Actionscript newbie question

**URL:** https://forum.kirupa.com/t/actionscript-newbie-question/95172
**Category:** Uncategorized
**Created:** [November 21, 2003, 4:24pm UTC](https://forum.kirupa.com/t/actionscript-newbie-question/95172 "2003-11-21T16:24:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jaz](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@jaz](https://forum.kirupa.com/u/jaz)
#### Post date: [November 21, 2003, 4:24pm UTC](https://forum.kirupa.com/t/actionscript-newbie-question/95172/1 "2003-11-21T16:24:16Z")

</div>

OK, this has been doing my head in - I think I understand the logic but I just can’t get my head round how to express it in Actionscript - can anyone out there translate the following!?

On release of button “A” tell movieclip “B” to play frame “X”,

but

if the button has already been released before (or if movieclip “A” is already at frame “X”)

then on release of button “A” go to frame “Y” instead

Cheers  
Malc :h:
