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

3 comments zu “Fire effect update for flex sdk”

  1. Karen Hartley says:

    I’ve been trying to use your component without success. The component is causing FireFox and IE to crash once the flame effect begins. Do you have a running example that you can display so I can compare it to my code? I’d like to see if there is something that I can change to get this to run. Thank you!

  2. Erman says:

    Hi,
    I have downloaded the source code and made a sample application and the swf works in Firefox or in in IE without any problem. My code is the following.

    package {

    import de.bigsource.fx.fire.Fire;
    import flash.display.Sprite;

    public class FireFXdeneme extends Sprite{

    public function FireFXdeneme() {
    var s:Sprite = new Sprite;
    s.graphics.beginFill(0×00ccff);
    s.graphics.drawCircle(100, 100, 50);
    s.graphics.endFill();
    var fire:Fire = new Fire();
    fire.target = s;
    fire.distortion = 0.5;
    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);
    }
    }

    }

  3. Kim Christiansen says:

    I updated the fire.zip file with an example.

Your comment