- Code: Select all
Sub ProcessKeyStrokes(CurrentFrame, KeyID)
'All keystroke actions you'd like to perform come here
'-----------------------------------------------------
'1 = Arrow Left
'2 = Arrow Right
'3 = Arrow Up
'4 = Arrow Down
'10 = Space Bar
'13 = X Key
'12 = C Key
End Sub
Sub KeyGuard_KeyPressed(KeyID)
ProcessKeyStrokes GetCurrentFrameName, KeyID(0)
End Sub
Sub ProcessKeyStrokes(CurrentFrame, KeyID)
If CurrentFrame="csBLACK" Then
If KeyID = 3 Then
Action.GoToFrame "csPINK"
End If
End If
If CurrentFrame="csPINK" Then
If KeyID = 1 Then
Action.GoToFrame "csYELLOW"
Else If KeyID = 2 Then
Action.GoToFrame "csGREY"
Else If KeyID= 3 Then
Action.GoToFrame "csPURPLE"
Else If KEY ID= 4 Then
Action.GoToFrame "csBLACK"
End If
End If
End If
End If
End If
End Sub
and when I try it, it says, Expected 'Then'. Help, please?
What does it mean by this, and how I can I fix it?
Thanks!
~John