# unLoad movieclip!

**URL:** <https://forum.kirupa.com/t/unload-movieclip/167774>\
**Category:** Uncategorized\
**Created:** [October 31, 2005, 10:03pm UTC](https://forum.kirupa.com/t/unload-movieclip/167774 "2005-10-31T22:03:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tidoublegr](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@tidoublegr](https://forum.kirupa.com/u/tidoublegr)\
**Post date:** [October 31, 2005, 10:03pm UTC](https://forum.kirupa.com/t/unload-movieclip/167774/1 "2005-10-31T22:03:06Z")

</div>

OKay, so I thought unloading a movie clip would be A LOT easier…but I can’t seem to figure out how to stop it!

I have it playing from frame 577 to frame 598  
On frame 577 I have:  
[color=blue]i = 0;  
while (i\<8) {  
//duplicateMovieClip(dot, “dot”+i, i);  
gator2\_mc.duplicateMovieClip(“gator2\_mc”+i, i);  
i++;  
}  
[/color]  
and on the movieclip on that frame I have:  
[color=blue]onClipEvent (load) {  
//data you may want to change  
width = 1020;  
height = 680;  
speed = Math.round(Math.random()\*8)+1;  
//initial positions  
x = this.\_x=Math.random()\*width;  
y = this.\_y=Math.random()\*height;  
x\_new = Math.random()\*width;  
y\_new = Math.random()_height;  
}  
onClipEvent (enterFrame) {  
//x movement  
if (x\_new\>this.\_x) {  
sign\_x = 9;  
} else {  
sign\_x = -9;  
}  
dx = Math.abs(x\_new-this.\_x);  
if ((dx\>speed) || (dx\<-speed)) {  
this.\_x += sign\_x_speed;  
} else {  
x\_new = Math.random()_width;  
}  
//y movement  
if (y\_new\>this.\_y) {  
sign\_y = 7;  
} else {  
sign\_y = -7;  
}  
dy = Math.abs(y\_new-this.\_y);  
if ((dy\>speed) || (dy\<-speed)) {  
this.\_y += sign\_y_speed;  
} else {  
y\_new = Math.random()\*height;  
}  
} [/color]  
[color=black]Now these are just codes that I got from some tutorials…i don’t exacty understand ALL the code but basically what it does is duplicates my movieclip and then makes it randomly appear on the screen…How do I STOP it to continue on with somethingelse on frame 598?!?[/color]

Any help at all would be most appreciated!  
Thanx,  
T-I-double-G-R 🙂  
[color=blue][color=black][/color]

[/color]
