Return to Snippet

Revision: 4218
at November 8, 2007 12:23 by wintondeshong


Initial Code
// 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;
};

Initial URL

                                

Initial Description

                                

Initial Title
copyPropertiesIndexOf

Initial Tags
textmate, actionscript

Initial Language
ActionScript