Flint Particle System Forum - overriding DisplayObjectRenderer2011-12-10T23:45:03+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
overriding DisplayObjectRendererhttp://flintparticles.org/forum/comments.php?DiscussionID=451&Focus=1528#Comment_15282011-01-27T17:18:12+00:002011-01-27T17:18:42+00:00FlashDev2007http://flintparticles.org/forum/account.php?u=460
Recently I needed to eject particles from a bottle and have them go behind a logo and then fall back in front of it. I decided to extend the renderer to handle the children on the display list. ...
I made a small donation, cheers to you Richard...
// if the particle is at half life, and its index is lower than the image swap em over if(particle.age > particle.lifetime * 0.5 && getChildIndex(img) < getChildIndex(image)) { swapChildren(image, img); } } } } } ]]>
overriding DisplayObjectRendererhttp://flintparticles.org/forum/comments.php?DiscussionID=451&Focus=1535#Comment_15352011-02-03T08:03:30+00:002011-12-10T23:45:03+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
Thank you. I've been asked about this before - now here's some code I can point users to.