小编Squ*_*iff的帖子

Flex:如何设置手形光标?

我正在尝试将手形光标设置在HBox上.我已经尝试过buttonMode和useHandCursor,但没有运气.此示例显示忙碌光标.谁能告诉我如何让它显示flashPlayer的手形光标?

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
           xmlns:s="library://ns.adobe.com/flex/spark" 
           xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:components="com.dn2k.components.*"  >

<fx:Script>
    <![CDATA[
        private var cursorID:int;
        //cursorManager

        protected function box_mouseOverHandler(event:MouseEvent):void
        {
            cursorManager.setBusyCursor()
        }
    ]]>
</fx:Script>

<mx:HBox id="box" useHandCursor="true" buttonMode="true" mouseChildren="false" backgroundColor="0xcc0000" mouseOver="box_mouseOverHandler(event)">
    <s:Label text="Hiya sexy..."/>
</mx:HBox>
Run Code Online (Sandbox Code Playgroud)

apache-flex cursor

8
推荐指数
2
解决办法
6220
查看次数

标签 统计

apache-flex ×1

cursor ×1