# Reseting mc on stage

**URL:** <https://forum.kirupa.com/t/reseting-mc-on-stage/100849>\
**Category:** Uncategorized\
**Created:** [February 3, 2004, 6:40am UTC](https://forum.kirupa.com/t/reseting-mc-on-stage/100849 "2004-02-03T06:40:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mako](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@mako](https://forum.kirupa.com/u/mako)\
**Post date:** [February 3, 2004, 6:40am UTC](https://forum.kirupa.com/t/reseting-mc-on-stage/100849/1 "2004-02-03T06:40:10Z")

</div>

hey, I’ve got an duplicated mc that moves from the top of the stage to the bottom. I’m trying to reset it to go back to the top… after it has reached the bottom,but not having much success…

this is what I am using at the moment.

[AS]  
for (var i = 0; i\<100; i++) {  
duplicateMovieClip(“chunk”, “chunk”+i, i);  
target = eval(“chunk”+i);  
target.\_x += random(200);  
target.\_y += random(300);  
}  
function reset() {  
\_y = -14.2;  
}  
{[/AS]

and on the mc  
[AS]  
onClipEvent (enterFrame) {  
speed = 10;  
\_y += 1+speed;  
}

{[/AS]

Any sug… much appreciated…

thanx mako 🙂
