大家好,我在使用 Flex 和 Firefox 4 中的 handCursor 组件时遇到了问题。
我已经按照这里的代码创建了我的手形光标,但它不会在我的演示或 flex 文档上呈现手形。有没有人找到在FF4中显示handCursor的方法?如果不是,那么处理创建类似范例的最佳方法是什么?
编辑:这是上面演示站点和我在本地编写的测试用例中使用的代码。适用于除 FF4 之外的所有版本。
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<mx:ApplicationControlBar dock="true">
<mx:Form styleName="plain">
<mx:FormItem label="useHandCursor:">
<mx:CheckBox id="checkBox1" selected="true" />
</mx:FormItem>
<mx:FormItem label="buttonMode:">
<mx:CheckBox id="checkBox2" selected="true" />
</mx:FormItem>
</mx:Form>
</mx:ApplicationControlBar>
<mx:Image id="img"
source="http://www.helpexamples.com/flash/images/image1.jpg"
useHandCursor="{checkBox1.selected}"
buttonMode="{checkBox2.selected}" />
</mx:Application>