Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package {
- import flash.display.*;
- import flash.text.*;
- public class test extends Sprite {
- public function test(): void {
- this.setView();
- var text: TextField = new TextField();
- text.x = 0;
- text.y = 0;
- text.width = 200;
- text.height = 17;
- text.text = "Text text text";
- this.addChild(text);
- }
- private function setView(): void {
- this.opaqueBackground = 0xFF0000;
- }
- }
- }
Add Comment
Please, Sign In to add comment