Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-34694

Flatspark: Setting Applications "chromeColor" style throws error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Apache Flex 4.14.0
    • Apache Flex 4.14.0
    • FlatSpark
    • 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>
      

      Attachments

        1. screenshot-1.png
          16 kB
          Olaf Krüger

        Activity

          People

            akamud Mahmoud Ali Neto
            okrueger@edscha.com Olaf Krüger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: