Hi,

   This might help:

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/js/html/wwhelp.htm?href=00000234.html

   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;

Also, I see you use "name" for the name of an instance of something - try not to use "name" because this is a property of things like "DisplayObject", MovieClip, etc. so you might get complaints...

   HTH

   Glen

beno - wrote:
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



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

Reply via email to