flash on 2015-11-19
♥0 |
Line 30 |
Modified 2015-11-19 01:43:11 |
MIT License
archived:2017-03-20 10:11:07
ActionScript3 source code
/**
* Copyright and ( http://wonderfl.net/user/and )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/k9kp
*/
package {
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var tf:TextField = new TextField();
tf.width = 100;
tf.height = 200;
addChild(tf);
var o:Object = {};
o["a"] = 1;
o["b"] = 2;
o["c"] = 3;
o["d"] = 4;
var s:String;
for(s in o)
{
tf.appendText(s+ " : "+o[s] + "\n");
}
delete o["c"];
tf.appendText("-------" + "\n");
for(s in o)
{
tf.appendText(s+ " : "+o[s] + "\n");
}
tf.appendText("-------" + "\n");
tf.appendText(o["blabla"] + "\n");
}
}
}