# Action Script Question

**URL:** https://forum.kirupa.com/t/action-script-question/60362
**Category:** flash
**Created:** [August 9, 2004, 9:58am UTC](https://forum.kirupa.com/t/action-script-question/60362 "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/60362/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: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 9, 2004, 10:50am UTC](https://forum.kirupa.com/t/action-script-question/60362/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
