# Need Simple Actionscript!

**URL:** <https://forum.kirupa.com/t/need-simple-actionscript/65492>\
**Category:** flash\
**Created:** [September 27, 2004, 2:43am UTC](https://forum.kirupa.com/t/need-simple-actionscript/65492 "2004-09-27T02:43:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![B3NKobe](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@B3NKobe](https://forum.kirupa.com/u/B3NKobe)\
**Post date:** [September 27, 2004, 2:43am UTC](https://forum.kirupa.com/t/need-simple-actionscript/65492/1 "2004-09-27T02:43:25Z")

</div>

Hi - I need some simple action script that will do the following:

When the mouse moves OFF a movie clip that i have i need it to play a certain frame or movieclip.

If anyone could help would be great…

---

<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:** [September 27, 2004, 3:16am UTC](https://forum.kirupa.com/t/need-simple-actionscript/65492/2 "2004-09-27T03:16:30Z")

</div>

put a button in your mc on the top layer and give it some AS like:

on(rollOut){this.gotoAndPlay(“yourframelabel”)};

that is if you want to go to frames in that same mc.

If you want to control another mc or go to frames in your main timeline just  
reference what timeline you want to control like this:

on(rollOut){\_root.anothermc.gotoAndPlay(“myframelabel”);

hope that helps

---

<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:** [September 27, 2004, 3:37am UTC](https://forum.kirupa.com/t/need-simple-actionscript/65492/3 "2004-09-27T03:37:11Z")

</div>

thanx “natronp” - after playing around with what you gave me I finally got it working, thanx heaps for that 🙂
