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

    • CommentAuthorkidmotion
    • CommentTimeMay 16th 2010
     
    Is it possible to add a MovieClip to an emitter other then just an image?

    Basic Idea:
    Using the emitter for flocking, but want to use a MovieClip so I can apply animations and eventListeners to each particle and keep track of id.

    Thanks
    • CommentAuthorkidmotion
    • CommentTimeMay 16th 2010
     
    actually I know how to add a MovieClip through the ImageClass, but I need to add mouse events
    • CommentAuthorRichard
    • CommentTimeMay 17th 2010
     
    By default, the renderer has mouseChildren and mouseEnabled set to false. Set these to true on the renderer to enable mouse events on the particles.

    renderer.mouseEnabled = true;
    renderer.mouseChildren = true;