/ Published in: ActionScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Returns an object with any/all properties of the supplied object that contain searchStr in their name private function copyPropertiesIndexOf(searchStr:String, obj:Object):Object { var tmpObject:Object = new Object(); for (var prop in obj) if (prop.indexOf( searchStr )!=-1) tmpObject[prop] = obj[prop]; return tmpObject; };