# Button rollover

**URL:** https://forum.kirupa.com/t/button-rollover/2806
**Category:** flash
**Created:** [April 7, 2002, 2:30am UTC](https://forum.kirupa.com/t/button-rollover/2806 "2002-04-07T02:30:04Z")
**Posts on this page:** 2
**Page:** 1

<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: [April 7, 2002, 2:30am UTC](https://forum.kirupa.com/t/button-rollover/2806/1 "2002-04-07T02:30:04Z")

</div>

how do i get it so when i rollover a button, it stops n hides a mc thats on the stage?\r\rand also, im using this coding for the motion effect\rframe one …\r\rloops = “0”;\rblurs = “6”;\r\rframe 2…\rif (Number(loops)\<Number(Number(blurs)+1)) {\rduplicateMovieClip (“clip1”, “clip” add loops, loops);\rsetProperty (“clip” add loops, \_alpha, 75-(loops\*(50/blurs)));\rloops = Number(loops) +1;\r}\r\rframe 3…\r\rgotoAndPlay (2);\r\r\r\rhow can i use that so that all the objects named clip1 will have this action script to it?\r\r

---

<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: [April 7, 2002, 9:10am UTC](https://forum.kirupa.com/t/button-rollover/2806/2 "2002-04-07T09:10:45Z")

</div>

A few remarks :\r Your code is correct, but it looks like a transcription form Flash 4. Try and change it :

```auto
 frame one ....\r\r\r\rloops = 0;\r\rblurs = 6;\r\r\r\rframe 2...\r\rif (loops<(blurs+1)) {\r\r duplicateMovieClip ("clip1", "clip" + loops, loops);\r\r this["clip" + loops]._alpha = 75-(loops*(50/blurs)));\r\r loops ++ ;\r\r}\r\r\r\rframe 3...\r\r\r\rgotoAndPlay (2);

```

Second thing :

> how can i use that so that all the objects named clip1 will have this action script to it?  
> There’s only one object called clip1, and that would be the original clip that you duplicate. Actually, there’s gonna be another one, which isn’t a good idea I think.\rAnyway, to answer your question, you could put a controller clip in the main timeline, that contains only actionscript, with a tellTarget (“\_root.clip1”) {//do whatever you want it to do ;}\r\rIf it’s not clear, well, er… I don’t know.\r\rpom 0]
