Specify a target window into which the link opens : HtmlText : TextField Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » TextField » HtmlText »

 

Specify a target window into which the link opens


 

package {
  import flash.display.Sprite;
  import flash.text.TextField;
  public class Main extends Sprite {
    public function Main(  ) {
        var field:TextField = new TextField(  );
        
        field.text = "Website";
        var formatter:flash.text.TextFormat = new flash.text.TextFormat(  );
        formatter.url = "http://www.navioo.com/";
        formatter.target = "_blank";
        field.setTextFormat(formatter);
    
        addChild(field);
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo TextField
» HtmlText