# Rotating Images...Stop on mouse down?

**URL:** https://forum.kirupa.com/t/rotating-images-stop-on-mouse-down/8828
**Category:** flash
**Created:** [November 29, 2002, 8:17am UTC](https://forum.kirupa.com/t/rotating-images-stop-on-mouse-down/8828 "2002-11-29T08:17:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![odeathoflife](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@odeathoflife](https://forum.kirupa.com/u/odeathoflife)
#### Post date: [November 29, 2002, 8:17am UTC](https://forum.kirupa.com/t/rotating-images-stop-on-mouse-down/8828/1 "2002-11-29T08:17:49Z")

</div>

Can someone help me out?

I have a rotating image thing, but would like it to stop on the mouse down.

[You can see what I have here](http://www.members.shaw.ca/odeathoflife2)

I am fairly new to flash, so Action script proper names are prob going to be needed to get me in teh right direction.

Here is the code

[movie clip in frame 1]  
onClipEvent (load)  
{  
clips = [];  
for (clip in this)  
{  
if (typeof(this[clip]) == “movieclip”)  
{  
clips[clips.length] = this[clip];  
this[clip].\_y = 2;  
}  
}  
count = clips.length;  
step = 6.283185 / count;  
radius = 300;  
}

onClipEvent (enterFrame)  
{  
speed = (360 - \_root.\_xmouse) / 3000;  
angle = angle + speed;  
for (i = 0; i \< count; i++)  
{  
cos = Math.cos(angle + step \* i);  
sin = Math.sin(angle + step \* i);  
clips\*.\_x = cos \* radius;  
clips\*.\_xscale = sin \* 100;  
clips\*.\_yscale = 80 + sin \* 20;  
clips\*.swapdepths(clips\*.\_yscale);  
clips\*.\_alpha = Math.sin(angle + step \* i) \* 40 + 60;  
}  
}

[Action in Frame 1]  
getURL(“FSCommand:allowscale”, “false”);  
stop();

There are mouse down zooms on the button state of the MC’s and i have tried to put a stop() at various parts of the script to no avail.

Thanks folks
