# Fireworks Animation Coding Help

**URL:** <https://forum.kirupa.com/t/fireworks-animation-coding-help/323362>\
**Category:** flash\
**Created:** [June 27, 2011, 4:57pm UTC](https://forum.kirupa.com/t/fireworks-animation-coding-help/323362 "2011-06-27T16:57:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Egray](https://avatars.discourse-cdn.com/v4/letter/e/278dde/32.png) [@Egray](https://forum.kirupa.com/u/Egray)\
**Post date:** [June 27, 2011, 4:57pm UTC](https://forum.kirupa.com/t/fireworks-animation-coding-help/323362/1 "2011-06-27T16:57:55Z")

</div>

Hi guys, I am new to actionscript and new to these parts. I found this tutorial to create a Fireworks animation and I need it in Actionscript 3. I found a thread for the same tutorial with updated coding but it was in Actionscript 2 I believe. I tested that updated coding in Actionscript 3 with no results. Here is the link to the tutorial and it has a downloadable .fla file you can test with.  
 ![]()  
[http://www.wipeout44.com/tutorials/flash\_fireworks.asp](http://www.wipeout44.com/tutorials/flash_fireworks.asp)

Here is some of the coding as well.

* * *

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));  
}  
}

Any help would be greatly appreciated. Thanks!
