Flint Particle System Forum - Letters as emitter zone? Sun, 13 Jun 2010 09:15:46 +0100 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.4 & Feed Publisher Letters as emitter zone? http://flintparticles.org/forum/comments.php?DiscussionID=150&Focus=595#Comment_595 http://flintparticles.org/forum/comments.php?DiscussionID=150&Focus=595#Comment_595 Wed, 31 Dec 2008 15:21:35 +0000 wanzai
I'm new to Flint (though not a newbie to AS3). Sorry if the following is already covered, but searching for "text" or "displayobjectzone" didn't return anything useful.
So here goes my issue:

I'm trying to get a text (single letters, actually) to emit particles and using the LogoOnFire example as a basis.
Basically I need just this except using not a bitmap, but alphabetic character shapes.

I've prepared a DisplayObject containing a Textfield. This DisplayObject is then used as the zone (instead of the BitmapData).
This works, but only using the bounding box of the Textfield. So the particles are basically being emitted off a rectangle.
However, I need the emission to go from the actual letter shapes. Setting the text type to Static, Dynamic or Input didn't help.

Converting the text to curves (manually, in the Flash IDE) lead to the intended result, but I need the text to be user input during runtime.

So: is it possible to have the DisplayObjectZone use the TextField's letters as shape?
Or can I convert texts to curves during runtime? (granted, this second question is not a Flint issue, but a workaround needed due to Flint's ignoring the letter shape.)

Many thanks in advance! ]]>
Letters as emitter zone? http://flintparticles.org/forum/comments.php?DiscussionID=150&Focus=596#Comment_596 http://flintparticles.org/forum/comments.php?DiscussionID=150&Focus=596#Comment_596 Sun, 04 Jan 2009 04:15:03 +0000 vitch
I guess you can just create a BitmapData and then use the draw() method to draw your textfield into it... Then use this BitmapData as your DisplayObjectZone...

Hope that helps :) ]]>
Letters as emitter zone? http://flintparticles.org/forum/comments.php?DiscussionID=150&Focus=603#Comment_603 http://flintparticles.org/forum/comments.php?DiscussionID=150&Focus=603#Comment_603 Wed, 07 Jan 2009 08:50:14 +0000 Richard