Variable Procedures and Frame Properties for Box 1 ONLY(To start the 1st box at A until told it's not A)
Procedures:
- Code: Select all
If Box1Letter1=1 Then
Action.LoadAPicture Hotspot(1), "A.JPG"
End If
If Box1Letter2=1 Then
Action.LoadAPicture Hotspot(1), "B.JPG"
End If
If Box1Letter3=1 Then
Action.LoadAPicture Hotspot(1), "C.JPG"
End If
If Box1Letter4=1 Then
Action.LoadAPicture Hotspot(1), "D.JPG"
End If
If Box1Letter5=1 Then
Action.LoadAPicture Hotspot(1), "E.JPG"
End If
Frame Properties:
- Code: Select all
Box1Letter1=1
Box1Letter2=0
Box1Letter3=0
Box1Letter4=0
Box1Letter5=0
It's at the Left and Right Arrows that I stumbled upon a problem. I realised now that the problem was that when I noticed my code was this:
Box 1 Left Arrow (A to E and E to D code):
- Code: Select all
Box1Letters=Box1Letter1+Box1Letter2+Box1Letter3+Box1Letter4+Box1Letter5
If Box1Letter1=1 then
Box1Letter1=0
Box1Letter5=1
End If
If Box1Letter5=1 then
Box1Letter5=0
Box1Letter4=1
End If
Box 1 Right Arrow (A to B and B to C code)
- Code: Select all
Box1Letters=Box1Letter1+Box1Letter2+Box1Letter3+Box1Letter4+Box1Letter5
If Box1Letter1=1 then
Box1Letter1=0
Box1Letter2=1
Action.LoadAPicture Hotspot(1), "B.JPG"
End If
If Box1Letter2=1 then
Box1Letter2=0
Box1Letter3=1
Action.LoadAPicture Hotspot(1), "C.JPG"
End If
When I tested it, I realised that It's just unlimitly going through the chain of events. Because it wasn't completely full circle, the Left Arrow just skipped E and went to D and the Right Arrow just skipped B and went to C. I wan't it to be a little different code and to do it without the Case Select because it's just akward. So without Case Select OR removing the arrows, can anyone tell me how to fix this?