/ Published in: ActionScript 3

Properties Setter Function Object Way
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// set some properties setProps(s, {x:100, y:100, scaleX:2, scaleY:2, rotation:45}); // set multiple properties of an Object function setProps(o:*, props:Object):void { for (var key:String in props) { o[key] = props[key]; } }
Comments
