Flint Particle System Forum - Letters as emitter zone?2010-06-13T09:15:59+01:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Letters as emitter zone?http://flintparticles.org/forum/comments.php?DiscussionID=150&Focus=595#Comment_5952008-12-31T15:21:35+00:002010-06-13T09:15:59+01:00wanzaihttp://flintparticles.org/forum/account.php?u=131
Hi,
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. ...
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_5962009-01-04T04:15:03+00:002010-06-13T09:15:59+01:00vitchhttp://flintparticles.org/forum/account.php?u=132
Hi,
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 :)
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_6032009-01-07T08:50:14+00:002010-06-13T09:15:59+01:00Richardhttp://flintparticles.org/forum/account.php?u=1
Thanks vitch, that's what I'd recommend too, but use the BitmapData as a BitmapDataZone.