2 Replies Latest reply on Mar 3, 2010 10:04 AM by SiHoop

    backgroundColor

    SiHoop Level 1

      Why does Flex change my background color? If I choose a red background, the background appears as: 0xf60909 instead of 0xff0000.

      Do I just need to restart my computer or is Flex doing something to change the background color?

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="0xff0000">
         
      </mx:Application>

        • 1. Re: backgroundColor
          Gregory Lafrance Level 6

          You need to also set the backgroundGradientColors property. The following application shows your problem, but if you add this to the Application tag it goes away:

           

          backgroundGradientColors="[0xFF0000, 0xFF0000]"

           

          If this post answers your question or helps, please mark it as such.


          Greg Lafrance - Flex 2 and 3 ACE certified

          www.ChikaraDev.com

          Flex / AIR Development, Training, and Support Services

           

          <?xml version="1.0" encoding="utf-8"?>
          <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"  
            backgroundColor="0xff0000">
            <mx:VBox paddingBottom="0" paddingLeft="0"
              paddingRight="0" paddingTop="0" 
              horizontalAlign="center" verticalGap="0"
              verticalAlign="middle">
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
              <mx:Canvas width="100" height="100"
                backgroundColor="0xFF0000"/>
            </mx:VBox>
          </mx:Application>
          
          
          • 2. Re: backgroundColor
            SiHoop Level 1

            Fantastic, thank you!