Flint Particle System Forum - Interactive Particles 2011-06-23T17:00:33+01:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Interactive Particles http://flintparticles.org/forum/comments.php?DiscussionID=128&Focus=502#Comment_502 2008-11-14T22:38:32+00:00 2011-06-23T17:00:33+01:00 iworkinprogress http://flintparticles.org/forum/account.php?u=102 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 ...
Love Flint! Have been playing with it for the past 6 hours.]]>
Interactive Particles http://flintparticles.org/forum/comments.php?DiscussionID=128&Focus=503#Comment_503 2008-11-14T22:49:09+00:00 2011-06-23T17:00:33+01:00 iworkinprogress http://flintparticles.org/forum/account.php?u=102 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 ...
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 );]]>