Fork me on GitHub
Not signed in (Sign In)

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

    • CommentAuthorNot Sure
    • CommentTimeJun 5th 2009
     
    What is in FireBlob.swf? I tried running it through Flare but was unable to get anything useful - is FireBlob just a plain old image embedded in a swf? An animated gif? Is the source to it available anywhere?

    FWIW, I'm trying to replicate the LogoFire effect, but without having an external linkage dependency.
  1.  
    My guess it's just a bitmap or something. Probably not an animated gif, I can't see how that would work.

    You can only hope that Richard stops by and reads this and possibly sharing the file!
    You could try and just draw a small reddish shape if you can't find the source.
    I too, would prefer though to look at the actual fireblob, as I want to make fire myself!
    • CommentAuthorRichard
    • CommentTimeJun 8th 2009
     
    If you download the examples, or check them out of svn, then look in the flash example, you'll find an FLA that contains the graphic.

    As for what it is - it's an ellipse with a radial gradient fill fading to nothing at the edges.

    Richard
  2.  
    Thanks Richard!

    There you go, "Not Sure"
    • CommentAuthorNot Sure
    • CommentTimeJun 9th 2009 edited
     
    Thanks guys. I ended up coding my own FireBlob, looks a bit better IMHO - uses an actual flame-ish shape, rather than an ellipse (*cross fingers that this formats correctly*):

    public class FireBlob extends Shape
    {
    public static const DefaultColors : Array = [ 0xFFC814, 0xFF351E ];
    public static const DefaultAlphas : Array = [ 1, 0.1 ];
    public static const DefaultRatios : Array = [ 0, 255 ];

    public function FireBlob( a : Number, b : Number, colors : Array = null, alphas : Array = null, ratios : Array = null, bm:String = "normal")
    {
    var matrix:Matrix = new Matrix();
    matrix.createGradientBox( a * 2, b * 2, 0, -a, -b );
    graphics.beginGradientFill( GradientType.RADIAL,
    colors ? colors : DefaultColors,
    alphas ? alphas : DefaultAlphas,
    ratios ? ratios : DefaultRatios,
    matrix );
    graphics.moveTo( a, 0 );
    graphics.curveTo( 0, b, -a, b );
    graphics.curveTo( -a/2, 0, -a, -b );
    graphics.curveTo( 0, -b, a, 0 );
    graphics.endFill();
    blendMode = bm;
    }
    }