it looks like you're not calling the init() method so the code is set
up correctly but none of it is ever called.

when you have a problem like that, it's good to break it down into
little pieces; instead of debugging three methods, comment two out and
focus on just one. if that doesn't work, take out vars, math etc and
keep breaking it down until you find the problem, then add back on.

working in this manner is a great way to develop, and doing so will
cut down your frustration considerably.








On Fri, Nov 20, 2009 at 10:24 AM, beno - <[email protected]> wrote:
> On Fri, Nov 20, 2009 at 12:45 PM, Glen Pike <[email protected]>wrote:
>
>> Hi,
>>
>>   This might help:
>>
>>
>> http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/js/html/wwhelp.htm?href=00000234.html
>>
>
> That doc states:
>
> Create a TextFormat object, set its fontFamily property to the name of the
> embedded font, and apply the TextFormat object to the TextField. When
> specifying an embedded font, the fontFamily property should only contain a
> single name; it cannot use a comma-delimited list of multiple font names.
>
> So I changed my code as follows:
>
>    public function blurClient():void
>      {
>      trace('blurClient');
>      var client:TextField = new TextField();
>      this.addChild(client);
>      var clientString:String = 'Joel Holt';
>      client.text = clientString;
>      client.embedFonts = true;
>      client.x = 100;
>      client.y = 100;
>      client.height = 20;
>      client.width = 200;
>      var clientFormat:TextFormat = new TextFormat();
>      clientFont:fontFamily = 'Arial';
>      clientFormat.color = 0xffffff;
>      clientFormat.size = 20;
>      clientFormat.font = 'Arial';
>      client.defaultTextFormat = clientFormat;
>      TweenMax.to(client, 1, {blurFilter:{blurX:20}}).reverse();
>    }
>
> and got the complaint that there is no such thing as "fontFamily". What
> should I use instead?
>
>>
>>   Simply:
>>
>>   Put a TextField off the stage somewhere.  Put some random text in it, set
>> it to "Dynamic Text", set the font face to Arial (size doesn't matter)
>>   Choose "Embed" and select your character ranges - (Basic Latin is
>> useful).  If you animate text, change the Aliasing to "...Animation".
>>
>>   When you create a text field, set embedFonts to true:
>
>
>>   e.g.
>>     atty.embedFonts = true;
>>
>
> I did all of this.
>
> David Hunter asked about the bgcolor. It's black
> Jared Stanley suggested another list and it's archives. I will plumb them.
> Thank you all and I await further input.
> beno
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to