A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: I need a smoke tutorial

  1. #1
    Junior Member
    Join Date
    Aug 2008
    Posts
    7

    I need a smoke tutorial

    Can someone direct me to a tutorial on how to make smoke using adobe flash Cs3 Pro. I can't find one in the tuts section on this website. Send me a link to my Pm or here if you found one.

  2. #2
    Junior Member
    Join Date
    Jun 2008
    Posts
    18

    Smile Hope this helps

    This is how I animate fog. For smoke I would just substitute the blur filter for gradients.


    Personally I create a MC symbol, draw a grey mess with the brush tool (multiple layers looks nicer), convert it to mc > filters > blur, and then modify those settings.

    Then you simply paste it on a keyframe in frame 1 and frame 10, use the "free transform" to modify the smokeMC on frame 10, and then move the symbol up slightly. Mess around with the alpha properties, then make a motion tween between the 2 frames

    This gives you some idea on how to do it.

  3. #3
    AS3 Mod
    Join Date
    Sep 2007
    Location
    O-H-I-O
    Posts
    2,385
    Not sure how much luck you will have but this sounds like an extremely common question so what I would do is go to Google (search engine) and type in "Flash smoke tutorial".

  4. #4
    Junior Member
    Join Date
    Sep 2008
    Posts
    22
    try this one using action scripts...
    This will help you if you hate manipulating frames...

    so make a movie clip naming it "dot"

    properties movie clip


    Step 1 .... on the first frame draw a smoke particle..
    (dark gray in colour as you like....
    but all depends on you expect it to be as end product)


    Step 2..... On the 1st frame right click on it anc choose the action section....And enter those codes;-

    var particleArray:Array = new Array();
    var maxParticles:Number = 100;

    function addParticle(e:Event)
    {
    var dot:Particle = new Particle();
    dot.x = stage.stageWidth/2;
    dot.y = stage.stageHeight/2;
    dot.alpha = Math.random() * .8 + .2;
    dot.scaleX = dot.scaleY = Math.random() * .8 + .2;
    dot.xMovement = Math.random() * 10 - 5;
    dot.yMovement = Math.random() * 10 - 5;
    particleArray.push(dot);
    addChild(dot);
    dot.cacheAsBitmap = true;

    if (particleArray.length >= maxParticles)
    {
    removeChild(particleArray.shift());
    }

    dot.addEventListener(Event.ENTER_FRAME,moveParticl e);
    }

    function moveParticle(e:Event)
    {
    e.currentTarget.x += e.currentTarget.xMovement;
    e.currentTarget.y += e.currentTarget.yMovement;
    }

    var myTimer:Timer = new Timer(50);
    myTimer.addEventListener(TimerEvent.TIMER, addParticle);
    myTimer.start();



    Step 3.... As this is done just switch to your project and add the particle...
    flee free to play with the variables so as to creat a better effect...


    Hope that this will help...
    if you got to make another one that works share it to me...

  5. #5
    Junior Member
    Join Date
    Aug 2008
    Posts
    7

    Thanks!

    Thanks guys you really helped alot!

  6. #6
    Junior Member
    Join Date
    Aug 2008
    Posts
    7

    Unhappy

    Quote Originally Posted by rei_66
    try this one using action scripts...
    This will help you if you hate manipulating frames...

    so make a movie clip naming it "dot"

    properties movie clip


    Step 1 .... on the first frame draw a smoke particle..
    (dark gray in colour as you like....
    but all depends on you expect it to be as end product)


    Step 2..... On the 1st frame right click on it anc choose the action section....And enter those codes;-

    var particleArray:Array = new Array();
    var maxParticles:Number = 100;

    function addParticle(e:Event)
    {
    var dot:Particle = new Particle();
    dot.x = stage.stageWidth/2;
    dot.y = stage.stageHeight/2;
    dot.alpha = Math.random() * .8 + .2;
    dot.scaleX = dot.scaleY = Math.random() * .8 + .2;
    dot.xMovement = Math.random() * 10 - 5;
    dot.yMovement = Math.random() * 10 - 5;
    particleArray.push(dot);
    addChild(dot);
    dot.cacheAsBitmap = true;

    if (particleArray.length >= maxParticles)
    {
    removeChild(particleArray.shift());
    }

    dot.addEventListener(Event.ENTER_FRAME,moveParticl e);
    }

    function moveParticle(e:Event)
    {
    e.currentTarget.x += e.currentTarget.xMovement;
    e.currentTarget.y += e.currentTarget.yMovement;
    }

    var myTimer:Timer = new Timer(50);
    myTimer.addEventListener(TimerEvent.TIMER, addParticle);
    myTimer.start();



    Step 3.... As this is done just switch to your project and add the particle...
    flee free to play with the variables so as to creat a better effect...


    Hope that this will help...
    if you got to make another one that works share it to me...
    Sorry for the double post but this is urgent. I think I said 'thanks' to quickly. I'm using rei_66's actionscript but there seems to be a problem. As soon as I play the event this error message occurs:

    1084: Syntax error: expecting rightparen before e.dot.addEventListener(Event.ENTER_FRAME,moveParti cl e);

    I tried using actionscript 1 and 2 but that wouldn't work either. In fact, there seemed to be more errors. Please help me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center