Fire effect update for flex sdk

Kim Christiansen @ Dec 30 2007 5:10 pm

I was pretty amazed of the fire fx component from gskinner. A fire fx is always good to have, but we work with the flex sdk. So here is the updated flex sdk version. In this version you dont need a movieclip with a rectangle to add to the fire fx component. Instead you define width, height, x and y as properties.

How to use:

var fire:Fire = new Fire();
fire.target = targetobject;
fire.distortion = 0.2;
fire.distortionScale = 0.6;
fire.fadeRate = 0.2;
fire.flameHeight = 0.5;
fire.flameSpread = 0.2;
fire.smoke = 0.2;
fire.x = 0;
fire.y = 0;
fire.width = 400;
fire.height = 400;
fire.startFire();
this.addChild(fire);

Download example and class: fire.zip