Wow – I’m kind of excited – I get a stack overflow error. I’m not sure why though…
This is my code:
switch (direction) {
case "left" :
if (project_array[cp].projectThumb.thumbActive == false){
if (cp>0){ cp--; }
checkActive("left")
} else {
unloadProject();
}
break;
case "right" :
if (project_array[cp].projectThumb.thumbActive == false){
if (cp<(tp-1)){ cp++; }
checkActive("right")
} else {
unloadProject();
}
break;
}
It’s due to a compiler bug, normally you can avoid it enclosing your case content with {} =>