# Fireworks Animation

**URL:** <https://forum.kirupa.com/t/fireworks-animation/311180>\
**Category:** flash\
**Created:** [June 29, 2010, 1:18pm UTC](https://forum.kirupa.com/t/fireworks-animation/311180 "2010-06-29T13:18:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dosi5127](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@dosi5127](https://forum.kirupa.com/u/dosi5127)\
**Post date:** [June 29, 2010, 1:18pm UTC](https://forum.kirupa.com/t/fireworks-animation/311180/1 "2010-06-29T13:18:45Z")

</div>

Found this tutorial to create a Fireworks animation. I need it to work with Flash Player 8, but it will only work in Flash Player 6. When in 8, it gives 6 Compiler Errors, and I don’t know how to fix them.

Here is the link to the tutorial, it has a downloadable .fla file so that way you can test it in Flash Player 8 and see the errors for yourself. I’ll also post the two chunks of AS and the Errors.

[http://www.wipeout44.com/tutorials/flash\_fireworks.asp](http://www.wipeout44.com/tutorials/flash_fireworks.asp)

* * *

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

* * *

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

* * *

![](http://forum.kirupa.com/uploads/kirupa/6258/375c9ff7cf1db2e0.png)

Thank you for your help!
