Hi - I’m trying to create a fireworks background using as3. I had found one tutorial that looks great, but uses as2 and i’m having trouble converting it to as3. i’ve done all of the lynda.com tutorials on particle systems, but still can’t quite figure out how to get the firework working correctly.
here’s the as2 fireworks that i like: http://www.wipeout44.com/tutorials/flash_fireworks.asp
The as2 code used is:
var numOfParticles:unit = 25;
var particles_ary:Array = [];
function updateStage(event:Event):void
{
if(particles_ary.length < numOfParticles)
{
var bluebit:Bluebit = new Bluebit();
addChild(bluebit);
bluebit.rotation = Math.random() * 360;
bluebit.alpha = Math.random(30) + 80;
bluebit.scaleX = 50 + Math.random(60);
bluebit.scaleY = 50 + Math.random(60);
gotoAndPlay(random(5));
}
}
Can anyone direct me to a tutorial that would help me figure out how to update this as2 to as3?
Thanks!