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

  1.  
    Hi

    Is there a way to use animated particles that are emitted from an animated movie clip or GIF?
    HOW¿?
    Beginner here with AS3 and Flash.

    Good
    • CommentAuthorRichard
    • CommentTimeJul 11th 2009
     
    Hi

    Export the MovieClip as a class, then set the class as the ImageClass for the particles.

    See the flocking example for an example of this - the bird image is a MovieClip (in this case not an animated one, but the code would be the same if it was).
  2.  
    Thanks Richard

    It was easy after i learned how to make a class out of my movieClip on the linkage properties of the library.
    Here's a preview: Animated Flocking.

    Will post finished swf on Show and Tell.
  3.  
    Hello, I've just started looking into using Flint, and I was interested in animated particles too. I tried to add frames to the "bird" movieclip in the flocking example, but it still only shows the first frame when I run it. Am I missing something? I got the impression from this thread that I didn't need to change anything past the movieclip itself.

    Thanks.
    • CommentAuthorRichard
    • CommentTimeAug 12th 2009 edited
     
    Hi

    You also need to modify the export, in the library item's linkage properties, so that the export class extends flash.display.MovieClip rather than flash.display.Sprite.
  4.  
    Ahhh, I totally didn't notice that. Thanks.

    Glad to see it was just something simple.