Little story behind this one: For some reason, the Divx 6x videos I make won't play correctly if I integrate them directly into the frames, so I've played them with scripting instead. Looping videos, such as clock pendulums, to make the game more realistic.
If I click on a direction leading from the "clock room" I use the stopvideo script command, or else my pendulum animation will be playing on the next frame. So far so good.
The problem is, I have a few "examine item" frames. (If I drag one item on top of my "examine" icon, which leads to a frame showing a closeup of the item in question) Unless I use the "stopvideo" command in the frame's script, my pendulum vid will obviously continue over such frames, if the player decides to examine an item from the "clock room." HOWEVER - If the player examines an item when he/she is NOT in a frame where a video is playing, I get this error:
"Control array element 1 doesn't exist"
Obviously, this is because I'm telling it stop playing a video that is not there. But can anyone think of a way around it?
Thank you
-Tony