Flex组件上鼠标指针变成手型

恩,在链接上,button,lable上都可以。

把鼠标指针变成手型感觉舒服一点。

 

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" width="300" height="200"> <mx:Button width="90%" height="50%" label="No Hand Cursor Button" /> <mx:Button width="90%" height="50%" label="Hand Cursor Button" buttonMode="true" useHandCursor="true" /> <mx:Label width="100%" height="10%" text="label with hand cursor" buttonMode="true" useHandCursor="true" mouseChildren="false"/> </mx:Application>  

 

也可以在new一个组件的时候给它的属性赋值

 

var gpoint:Button=new Button(); gpoint.buttonMode=true; gpoint.useHandCursor=true; gpoint.mouseChildren=false; 

 

你可能感兴趣的:(Flex,layout,application,button,encoding)