Well, I guess I'm just overlooking something but I can't get my script to work.

I have 9 Frames and 4 Buttons and I want to jump to the frames according to
the variables set with the buttons. So if you have pushed button 1 and 3 then I
want to go to frame 5 and if I press button 1 and 2 I want to jump to frame 2.
I thought i could archive this with a set of switches but it wont work :(

Lets say Button 1 and 2 have the Variable "Colour" attatched and set it to
values "1" or "2".
Button 3 and 4 have the variable "Camera" and Change the value of this to "1"
and "2".
Now I thought I could create a switch like this:

switch (camera)
case 1:
switch(colour)
case 1: gotoframe 5;
case 2: gotoframe 6;
break;
case 2:
switch(coulor)
case 1: gotoframe 7;
case 2: gotoframme 8;
break;

But the Problem is, I get the error that I can only use one "goto" in a
function.
If I try to archive this with "if" clauses I don't get the error but it won't
work either.

Well, I hope I've made myself a bit clear, maybe I'll solve the problem
tomorrow morning, but in case not - maybe there is someone who could help me
out? ;) Thanks.