Hi everyone,
I have a problem I hope someone can help with.
I'm attempting to make a "slot machine" type of routine. Not a slot game, but just a similar routine where I have several boxes that display fast random images in them for about 10 seconds then stop. Then depending on the order, displays another image in a different location. I'm using almost pure vbscrpt for this.
Everything works like a charm except my proceedure loop, which it won't do no matter what I do. Here's a sample of "just one" of my configurations. I've tried several different ones. This one uses the CreateTimedEvent to show an image every .2 seconds.
sub spin3
cdown = 5
Do While cdown > 0
cdown = cdown - 1
show11=1
Action.CreateTimedEvent .2, "show11=0 : show12=1"
Action.CreateTimedEvent .4, "show12=0 : show13=1"
Action.CreateTimedEvent .6, "show13=0 : show14=1"
Action.CreateTimedEvent .8, "show14=0"
Loop
End Sub
It runs once just fine, but will not loop back to repeat the proc. I have tried the DO UNTIL LOOP also and even the FOR NEXT routine. Nothing works.
I have also tried to use the action.loadapicture function but it wouldn't do anything after the first picture load.
Any ideas/help?