apache-flex - 弹性 : How to set hand cursor?

标签 apache-flex cursor

我正在尝试在 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>

最佳答案

当鼠标悬停在容器上时,此代码完美地显示了它:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">
    <mx:HBox backgroundColor="0xcc0000" buttonMode="true" id="box" mouseChildren="false" useHandCursor="true">
        <s:Label text="Hiya sexy..." />
    </mx:HBox>
</s:Application>

关于apache-flex - 弹性 : How to set hand cursor?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7044425/

相关文章:

cursor - Ace 编辑器中的多个光标

html - 内部 CSS 光标 URL 不起作用,有什么提示吗?

选择 Java DB 以获得更好的性能

python - 从游标创建临时表

apache-flex - 如何确定TileList中最后取消选择的项目?

HTML/CSS Spacer(类似 Flex 的)

apache-flex - 如何将 Assets 添加到 Flex 库?

apache-flex - 使用 ActionScript 中的唯一数据填充数据网格内的组合框(flex)

objective-c - 几秒钟后隐藏 OS X 上的鼠标光标

actionscript-3 - Adobe Air - 分析