flash on 2015-5-31
♥0 |
Line 15 |
Modified 2015-06-01 23:36:35 |
MIT License
archived:2017-03-20 04:51:48
ActionScript3 source code
/**
* Copyright xarple ( http://wonderfl.net/user/xarple )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/vRCz
*/
package {
import flash.utils.Dictionary;
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var d :Dictionary = new Dictionary();
d['a'] = true;
d['b'] = false;
var t : TextField = new TextField();
t.text = (d['a'] ? '1' : '0') + (d['b'] ? '1' : '0') + (d['c'] ? '1' : '0') ;
addChild(t);
}
}
}