1 Reply Latest reply on Dec 30, 2009 8:47 AM by jrpruitt

    fillcolors

    jrpruitt

      What happened to fillcolors in Flash Builder?

       

      I don't see any way of specifying color gradiants and fillcolors isn't reconized by autofill in codeview, although it doesn't seem to generate an error in the compilation.

       

      <mx:Button y="173" x="459"

      label="Sign In"
      fontSize="28"
      id="login_btn"
      click="handleLogInClick(0)"
      keyUp="handleKeyEvent(event)"
      enabled="true"

      fillColors="[#dbffd5, #00ff00]"     <---- This line doesn't seem to be valid in FB4, but doesn't generate a compile error

      fillAlphas="[.5, 1]"

      cornerRadius="10"/>

        • 1. Re: fillcolors
          jrpruitt Level 1

          I changed the

          <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"

          at the top of the app (as came from my Flex Builder 2 app)

           

          to

           

          <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                          xmlns:mx="library://ns.adobe.com/flex/halo"

           

          and suddenly fillcolors started working correctly.

           

          Then it started throwing errors on my <mx:String> and <mx:Script> lines, but changing those to <fx:String> and <fx:Script> fixed that problem and everything seems to be working correctly now.

           

          John