摘自:http://yexin218.iteye.com/blog/344923
有要使得在Button上出现手型的鼠标,你必须把buttonMode属性值设置成为true,并且把useHandCursor设置成为true. 对于其他组件你则必须把mouseChildren的属性值设置成为false。
mxml代码
<?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>
有要使得在Button上出现手型的鼠标,你必须把buttonMode属性值设置成为true,并且把useHandCursor设置成为true. 对于其他组件你则必须把mouseChildren的属性值设置成为false。
mxml代码
<?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>