Fire effect update for flex sdk
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
![[del.icio.us]](http://www.bigsource.de/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://www.bigsource.de/wp-content/plugins/bookmarkify/digg.png)
![[Facebook]](http://www.bigsource.de/wp-content/plugins/bookmarkify/facebook.png)
![[Google]](http://www.bigsource.de/wp-content/plugins/bookmarkify/google.png)
![[Mixx]](http://www.bigsource.de/wp-content/plugins/bookmarkify/mixx.png)
![[MySpace]](http://www.bigsource.de/wp-content/plugins/bookmarkify/myspace.png)
![[StumbleUpon]](http://www.bigsource.de/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Twitter]](http://www.bigsource.de/wp-content/plugins/bookmarkify/twitter.png)


January 4th, 2008 at 11:53 pm
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!
January 7th, 2008 at 10:53 pm
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);
}
}
}
January 7th, 2008 at 11:07 pm
I updated the fire.zip file with an example.