Flash Tutorial: Flaming Text Effect

flame effect

flame effect

Get Adobe Flash player

This tutorial will show you how to make the flaming text effect shown here on the right. It’s quite versatile and can be used over any sort of shape/image to create all sorts of different effects.

Ok, well let’s get going…

document settings

document settings

1. Setting Flash up
First thing we need to do is set up our document. To match the original I’ve used 300px width and 150px height. I’ve also set the background to black. Make sure to change your fill and ink colours to white before you start.

go crazy

go crazy

2. Time for some drawing
You can be as random as you like here, but try and keep it in a circlular area (we’re going to rotate it later). There’s no need to copy mine exactly, just a rough estimation should work just as well. Once you’re happy, select the shape and hit F8 to create a new symbol. Make sure it’s set to MovieClip, the registration point is in the middle and call it “theShape”.

rotating

rotating

3. Rotation animation
With your shape roughly in the middle of your stage, select it and hit F8 again. This time call it “spinner” and also give it the instance name of “spinner”. Now double click the shape to go back inside the spinner MovieClip. Place a keyframe on frame 300, then go back to frame 1, right click on the frame and choose classic tweening. In the frame properties panel, under tweening set the Rotate property to CW (clock wise) and make sure it’s set to x1. Hit return to test. If it’s working fine and you’re happy then select the 1st frame again, right click and choose “select all frames”, once selected, right click again and choose “copy frames”. Now add a new Layer, right click on the first frame and paste those frames into it. You will have to go to the end of timeline and delete the extra 300 frames that Flash decides to put on. When you’ve done that go back to the 1st frame and select it. In the properties just change the rotation property to CCW (counter clock wise). The last thing to do (just to add a bit of randomness) is to select the shape on frame 1 and 300 and do a modify/transform/flip vertical on it. Test again and if all looks cool then go back to scene 1 with your spinner clip in it.

using the gradient transform tool

using the gradient transform tool

4. Adding some masking
Select the spinner clip and hit F8 to make it a movieClip and call it spinMask. Go back into spinMask and create a new layer above your spinner clip. Now we’re going to create a gradient mask. On the new layer draw a big ellipse over the whole stage. You can always adjust this later. Fill it with a radial gradient of white to black (with white in the centre), and make the black transparent using the color panel . Use the fill transform tool to make it look like the image on the right. When you’re happy, select it, hit F8 to create a movieClip and call it gradMask and also give it the instance name of gradMask. Normal masking won’t work with gradient masks so we have to use a bit of code to make the magic happen. Create a new layer above your new gradient mask (gradMask) and label it “actions”. Insert the following code into this 1st frame.

gradMask.cacheAsBitmap=true;
spinner.cacheAsBitmap=true;
gradMask.setMask(spinner);

use these settings

use these settings

5. Time for some Text
Go back to the main scene. You should have your spinMask on frame 1. Make sure it has the same instance name. Create a new layer and make some text. It can be whatever you like but use a light colour. I’m using white. I also find the narrower fonts tend to look better. With the text still selected add a glow filter using the settings shown on the right. Blur:5, Strength:100%, Color: #FF0000 and Inner glow ticked. Now hit f8 to turn it into a movieClip and call it flameText (instance name as well).

Make sure you’re on scene 1 still and select the new flameText movieClip. We’re going to add a few more glow effects to it.
First off an outerglow using Blur: 14px, Strength: 460%, Quality: High and Color: #FF6600. Finally add an inner glow using Blur: 14px, Strength: 106%, Color: #CC0000 and Inner glow ticked. See image for screenshot.

final text filters

final text filters

You can of course experiment with different colours and blur amounts, in fact depending on the font used you might have to. Ideally you want the stems of the characters to be glowing white. So, these settings are best for a flame effect but please muck about with them and see what else you can come up with.
Now select your spinMask clip and under the display tab change the Blending mode to Screen. Still with the spinMask selected add a new Blur filter using Blur: 30px. You can play around with the blur to get something that you like. We’re nearly there!

6. The last bit of script and some adjustments
In your main scene, create a new layer and label it “actions”. Go into this frames action panel and add the following code.

flameText.cacheAsBitmap=true;
spinMask.cacheAsBitmap=true;
flameText.setMask(spinMask);

It’s time to test the movie. You should now have some text that looks on fire! This is where you can play around with the different filters and even transform the spinMask clip for a more complete effect. If you find it’s not working then the most common reason is that one of your movieClips has either not got an instance name or it’s different in some way. Remember instance names are case sensitive.

Feel free to comment below and if anyone makes anything I’d love to see the results so chuck it online somewhere and post a link.

Here’s my version which I made writing the tutorial.

Get Adobe Flash player

Here is a link to the FLA.

Tags: , , ,

18 Responses to “Flash Tutorial: Flaming Text Effect”

  1. uzzal says:

    pls. flash tutorial

  2. avinash says:

    sir…ITS NOT working in action scrip 3….

  3. avinash says:

    sir..please help me..i want some action scrip 3 tutorials…with easy method..thank you ..this tutorial is good but..its not working in my flash 3…”error is setMask is not function..what i do sir”

  4. barry says:

    Ahh, that’s because it’s for AS2.
    I haven’t got time to test it at the moment but changing the setMask lines to the code below might fix it. I’m pretty sure cacheAsBitmap is still used in AS3, but setMask isn’t.

    AS2
    gradMask.setMask(spinner);
    flameText.setMask(spinMask);

    AS3
    gradMask.mask = spinner;
    flameText.mask = spinMask;

    Let me know if it works. :)

  5. avinash says:

    thanku…friend..i got it..now .it works…please write a web site tutorials with AS3…with funky buttons

  6. barry says:

    Cool, I’m glad it works.
    Regarding AS3 buttons, all you need to add to the button is an event listener.
    for example..

    this.addEventListener(MouseEvent.MOUSE_DOWN, myFunction);

    and in myFunction is where you would add the code for when it’s clicked.

  7. janna says:

    make the black transparent using the color panel. how do i do this? i tried to make the text on fire, but it just wont work. please help

  8. janna says:

    sir, theres something wrong with my spinmask. please help me

  9. barry says:

    sure I’ll help. You’ll have to give me a bit more information about what’s wrong though.

  10. janna says:

    oh okay, thanks. you see, when I play the movie, the result will be like two spinning wheels ( one white and the other one is black to white gradient). then the text is just on top. there no flaming effect. i know that i did something wrong but i just cant figure it out. i really want to do this, please help me. and thanks too.

  11. BohomazaEd says:

    I do not know why but instead of flames appears something with sharp edges.
    I am a Beginner and I could use the file. Fla

    • barry says:

      I’m really sorry but I’ve accidentally deleted the FLA whilst clearing my desktop the other day. D’oh!
      This again sounds like a masking issue. If you can upload the FLA/SWF somewhere I’d be happy to have a look for you.

  12. barry says:

    Hi Janna,

    This sounds like you have a masking problem. Make sure all your movieClips have instance names and also check your publish settings are set for AS2, not AS3.

    Hope that helps.

  13. sir i understand and this is very beautiful thing which u have created but i am new user of Flash Version 8 so i did not now how to use it and even short keys will u please send me the short key of this solution or actual file of FLA Thanks

  14. Herry says:

    Excuse me but can you send me the FLA please? Thanks

  15. sawan says:

    Sir u has createv a very beutiful think likethis plz give me fkla of thes effect on sawan.1111@in.com

  16. barry says:

    I’ve now added a link at the bottom of the tutorial so you can download the FLA.

    Thanks for all the comments.

Leave a Reply