0 Replies Latest reply on Oct 21, 2011 1:44 PM by Zolotoj

    Alert box background

    Zolotoj Level 3

      I am trying to changel Alert box's background using Spark skin. Here is some code fragment:

       

      <!-- layer 1: border -->

          <s:Rect left="0" right="0" top="0" bottom="0">

              <s:stroke>

                  <s:SolidColorStroke color="0" alpha="0.50" weight="1" />

              </s:stroke>

          </s:Rect>

         

          <!-- layer 2: background fill -->   

          <s:Rect id="background" left="1" top="1" right="1" bottom="1">

              <s:fill>

                  <s:SolidColor color="red" id="bgFill"/>

              </s:fill>

          </s:Rect>

         

          <!-- layer 3: title bar fill -->   

          <s:Rect left="1" right="1" top="1" height="30">

              <s:fill>

                  <s:LinearGradient rotation="90">

                      <s:GradientEntry color="0x8293b2"/>

                      <s:GradientEntry color="0x5e7196"/>

                  </s:LinearGradient>

              </s:fill>

          </s:Rect>

       

      Everything works except <!-- layer 2: background fill -->. Any idea what am I doing wrong?

       

      Thanks