You probably need to embed the fonts in your Flash file - put a text field on stage with Arial characters embedded and set the "embedFonts" property on your text field to "true". You need to use embedded fonts for Tweening...

Glen

beno - wrote:
Hi;
I am confused as to how to create a string, define its properties and print
it in Flash. The following code doesn't throw any errors, and it nicely
prints out my traces, but it doesn't print out the lines I want. Please
advise.
TIA,
beno

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();
//      var name:String = 'Joel Holt';
      this.addChild(name);
      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();
//      var ofc:String = 'The Offices Of...';
      this.addChild(ofc);
      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 = nameFormat;
      TweenLite.to(ofc, 1, {x:58, y:229, ease:Circ.easeIn});
    }
    public function easeAtty():void
      {
      trace('easeAtty');
      var atty:TextField = new TextField();
//      var atty:String = 'Attorney At Law';
      this.addChild(atty);
      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 = nameFormat;
      TweenLite.to(atty, 1, {x:58, y:229, ease:Circ.easeIn});
    }
  }
}
_______________________________________________
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