如何将皮肤设置为null按钮?如何将皮肤设置为null按钮?
button = new Button();
button.useHandCursor=true;
button.buttonMode =true;
我想设置button.skin = NULL
由于
如何将皮肤设置为null按钮?如何将皮肤设置为null按钮?
button = new Button();
button.useHandCursor=true;
button.buttonMode =true;
我想设置button.skin = NULL
由于
的Flex 3或Flex 4?
Flex 4的版本
button.setStyle( “skinClass的”,NULL)
Flex 3的版本
button.setStyle( “upSkin”,NULL) button.setStyle (“downSkin”,null) button.setStyle(“overSkin”,null) button.setStyle(“disabledSkin”,null)
在Flex 4/Spark体系结构中,如果可换肤组件没有皮肤设置 - 或者皮肤为空 - 它将产生运行时错误。当我忘记设置默认值时,我总是得到这个结果。我不确定为什么有人会想这样做。 – JeffryHouser 2011-01-20 15:02:43
你有什么用途的空皮肤按钮?对我来说,你可以在button上设置visible和includeInLayout为false,并得到相同的结果。我在这里错过了什么吗? – 2011-01-20 16:20:16