Olaf Krüger created FLEX-34694:
----------------------------------

             Summary: Flatspark: Setting Applications "chromeColor" style 
throws error
                 Key: FLEX-34694
                 URL: https://issues.apache.org/jira/browse/FLEX-34694
             Project: Apache Flex
          Issue Type: Bug
    Affects Versions: Apache Flex 4.14.0
            Reporter: Olaf Krüger
         Attachments: screenshot-1.png

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)

{code:title=mxml:|borderStyle=solid}
<?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>
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to