flash on 2012-6-12
♥0 |
Line 28 |
Modified 2012-06-12 02:44:35 |
MIT License
archived:2017-03-20 03:05:20
ActionScript3 source code
/**
* Copyright Highly ( http://wonderfl.net/user/Highly )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/bDfh
*/
package {
import flash.text.TextField;
import flash.events.TimerEvent;
import flash.utils.Timer;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
var sw:int = stage.stageWidth;
var sh:int = stage.stageHeight;
var ti:Timer = new Timer(500,0);
ti.addEventListener(TimerEvent.TIMER,tmr);
ti.start();
var out1:TextField = new TextField();
var tfo:int = 10;
out1.x = tfo;
out1.y = tfo;
out1.width = sw - tfo*2;
out1.height = sh/3 - tfo*2;
out1.selectable = true;
out1.background = true;
out1.wordWrap = true;
addChild(out1);
function tmr(e:TimerEvent):void{
//I'm obviously not drunk enough becAUSE i'm coding like a wizard
//forgot what i was coding fuck
//I just want to code abvout how buff I am
out1.appendText("fuck\n");
}
}
}
}