flash on 2011-9-10
♥0 |
Line 31 |
Modified 2011-09-10 14:56:23 |
MIT License
archived:2017-03-20 14:56:21
ActionScript3 source code
/**
* Copyright pedude ( http://wonderfl.net/user/pedude )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/gRma
*/
package
{
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class FlashTest extends Sprite
{
public function FlashTest()
{
if (stage)
init();
else
addEventListener(Event.ADDED_TO_STAGE, init);
}
public function init(evt:Event = null):void
{
//strace("balls");
strace(stage.stageWidth);
}
public function strace(...str):void
{
var text1:TextField = new TextField();
var ac:String = "";
if ((str.length == 1) && ((str[0] is String) || (str[0] is Number)))
{
ac = str[0].toString();
}
text1.text = ac;
addChild(text1);
}
/*
public function drawGrid(width:int, height:int):void
{
var x_iterations =
for (var ex = 0; ex <=
}*/
}
}