Set Properties Function AS3

Here’s a simple, but very useful function that sets the properties of a specified target, with properties of an object. /** * Set properties from object */ function setProps($target:Object, $props:Object):void { for(var p:String in $props) { $target[p] = $props[p]; } …

Go Top