Flex 鼠标移入组件/TextField变手型

来源:互联网 发布:如何注销淘宝店铺知乎 编辑:程序博客网 时间:2024/06/03 08:42

如下代码所示

<mx:VideoDisplay id="vid" autoPlay="false" source="{_vidData}" width="280" height="250" 
  click="vid_clickHandler(event)" useHandCursor="true"  buttonMode="true"  mouseChildren="false"/>

在组件中添加如下属性即可:

useHandCursor="true"  buttonMode="true"  mouseChildren="false"


让鼠标移动于TextField上方时显示为手型  

var txt:TextField = new TextField();
txt.x = 10;
txt.y = 10;
txt.autoSize = "left";
txt.selectable = false;
txt.htmlText = "<a href='event:#'>显示手形的TextField</a>";
addChild(txt)
0 0
原创粉丝点击