3 Replies Latest reply on Jun 4, 2009 4:37 AM by dzeikei

    Changing CSS dynamically

    megatron242

      Hi,

       

      Can I change at runtime a given definition in of a style ? In example, I have the following defined:

       

      Button
      {
          paddingTop: 1;
          paddingBottom: 1;
          padding-left: 1;
          padding-right: 1;
          fillAlphas: 0.4, 0.8, 0.2, 1.0;
          fillColors: #FFFFFF, #FFFFFF, #FFFFFF, #FFFFFF;
          borderColor: #E67F24;
          themeColor: #E67F24;
      }

       

      When the stage is large, I want to increase the padding of all buttons. Is it possible?

       

      thanks,

      Vince