gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 07:09:13 24 4
gpt4 key购买 nike

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

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com