how come this never triggers the Link event
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute" 
creationComplete="initApp()">
<mx:Script>
<![CDATA[
import mx.core.UITextField;
private function initApp():void{
var t:UITextField = new UITextField();
t.htmlText="<a href=\"event:startGame\">Start Game</a>";
t.autoSize = TextFieldAutoSize.LEFT;
t.addEventListener(TextEvent.LINK,textLinkListener);
this.addChild(t);

}
private function textLinkListener(event:TextEvent):void{
trace(event);
}
]]>
</mx:Script>
</mx:Application>
 



      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Reply via email to