Flint Particle System Forum - How to clear a BitmapRenderer? Sat, 25 Dec 2010 17:36:35 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher How to clear a BitmapRenderer? http://flintparticles.org/forum/comments.php?DiscussionID=216&Focus=799#Comment_799 http://flintparticles.org/forum/comments.php?DiscussionID=216&Focus=799#Comment_799 Thu, 04 Jun 2009 18:58:28 +0100 TackleMcClean
The normal cursor hides, an image of a bomb appears in place of the cursor, and I use Flint here to generate particles from the "cord" of the bomb (I don't know the correct english word). You know, the part that you set on fire.

All is good, and I can release space and it is hidden. Releasing space does, among other things, the following:
Stop the emitter.
Calls removechild on the renderer.
The Sprite that contains all particle effects is also removed from the display list.

Problem is, when I hit space again, there are particles lingering from the previous display of the bomb.

I've tried the following:
emitter.killAllParticles
emitter.runAhead
renderer.graphics.clear()
And probably 2 or 3 other methods while troubleshotting that I can't think of at the moment.

How do I effectively clear the whole renderer area? I think the main problem is that I use a blurfilter and it's the blurring that lingers. Doesn't give me any idea how to fix it though... ]]>
How to clear a BitmapRenderer? http://flintparticles.org/forum/comments.php?DiscussionID=216&Focus=803#Comment_803 http://flintparticles.org/forum/comments.php?DiscussionID=216&Focus=803#Comment_803 Fri, 05 Jun 2009 22:57:52 +0100 Not Sure How to clear a BitmapRenderer? http://flintparticles.org/forum/comments.php?DiscussionID=216&Focus=804#Comment_804 http://flintparticles.org/forum/comments.php?DiscussionID=216&Focus=804#Comment_804 Sat, 06 Jun 2009 11:05:26 +0100 TackleMcClean
How can I clear a blurfilter?

It still wont work even though I:
- When hiding the particles, I remove the blurfilter from the renderer
- When hiding the particles, I re-instantiate the blurfilter
- Blurfilter is added to particles first when I hit space, and then it is a new fresh blurfilter

It still shows trails ]]>
How to clear a BitmapRenderer? http://flintparticles.org/forum/comments.php?DiscussionID=216&Focus=816#Comment_816 http://flintparticles.org/forum/comments.php?DiscussionID=216&Focus=816#Comment_816 Wed, 10 Jun 2009 07:54:38 +0100 Richard
renderer.bitmapData.fillRect( renderer.bitmapData.rect, 0 ); ]]>
How to clear a BitmapRenderer? http://flintparticles.org/forum/comments.php?DiscussionID=216&Focus=817#Comment_817 http://flintparticles.org/forum/comments.php?DiscussionID=216&Focus=817#Comment_817 Wed, 10 Jun 2009 09:42:39 +0100 TackleMcClean
I'm not a 100% on flash itself yet.. ]]>