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.  
    Is it possible to track MouseEvents on individual particles? I am working on a project where I have a couple hundreds particles floating around screen and need the user to be able to click on these circles. Can anyone point me in the right direction, or give me other directions to explore?

    Love Flint! Have been playing with it for the past 6 hours.
  2.  
    Nevermind, just had to read the thorough comments in the renderer class. You just have to set the mouseChildren = true on the renderer, as it is false by default.

    renderer = new DisplayObjectRenderer( );
    renderer.mouseChildren = true;
    addChild( renderer );

    And since I created my particles by using createParticles2DFromDisplayObjects and passed it an array of custom display objects, it seems their functionality is preserved in the renderer. Very nice.

    var particles:Array = Particle2DUtils.createParticles2DFromDisplayObjects( StoryManager.$.allStories );
    emitter.addExistingParticles( particles, true );