0 Replies Latest reply on Jan 19, 2012 10:22 AM by bmilesp

    write styles in as3 for mobile

    bmilesp

      Hello, does anyone know how to convert the below mxml into a class in as3? I'm trying to optimize my code for moble.

       

       

      Also, i have posibly a more precise question. I'm optimizing draggable items with limited text in this case. Would just using an image of text be of superior performance rather than optimized styled text?

       

       

      <fx:Style>

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

             

              @font-face {

                  src: url("../assets/MyriadWebPro.ttf");

                  fontFamily: myFontFamily;

                  embedAsCFF: false;

              }      

              .customStyle {

                  fontFamily: myFontFamily;

                  fontSize: 24;

                  skinClass: ClassReference("spark.skins.mobile.TextAreaSkin");

              }  

          </fx:Style>

       

       

      thanks!