Not a Function

function myFunction(type:int):void {
	switch (type) {
		...
		case AWESOME:
		{
			function doSomething():void {
				...
			}
 
			...
 
			doSomething();
		}
		...
	}
}

Error: doSomething is not a function.

2 Comments

Leave a Reply to thegoldenmule Cancel reply