Flint Particle System Forum - Interactive Particles2011-06-23T17:00:33+01:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Interactive Particleshttp://flintparticles.org/forum/comments.php?DiscussionID=128&Focus=502#Comment_5022008-11-14T22:38:32+00:002011-06-23T17:00:33+01:00iworkinprogresshttp://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 Particleshttp://flintparticles.org/forum/comments.php?DiscussionID=128&Focus=503#Comment_5032008-11-14T22:49:09+00:002011-06-23T17:00:33+01:00iworkinprogresshttp://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 );]]>