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);
}
}
}
|