3 Replies Latest reply on Feb 23, 2011 8:38 AM by Darrell Loverin

    How to change style property in runtime

    Maximist

      Hallo. I have this style tag in my main application:

       

      <fx:Style>

       

       

           @namespace s "library://ns.adobe.com/flex/spark";

           @namespace mx "library://ns.adobe.com/flex/halo";

       

       

       

           @font-face {

           src: url("../caratteri/MyriadPro-Bold.otf");

           fontFamily: "MyriadPro-Bold";

           embedAsCFF: true;

           }

       

       

           .mioStileMyriadProBold {

           fontFamily:MyriadPro-Bold;

           fontLookup: embeddedCFF;

           }

       

       

      </fx:Style>

       

       

      It works good but i wish to change the fontFamily while the program is running. How can i do that?

       

      Thx a lot.

       

      Max