Published in: ActionScript
// 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; };
You need to login to post a comment.
