George, Karl, et al, Check out the link below.
<http://keithreinfeld.home.comcast.net/~keithreinfeld/Demos/Fire/Fire.html> I'm not entirely satisfied with the results. I can't quite manage to get rid of the black rim around the flames. Here are the additions I made to Fire.as: // declare private var _flame:Sprite = new Sprite(); private var _bmdFlame:BitmapData; // set WIDTH and HEIGHT to whatever you need private var WIDTH:Number = 400; private var HEIGHT:Number = 300; // in the _onLoaded () function // do not add _fire to the displaylist //addChild(new Bitmap(_fire)); // this transparency must be set to true _bmdFlame = new BitmapData(WIDTH, HEIGHT, true, 0xFF000000); //addChild(new Bitmap(_bmdFlame));// this works too _flame.x = _flame.y = 0;// but _flame can be repositioned addChild(_flame); // in the _update() function (at the end of the function) _bmdFlame.draw(new Bitmap(_fire)); _bmdFlame.threshold(_bmdFlame, _bmdFlame.rect, ZERO_POINT, "<", 0x00100000, 0x00000000, 0x00F00000, false); if(_flame.numChildren > 0){ _flame.removeChildAt(0); } _flame.addChild(new Bitmap(_bmdFlame)); You can try tweaking the threshold values, but these are working. If anyone is interested, the original source files can be found here: <http://wonderfl.net/c/3g08> Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

