Particle Effect Help

I’m working on Motion 4 and I need to make two flies that are buzzing on the screen, out of focus. I can’t find any tutorials anywhere else. I’ve been trying some different things, but no luck so far. Suggestions?

It is because of this line of code at the end
myTimer.addEventListener(TimerEvent.TIMER, addStars, animeStars);
if you read the documentation on addeventlistener it looks for these type of arguments to be passed
addEventListener(type:String, listener:Function, useCapture:Boolean);
animeStars is not a boolean it is a function. Since you already have animeStars in your addStars function you can exclude it in the last event listerer. try this:
myTimer.addEventListener(TimerEvent.TIMER, addStars);

Similar Messages

  • Help with Flash CS3 Particle Effect Tutorial Code

    I did the tutorial from http://www.schoolofflash.com/2008/03/flash-cs3-particle-effect/. I used a star to replace the circle. Here's my code:
    var starsArray:Array = new Array();
    var maxStarss:Number = 8;
    function addStars(e:Event)
        var stars:Stars = new Stars();
        stars.x = stage.stageWidth/2;
        stars.y = stage.stageHeight/2;
        stars.alpha = Math.random() * .8 + .2;
        stars.scaleX = stars.scaleY = Math.random() * .8 + .2;
        stars.xMovement = Math.random() * 10 - 5;
        stars.yMovement = Math.random() * 10 - 5;
        starsArray.push(stars);
        addChild(stars);
        stars.cacheAsBitmap = true;
        if (starsArray.length >= maxStarss)
            removeChild(starsArray.shift());
        stars.addEventListener(Event.ENTER_FRAME,moveStars);
    function moveStars(e:Event)
        e.currentTarget.x += e.currentTarget.xMovement;
        e.currentTarget.y += e.currentTarget.yMovement;
    var myTimer:Timer = new Timer(50);
    myTimer.addEventListener(TimerEvent.TIMER, addStars);
    myTimer.start();
    This time, I'm trying to make the stars shrink and transparent as they move away from the point. So I coded it like this:
    import flash.events.Event;
    var starsArray:Array = new Array();
    var maxStarss:Number = 8;
    function addStars(e:Event)
        var stars:Stars = new Stars();
        stars.x = stage.stageWidth/2;
        stars.y = stage.stageHeight/2;
        stars.alpha = Math.random() * .8 + .2;
        stars.scaleX = stars.scaleY = Math.random() * .8 + .2;
        stars.xMovement = Math.random() * 10 - 5;
        stars.yMovement = Math.random() * 10 - 5;
        starsArray.push(stars);
        addChild(stars);
        stars.cacheAsBitmap = true;
        if (starsArray.length >= maxStarss)
            removeChild(starsArray.shift());
        stars.addEventListener(Event.ENTER_FRAME,moveStars);
        stars.addEventListener(Event.ENTER_FRAME,animeStars);
    function animeStars(e:Event)
        trace(this.starsArray);
        this.scaleX-=0.01;
        this.scaleY-=0.01;
        this.alpha-=0.01;
        if (this.alpha<=0) // remove this object from stage
    function moveStars(e:Event)
        e.currentTarget.x += e.currentTarget.xMovement;
        e.currentTarget.y += e.currentTarget.yMovement;
    var myTimer:Timer = new Timer(50);
    myTimer.addEventListener(TimerEvent.TIMER, addStars, animeStars);
    myTimer.start();
    I couldn't make it work. All I got was an error message saying "
    1084: Syntax error: expecting identifier before rightbrace.
    Help?

    It is because of this line of code at the end
    myTimer.addEventListener(TimerEvent.TIMER, addStars, animeStars);
    if you read the documentation on addeventlistener it looks for these type of arguments to be passed
    addEventListener(type:String, listener:Function, useCapture:Boolean);
    animeStars is not a boolean it is a function. Since you already have animeStars in your addStars function you can exclude it in the last event listerer. try this:
    myTimer.addEventListener(TimerEvent.TIMER, addStars);

  • Need help / suggestion in creating realistic thunder particle effect

    I has a lot of problem in creating realistic thunder particle
    effect:
    1) The "particle" I use is a tiny white square, when it
    duplicating it create weird thunder...simply say ithe lighting
    effect look very fake.
    2) The motiton of thunder is too "sharp", it make the thunder
    look like "zip zap"
    3) So far I only can create one thunder bolt but I cannot
    make it split into few thunder bolt and move to different
    direction.
    Can anyone give me some suggestion, either in graphic, math
    or logic?
    Here is my swf file:
    http://www.mediafire.com/?3tayypgnwya

    I has a lot of problem in creating realistic thunder particle
    effect:
    1) The "particle" I use is a tiny white square, when it
    duplicating it create weird thunder...simply say ithe lighting
    effect look very fake.
    2) The motiton of thunder is too "sharp", it make the thunder
    look like "zip zap"
    3) So far I only can create one thunder bolt but I cannot
    make it split into few thunder bolt and move to different
    direction.
    Can anyone give me some suggestion, either in graphic, math
    or logic?
    Here is my swf file:
    http://www.mediafire.com/?3tayypgnwya

  • Particle effect -how to achieve this kind of effect exactly

    Hello   please help me to achieve this type of flickering particle effect.  how to achieve this in After effect  which is shown at 0.8 sec to 0.11  in the attached link video. http://www.istockphoto.com/stock-video-2682258-hearts.php

    I can't give you the exact settings but you could use Trapcode Particular with a custom particle or CC Particle world. Just turn gravity to 0 and set up a custom particle.
    Your particle layer will be behind the spinning hearts layer. This should get you going in the right direction.

  • How do I create this particle effect?

    I am pretty new to After Effects and I'm getting to grips with all the particle effects and have managed to create some cool looking animations, but I'm trying to create the particle effect as seen in the image link below. Can anyone tell me how this is done, and what plug-in (if any) would be used to create something like this? I can't get anything I do to look like this. Thanks...
    http://img171.imageshack.us/img171/5001/particleskf1.jpg

    Create the custom particle in Photoshop or a separate comp. Drag the custom particle into your main comp, turn its visibility off, set Particular's particle setting to "Custom Particle", and choose the new layer as the source.
    Create a camera for the comp and turn on "Depth of field". Experiment with the settings until you get the desired effect.
    Personally, I'd use two Particular layers for that look, one for the larger particles and another for the smaller ones.

  • After effects help & adobe air

    i'm in the after effects cs5 application (creative suite production premium) on a power mac 10.5.8 and when i go to the help pull down and click on after effects help, i get the following error message:
    don't even know what abobe air is. i'm assuming the after effects help has to run through this app. is this something i need to install and what does it do? i hate hate running unnecessary programs. thanks.

    You can use After Effects Help without using the AIR application. You can either use the HTML version of After Effects Help on the Web or the  PDF version of After Effects Help.
    For information on how to fix this problem with the AIR application, see the Community Help Client forum.

  • Please rate the After Effects Help pages you find useful

    You may have noticed that Adobe employees and Community Experts hanging in this forum keep pointing users to the relevant sections in After Effects Help on the Web. The reason for this is, of course, that the quality of explanations, visual examples, video tutorials and other materials in those pages is much higher than what anyone could quickly type in a forum reply. Personally, I think AE help has experienced a drastic overhaul in the last few years, to become a great, community-driven, user-focused resource.
    if you find these pages helpful, you can in return help the documentation team by stating which pages you find useful by using the buttons at the bottom of each page.

    You should also leave comments to tell us what other information you'd like to see... or to leave a tip, link, or technique of your own.
    After Effects CS4 Help

  • Updated After Effects Help, and an update on my role

    I just updated After Effects Help, and now I'm in Technical Support:
    http://bit.ly/cpX44H
    In my new role, my job is to provide "online, one-to-many" technical support for Adobe's professional video products. In other words, I'm supposed to spend even more time helping out on forums like this one.
    So, howdy.

    Szalam wrote:
    Hooray: more forum time with Todd.
    Booooo: worse AE documentation in the future, for nobody can match his placement of the T in RTFM.
    "Read Todd's Freakin' Manual" ?
    I like that.
    Todd, I hope this is a good move for you and not an analog for Siberia.
    bogiesan

  • Achieve this effect with particles? Help pls!

    Hi all,
    Very new to the whole motion graphics field andI could use some help. I need to replicate the starfield effect from this video. When the tiled backgrounds swoop in, the stars move with them. On the video I have created, the particles (firstly) don't fill the screen, and when I move the camera the unit moves out of view (obviously).
    Is there a way to create the particles so they cover the canvas and move with the motion of the tiled walls?
    https://vimeo.com/43739119
    Thanks in advance for any help; I've found this forum very, very useful indeed.
    Cheers!

    Place your "stars" in their own group, make it a 2D group, they won't move with the camera but stay with the frame as normal.

  • Simple button rollover effect help needed - please help!

    Hi everyone,
    I was hoping someone could tell me how was this rollover
    effect done - can be seen on the small map on the right:
    http://www.refinery29.com/
    What I want to do is to be able to have the same effect on
    rollover and rollout just reversed (fade in - fade out).
    Please help!!
    THANKS

    quote:
    Originally posted by:
    NedWebs
    That naming at both ends is something I consider a fluke in
    Flash's design, but only because I don't know why it won't work the
    way you probably had it.
    There's probably some logical explanation, but I haven't
    found it, just the solution for when it happens
    It's such a minor little detail. I suspected it would be
    something this small, as that's usually the case, but I just
    couldn't put my finger on it. Not one of the places I researched
    made any reference to that when they said to name the instance of
    the button. How stupid.
    Anyway, thank you again. I can finally move forward. This was
    driving me mad.

  • Adobe Photoshop CS4 Blend Effects HELP !!!

    hey is there someone who know how to view already applied blend effects the bad news is that I have the portable version and there is no other file except the .png file what I create with saving the layer ??? please help [removed private info]

    portable version of what? Photoshop? there's no such thing (pirated copies don't count). And in case that you're talking about the Portable Network Graphics (PNG) file format, Photoshop flattens the image when saving to it so there's no way to recover the applied Layer Styles

  • Default AS3 Text component bounce effect help

    I tried posting this in an Actionscript forum without much
    help. I hope someone here can point me in the right direction.
    So I need help trying to figure out how to add an AS3 effect
    to an AS3 Text component.
    var savedNote.Text = new Text();
    savedNote.text = "Selected options have been saved!";
    savedNote.visible = false;
    var submitButton.Button = new Button();
    submitButton.label = "Save selected options";
    submitButton.addEventListener(MouseEvent.CLICK,
    onSubmitButtonClickedHandler);
    public function
    onSubmitButtonClickedHandler(event:Event):void
    //here set the visible for the text to true but i want a
    bouncing effect
    // to be applied to the text component "savedNote" each time
    the button is clicked - HOW
    savedNote.visible = true;
    so each time the user clicks on the button I want the text to
    appear the first time and then have a bouncy effect so that the
    user know the action to save when button is clicked actually took
    place.
    HOW do I do this with AS3??? Thank you! if anyone can point
    me to online tutorials that would be great!

    Pasting your code right into my Flash file works well for me. Are you able to see the text in a black color? Are you able to change everything else except for the color?

  • Effect Help!

    Hello,
    I need to do an video effect where I can take color footage, and desaturate each color individually except for blues so you basically get black and white except anything that was blue is still blue. In photoshop you can do this with the Hue/and saturation sliders. Does anyone know how to do this or could you point me to a plug in that would enable me to create this effect?
    Thank You So Much!!!

    Hi Pinkertons:
    Welcome to discussions!
    This plug in may help-but be sure that you try it out first so that you are sure it is compatible with imovie 6. If you go to the home page, c f/x will tell you that it is OK to try it first.
    http://imovieplugins.com/plugs/colorcontrol.html
    Sue

  • Downloading After Effects Help! Urgent!

    Hi All,
    How can I download After Effects CS6 now that After Effects CC has come out? And is After Effects CS6 now free?
    I'm wondering this as I don't have this right system for After Effects CC to run on my Macbook.
    Any help would be appreciated ASAP!!!
    Regards,
    TheAAPlus.

    Hi TheAAPlus,
    After effects CS6 is still available as a separate version to purchase, it is not available for free.
    Check the system requirements for After effects CC here: http://www.adobe.com/products/aftereffects/tech-specs.html
    -Ankit

  • After Effects Help | Creating shapes and masks

    This question was posted in response to the following article: http://helpx.adobe.com/after-effects/using/creating-shapes-masks.html

    Hi Todd,
    I don't think either approach accomplishes what I am trying to do. Just as when using a shape tool on an existing layer to create a mask, none of these approaches lets me alter a shape path after creating it, in terms of number of points, inner/outer radius and inner/outer roundness. Nor can I animate those characteristics.
    The Help file creates the impression that you can copy/paste a Shape path from a Shape layer. If that were true, I could create a shape, copy/paste that path to a mask path, keyframe it, go back to the original shape layer, change its propertie and copy/paste that new shape path to the mask path at a different time, thus morphing from one shape to another. I don't see any way to do that.
    Jeff

Maybe you are looking for