beno,
is the background color of the swf white? your textformat is setting the text color to 0xffffff, also white. > Date: Fri, 20 Nov 2009 12:29:11 -0400 > Subject: Re: [Flashcoders] Creating And Printing String With AS3 > From: [email protected] > To: [email protected] > > On Fri, Nov 20, 2009 at 8:52 AM, David Hunter <[email protected]>wrote: > > Glen Pike says I need to embed fonts, but David Hunter didn't mention that. > Is it so? If so, is there a good tutorial on this? > > > > quickly scanning the code, i can't see where you have assigned a string to > > any of your textfields.eg. > > var myString:String = "this is my string";var myTF:TextField = new > > TextField();myTF.text = myString; > > > > Here's the new code: > > package > { > import flash.text.* > import flash.display.MovieClip; > import com.greensock.*; > import com.greensock.plugins.*; > import com.greensock.easing.*; > public class Holt extends MovieClip > { > public function Holt():void > { > } > public function init():void { > blurName(); > easeOfc(); > easeAtty(); > } > public function blurName():void > { > trace('blurName'); > var name:TextField = new TextField(); > this.addChild(name); > var nameString:String = 'Joel Holt'; > name.text = nameString; > name.x = 100; > name.y = 100; > name.height = 20; > name.width = 200; > var nameFormat:TextFormat = new TextFormat(); > nameFormat.color = 0xffffff; > nameFormat.size = 20; > nameFormat.font = 'Arial'; > name.defaultTextFormat = nameFormat; > TweenMax.to(name, 1, {blurFilter:{blurX:20}}).reverse(); > } > public function easeOfc():void > { > trace('easeOfc'); > var ofc:TextField = new TextField(); > this.addChild(ofc); > var ofcString:String = 'Joel Holt'; > ofc.text = ofcString; > ofc.x = 100; > ofc.y = 150; > ofc.height = 20; > ofc.width = 200; > var ofcFormat:TextFormat = new TextFormat(); > ofcFormat.color = 0xffffff; > ofcFormat.size = 20; > ofcFormat.font = 'Arial'; > ofc.defaultTextFormat = ofcFormat; > TweenLite.to(ofc, 1, {x:58, y:229, ease:Circ.easeIn}); > } > public function easeAtty():void > { > trace('easeAtty'); > var atty:TextField = new TextField(); > this.addChild(atty); > var attyString:String = 'Joel Holt'; > atty.text = attyString; > atty.x = 100; > atty.y = 200; > atty.height = 20; > atty.width = 200; > var attyFormat:TextFormat = new TextFormat(); > attyFormat.color = 0xffffff; > attyFormat.size = 20; > attyFormat.font = 'Arial'; > atty.defaultTextFormat = attyFormat; > TweenLite.to(atty, 1, {x:58, y:229, ease:Circ.easeIn}); > } > } > } > > It doesn't print anything in the swf either :( > TIA, > beno > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _________________________________________________________________ Use Hotmail to send and receive mail from your different email accounts http://clk.atdmt.com/UKM/go/186394592/direct/01/_______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

