Two “Flex” posts in a row! Maybe today will be the day Im having more than 40 visitors!
CODE:
<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application
xmlns:mx=”http://www.adobe.com/2006/mxml”
layout=”vertical”
width=”200″ height=”200″
creationComplete=”initApp()”>
<mx:Script>
<![CDATA[
private function initApp():void{
txt.addEventListener(TextEvent.LINK, myFunction)
}
private function myFunction(evt:TextEvent):void{
trace("YEAP IT WORKS!");
lb.text="YEAP IT WORKS!";
}
]]>
</mx:Script>
<mx:Text id=”txt”>
<mx:htmlText>
<![CDATA[
<a href="event:eventText">Click here</A><br/>
]]>
</mx:htmlText>
</mx:Text>
<mx:Label id=”lb” text=”Does it works?”/>
</mx:Application>




September 5th, 2009 at 4:33 pm
Eu consigo pegar o onMouseOver da mesma forma??
September 6th, 2009 at 4:35 pm
Não entendi a pergunta… Queres saber quando passa o mouse sobre o link? Não sei se pode… Digo, usando dentro do htmlText, dentro do …
Mas podes captar o MouseOver do Text…