# Action Script Question

**URL:** https://forum.kirupa.com/t/action-script-question/118802
**Category:** Uncategorized
**Created:** [August 9, 2004, 9:58am UTC](https://forum.kirupa.com/t/action-script-question/118802 "2004-08-09T09:58:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![up\_on\_won](https://avatars.discourse-cdn.com/v4/letter/u/bc8723/32.png) [@up\_on\_won](https://forum.kirupa.com/u/up_on_won)
#### Post date: [August 9, 2004, 9:58am UTC](https://forum.kirupa.com/t/action-script-question/118802/1 "2004-08-09T09:58:28Z")

</div>

how do you do an action script where you tell a button to play the “movie-clip” when “mouse roll-over”, and to make it where the “movie-clip” doesn’t repeat back to the beginning when it reaches the end of the “movie-clip”

-thanks

---

<div class="post-metadata">

### Author: ![ViNc3](https://avatars.discourse-cdn.com/v4/letter/v/b487fb/32.png) [@ViNc3](https://forum.kirupa.com/u/ViNc3)
#### Post date: [August 9, 2004, 10:50am UTC](https://forum.kirupa.com/t/action-script-question/118802/2 "2004-08-09T10:50:45Z")

</div>

Welcome to the forums!

there are a few ways of doing it…here’s one:

On the last frame of your movieclip animation, add this code:

```php

stop();

```

on the properties inspector of your movieclip, enter this as the instance name: clip1  
Put this code on a button

```php
 
on (rollOver) {
	_root.clip1.play();
}

```

you could add a roll out to stop the animation as well
