Not a Function

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

			...

			doSomething();
		}
		...
	}
}

Error: doSomething is not a function.

2 Comments

Comments are closed.