# Duplicate mc Script problems

**URL:** <https://forum.kirupa.com/t/duplicate-mc-script-problems/94159>\
**Category:** Uncategorized\
**Created:** [November 9, 2003, 3:06pm UTC](https://forum.kirupa.com/t/duplicate-mc-script-problems/94159 "2003-11-09T15:06:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fargate](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@Fargate](https://forum.kirupa.com/u/Fargate)\
**Post date:** [November 9, 2003, 3:06pm UTC](https://forum.kirupa.com/t/duplicate-mc-script-problems/94159/1 "2003-11-09T15:06:49Z")

</div>

Ok… I tried to put the following script into my mc…

[AS]onClipEvent (load) {  
amount = 10;  
while (amount\>0) {  
duplicateMovieClip(\_root.flower, “mc”+i, i);  
setProperty(“mc”+i, \_x, random(275));  
setProperty(“mc”+i, \_y, random(275));  
setProperty(“mc”+i, \_alpha, random(275));  
setProperty(“mc”+i, \_xscale, random(50));  
setProperty(“mc”+i, \_yscale, random(50));  
i++;  
amount–;  
}  
}  
[/AS]

When I try to run it gives me this message:

```
  A script in this movie is causing flash player to run slowly. If it continues to run, your computer may become unresponsive.Do you want to abort the script?

```

* * *

… Is it something in my script how could I fix this?? I’ve attached the file.
