# Help converting small AS 1.0 script to AS 2.0

**URL:** <https://forum.kirupa.com/t/help-converting-small-as-1-0-script-to-as-2-0/329541>\
**Category:** flash\
**Created:** [September 11, 2012, 9:13pm UTC](https://forum.kirupa.com/t/help-converting-small-as-1-0-script-to-as-2-0/329541 "2012-09-11T21:13:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thrilhouse1000](https://avatars.discourse-cdn.com/v4/letter/t/f4b2a3/32.png) [@thrilhouse1000](https://forum.kirupa.com/u/thrilhouse1000)\
**Post date:** [September 11, 2012, 9:13pm UTC](https://forum.kirupa.com/t/help-converting-small-as-1-0-script-to-as-2-0/329541/1 "2012-09-11T21:13:27Z")

</div>

Hi,

Does anyone have a spare second to update this code from 1.0 to 2.0? It would really get me out of a bind and be much appreciated.

Thanks!  
T

Code:

for (n=8; n\<50; n++) {  
duplicateMovieClip(“bluebit”, “bluebit” add n, n);  
setProperty(“bluebit” add n, \_rotation, random(360));  
setProperty(“bluebit” add n, \_alpha, random(30)+80);  
setProperty(“bluebit” add n, \_xscale, 50+Number(random(60)));  
setProperty(“bluebit” add n, \_yscale, 50+Number(random(60)));  
tellTarget (“bluebit” add n) {  
gotoAndPlay(random(5));  
}  
}
