Flex中如何利用useHandCursor和buttonMode属性在鼠标移到图片上显示手型光标的例子

接下来的例子演示了Flex中如何利用useHandCursor和buttonMode属性,在鼠标移到图片上显示手型光标。

让我们先来看一下Demo可以右键View Source或点击这里察看源代码):

下面是完整代码(或点击这里察看):

Download: main.mxml<?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>

本文转自:http://blog.minidx.com/2008/12/01/1664.html

你可能感兴趣的:(xml,Flex,Blog,Flash,Adobe)