flash on 2011-3-21
♥0 |
Line 28 |
Modified 2011-03-21 15:38:30 |
MIT License
archived:2017-03-20 05:35:10
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/vBls
*/
package {
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
private var tf:TextField;
public function FlashTest() {
// write as3 code here..
tf = new TextField;
tf.width = tf.height = 465;
addChild(tf);
main();
}
private function main():void{
var xml:XML = <AGARI ba="0,0" hai="23,25,28,29,31" m="44586,8623,33167" machi="23" ten="30,4000,0" yaku="16,1,52,1,54,1" chip="54,1" doraHai="6" who="0" fromWho="0" sc="250,40,250,-20,250,-10,250,-10,0,3,0,-1,0,-1,0,-1" />;
tr(null == s(xml.@owari));
}
private function s(str:String):Array{
var tmp:Array = str.split(',');
if(tmp.length == 1 && tmp[0] == "")return null;
else return tmp;
}
private function tr(...o:Array):void{
tf.appendText(o.toString());
}
private function trln(...o:Array):void{
tf.appendText(o + "\n");
}
}
}