Apache flex Flex文本鼠标悬停功能
我需要在文本字段中开发一些鼠标悬停功能 我可以通过htmlText&TextEvent获得点击文本功能Apache flex Flex文本鼠标悬停功能,apache-flex,mouseover,Apache Flex,Mouseover,我需要在文本字段中开发一些鼠标悬停功能 我可以通过htmlText&TextEvent获得点击文本功能 类似地,我可以在文本字段中获得鼠标悬停功能吗?为什么使用htmlText和TextEvent进行点击功能?flex中存在单击功能。鼠标悬停也是如此 mouseover上的私有函数(事件:MouseEvent):void { Alert.show('Hello Ankur Sharma'); } ]]> 嘿,这是用TextField完成的,如果你是用abt TextField(我用的是
类似地,我可以在文本字段中获得鼠标悬停功能吗?为什么使用htmlText和TextEvent进行点击功能?flex中存在单击功能。鼠标悬停也是如此
mouseover上的私有函数(事件:MouseEvent):void
{
Alert.show('Hello Ankur Sharma');
}
]]>
嘿,这是用TextField完成的,如果你是用abt TextField(我用的是flex3)对不起,我想问题应该如下。我想要文本字段中多个文本字符串的鼠标移动功能。在htmlText中,我将有3个herf标记,所以在htmlText中的每个超链接上,我需要显示不同的数据。请帮忙。对不起,我想问题应该如下。我想要文本字段中多个文本字符串的鼠标移动功能。在htmlText中,我将有3个herf标记,所以在htmlText中的每个超链接上,我需要显示不同的数据。请帮忙。
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
public function clickHandler(event:MouseEvent):void{
//handle click here..
}
public function mouseOverHandler(event:MouseEvent):void{
//handle mouse over event here..
}
]]>
</mx:Script>
<mx:Text x="84" y="72" text="Text" width="212" height="43" click="clickHandler(event)" mouseOver="mouseOverHandler(event)"/>
private function onMouseOver(event:MouseEvent):void
{
Alert.show('Hello Ankur Sharma');
}
]]>
</mx:Script>