text field is skewed : skew « TextField « Flash / Flex / ActionScript






text field is skewed

 

package{
  import flash.display.Sprite;
  import flash.text.*;
  import flash.geom.Matrix;
  public class Main extends Sprite{
    public function Main(){
        var t:TextField = new TextField(  );
        t.text = "Hello world";
        t.transform.matrix = new Matrix(1, 1, 0, 1);  // Skew text
        addChild(t);
    }
  }
}

        








Related examples in the same category