Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Apache Flex 4.14.0
-
None
Description
Using the coding below results in an "ReferenceError: Error #1069: Property iconDisplay not found on flatspark.skins.ButtonSkin and there is no default value." (see attachment)
mxml:
<?xml version="1.0" encoding="utf-8"?> <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" minWidth="955" minHeight="600" xmlns:flatspark="flatspark.components.*" creationComplete="init()" > <fx:Script> <![CDATA[ import mx.core.FlexGlobals; private function init():void { // Without this there's no problem: FlexGlobals.topLevelApplication.setStyle("chromeColor", 0xFFFFFF); } ]]> </fx:Script> <s:Button label="Test it" skinClass="flatspark.skins.ButtonSkin" /> </s:Application>