flash on 2011-3-21
♥0 |
Line 19 |
Modified 2011-03-21 22:05:53 |
MIT License
archived:2017-03-20 05:35:08
ActionScript3 source code
/**
* Copyright enecre ( http://wonderfl.net/user/enecre )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/bSa7
*/
package {
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
private var tf:TextField = new TextField;
public function FlashTest() {
// write as3 code here..
tf.width = tf.height = 465;
addChild(tf);
var xml:XML = <HOGE moja="5"/>;
tr(xml.@moja);
var hoge:int = "15,1" as int;
if(hoge == 0)tr("nul!l");
tr(hoge);
}
private function tr(...o:Array):void{
tf.appendText(o + "\n");
}
}
}