Flint Particle System Forum - dynamic "logo firework"2011-12-13T06:11:11+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
dynamic "logo firework"http://flintparticles.org/forum/comments.php?DiscussionID=345&Focus=1174#Comment_11742010-04-17T14:08:18+01:002011-12-13T06:11:11+00:00neonbluehttp://flintparticles.org/forum/account.php?u=351
I've been playing with http://flintparticles.org/examples/logo-firework on this site.
Is there a way to do this effect with just plain text without using a bitmap? For example, I'd like to pass ...
Is there a way to do this effect with just plain text without using a bitmap? For example, I'd like to pass in a word or phrase and have this effect played on it.
Thanks.]]>
dynamic "logo firework"http://flintparticles.org/forum/comments.php?DiscussionID=345&Focus=1178#Comment_11782010-04-17T14:54:06+01:002011-12-13T06:11:11+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
If you use a DisplayObjectZone in the Velocity initializer, using a TextField as the display object, it should work.
DisplayObjectZone in the Velocity initializer, using a TextField as the display object, it should work.]]>
dynamic "logo firework"http://flintparticles.org/forum/comments.php?DiscussionID=345&Focus=1183#Comment_11832010-04-19T01:03:41+01:002011-12-13T06:11:11+00:00neonbluehttp://flintparticles.org/forum/account.php?u=351
I did it this way... Is there an easier way? Also the word is not really that legible.. Is there a way I can sharpen the text?
<?xml version="1.0" encoding="utf-8"?> <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" layout="absolute" width="400" height="300" creationComplete="init()"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <fx:Script> <![CDATA[ import flash.filters.BlurFilter; import flash.filters.ColorMatrixFilter; import flash.geom.Point; import flash.text.TextField;
private var emitter:Emitter2D = new Emitter2D(); private var tfldTextString:TextField = new TextField(); private var tfFormat:TextFormat = new TextFormat(); [Bindable] private var bmGraphicString:BitmapData = new BitmapData(300,200,true,0x00FFFFFF);
private function init():void { var cnvs:UIComponent = new UIComponent(); emitter.counter = new Blast( 6000 );
CreateWord("H o o r a y !!");
emitter.addInitializer( new ColorInit( 0xFFFF3300, 0xFFFFFF00 ) ); emitter.addInitializer( new Lifetime( 6 ) ); emitter.addInitializer( new Position( new DiscZone( new Point( 0, 0 ), 10 ) ) );
emitter.addInitializer( new Velocity( new BitmapDataZone( bmGraphicString, -132, -300 ) ) );
emitter.addAction( new Age( Quadratic.easeIn )); emitter.addAction( new Fade( 1.0, 0 ) ); emitter.addAction( new Move() ); emitter.addAction( new LinearDrag( 0.5 ) ); emitter.addAction( new Accelerate( 0, 70 ) );
private function restart( ev:EmitterEvent ):void { Emitter2D( ev.target ).start(); }
]]> </fx:Script>
</mx:Module>]]>
dynamic "logo firework"http://flintparticles.org/forum/comments.php?DiscussionID=345&Focus=1186#Comment_11862010-04-20T18:30:16+01:002010-04-20T18:31:37+01:00Richardhttp://flintparticles.org/forum/account.php?u=1
To remove the blur, use a PointZone for the Position initializer
emitter.addInitializer( new Position( new PointZone( new Point( 0, 0 ) ) ) );
Or remove it altogether (placing new particles at ...
emitter.addInitializer( new Position( new PointZone( new Point( 0, 0 ) ) ) );
Or remove it altogether (placing new particles at 0,0 is the default position behaviour).]]>