Guest User

Untitled

a guest
Sep 28th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package {
  2.     import flash.display.*;
  3.     import flash.text.*;
  4.  
  5.     public class test extends Sprite {
  6.  
  7.         public function test(): void {
  8.             this.setView();
  9.  
  10.             var text: TextField = new TextField();
  11.             text.x = 0;
  12.             text.y = 0;
  13.  
  14.             text.width = 200;
  15.             text.height = 17;
  16.  
  17.             text.text = "Text text text";
  18.  
  19.             this.addChild(text);
  20.         }
  21.  
  22.         private function setView(): void {
  23.             this.opaqueBackground = 0xFF0000;
  24.         }
  25.     }
  26. }
Add Comment
Please, Sign In to add comment