# duplicateMovieClip script is running too slow

**URL:** <https://forum.kirupa.com/t/duplicatemovieclip-script-is-running-too-slow/254007>\
**Category:** flash\
**Created:** [March 7, 2008, 7:56am UTC](https://forum.kirupa.com/t/duplicatemovieclip-script-is-running-too-slow/254007 "2008-03-07T07:56:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xsix](https://avatars.discourse-cdn.com/v4/letter/x/e19adc/32.png) [@xsix](https://forum.kirupa.com/u/xsix)\
**Post date:** [March 7, 2008, 7:56am UTC](https://forum.kirupa.com/t/duplicatemovieclip-script-is-running-too-slow/254007/1 "2008-03-07T07:56:01Z")

</div>

I just woke up, dressed up, and was ready to go to my girlfriend when i released i want to try tu duplicate a movieclip 😃 so i spend a few minutes but i got “Script is running too slow” warning message.  
Here is my fewminutes code. “rutul” is an instance name of my object(oval) and this code  
i’ve written into it, and i don’t see any errors, in the fact when i wait a few minutes i get a flash player window with 3 balls as i want, but IT’S HORRIBLY slow. Have i missed something? :?

```auto

onClipEvent(load) {
	var cnt1, cnt2:Number=0;
	for (cnt1=1; cnt1<=3;cnt1++) {
    this.duplicateMovieClip("rutul"+cnt1,cnt1);
    _root["rutul"+cnt1]._x=cnt1*10;
	_root["rutul"+cnt1]._y=cnt1*10;
	
	}
	}

```

I’ve some code in my mind, if i duplicate a movie clip, DOES event the code duplicate? I mean if this code is written for some object, and i then copy that object, this code will be copied? because this is the only sollution i can figure out
