package { import flash.display.Sprite; import flash.text.TextField; import flash.events.Event; [SWF(width=450, height=450, backgroundColor=0x000022, frameRate=30)] public class FlashTest extends Sprite { public function FlashTest() { var nig:uint = Math.ceil(5 + Math.PI); var txtHello:TextField = new TextField(); var txtFrame:TextField = new TextField(); var MyDate:Date = new Date(); var frame:Number = 0; txtHello.text = "Once were naggers" + nig; txtHello.width = 400; txtHello.height = 300; txtHello.multiline = true; txtHello.wordWrap = true; txtHello.textColor = 0xFF00FF; txtHello.border = true; txtHello.borderColor = 0x00FF00; txtHello.x = txtHello.y = 20; txtFrame.text = "text"; txtFrame.width = 100; txtFrame.height = 20; txtFrame.y = 321; txtFrame.x = 20; txtFrame.textColor = 0xCFCFCF; txtFrame.border = true; txtFrame.borderColor = 0x0000FF; txtHello.appendText("ASDF"); addChild(txtHello); addChild(txtFrame); txtHello.appendText(" append after addChild"); txtHello.appendText("\n\nDate: " + MyDate); var i:Number; for(i = 0; i<10; ++i){ printff(txtHello); txtHello.appendText(" " + i); } function enterFrame():void{ frame++; txtFrame.text = "Frame: " + frame; } addEventListener(Event.ENTER_FRAME, enterFrame); } } } import flash.text.TextField; import flash.display.*; var link:boi = new boi(); var ganon:boi = new boi(); ganon.mah = "Die!"; link.n(); link.mah = "\nMah boi, this peace is what all true warriors strive for"; function printff(asdf:TextField):void{ asdf.appendText(link.mah); asdf.appendText(ganon.mah); } class boi { public var mah:String = "a"; public function n():void{ mah = "lelz"; } } AS3 test