Saturday, September 14, 2013

With is not the only way to shorthand in AS3

var arr:Array = new Array();
var p:Function = arr.push;
   
p("hello");
p("whats up?");
   
for each(var s:String in arr){trace(s);}

No comments:

Post a Comment