Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 按钮启用属性_Actionscript 3_Flash_Starling Framework - Fatal编程技术网

Actionscript 3 按钮启用属性

Actionscript 3 按钮启用属性,actionscript-3,flash,starling-framework,Actionscript 3,Flash,Starling Framework,我试图找到一种方法来禁用feathers UI(Starling)中的按钮,就像spark按钮一样 button:Button = new Button() button.enabled = false; this.addChild(button); 我正在删除侦听器,但我想知道是否有更优雅的方法来执行此操作。您尝试过属性吗?谢谢!这是正确的方法。我正在处理使按钮禁用的可触摸属性,但不要将禁用的皮肤赋予按钮。再一次,谢谢。

我试图找到一种方法来禁用feathers UI(Starling)中的按钮,就像spark按钮一样

button:Button = new Button()
button.enabled = false;
this.addChild(button);

我正在删除侦听器,但我想知道是否有更优雅的方法来执行此操作。

您尝试过属性吗?

谢谢!这是正确的方法。我正在处理使按钮禁用的可触摸属性,但不要将禁用的皮肤赋予按钮。再一次,谢谢。