Advertisement
tinyevil

Untitled

Apr 12th, 2018
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function Main() {
  2.     var tf:TextField = new TextField();
  3.    
  4.     tf.scaleX = 2;
  5.     tf.scaleY = 2;
  6.    
  7.     tf.baseWidth = 200;
  8.     tf.baseHeight = 200;
  9.    
  10.                    /* 400 */
  11.     tf.baseWidth = tf.computedWidth + 5; //tf.width += 5;
  12.     /*405*/
  13.    
  14.                     /* 400 */
  15.     tf.baseHeight = tf.computedHeight * 2; //tf.height *= 2;
  16.     /*800*/
  17.    
  18.           /* 810 */          /*1600*/
  19.     trace(tf.computedWidth, tf.computedHeight);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement