flex鼠标移到某组件鼠标的形状变成手型

来源:互联网 发布:天堂js手机版怎么安装 编辑:程序博客网 时间:2024/05/21 06:22

 比如我要设置当鼠标移动到label上时,鼠标形状变成手型

具体代码

<mx:Label text="click me"  
    useHandCursor="true"    
    buttonMode="true"    
    mouseChildren="false"/>

只要设置:

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

这三个属性就行了!