function myFunction(type:int):void {
switch (type) {
...
case AWESOME:
{
function doSomething():void {
...
}
...
doSomething();
}
...
}
}
Error: doSomething is not a function.
Not magic, just a different kind of science.
function myFunction(type:int):void {
switch (type) {
...
case AWESOME:
{
function doSomething():void {
...
}
...
doSomething();
}
...
}
}
Error: doSomething is not a function.
Comments are closed.
Ben, this code compiled for me – what version of flex sdk? Totally may have been a bug that was fixed.
4.1. I’ll have to try this later with the latest.