/ Published in: ActionScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Array.prototype._duplicate = function() { /* * This returns a duplicate of the array */ var newAry:Array = new Array(); var ary_length = this.length; for (var i=0;i < ary_length; ++i){ newAry.push( this[i] ); } return newAry; }// End Function