Calling JavaScript Functions : HtmlText : TextField Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » TextField » HtmlText »

 

Calling JavaScript Functions


 


package{
  import flash.display.Sprite;
  import flash.text.*;  
  public class Main extends Sprite{
    public function Main(){
        var tArticle:TextField = new TextField();

        tArticle.multiline = true;
        tArticle.wordWrap = true;

        tArticle.htmlText = "<a href="javascript:void(alert('This is a message from Flash'));">click this text</a>";
        addChild(tArticle);

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo TextField
» HtmlText


Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0