I am opening an swf file using a browser object like this:
WebBrowser1.Navigate "file:\\C:\001.swf"
What I need to do is randomize the swf selection between a set number of files. The files are named 001.swf, 002.swf and so on up to 050.swf so I need the code to run like this:
Pseudo Code:
Choose a random number between 001 and 050
Replace the word RANDOM with the selected number in:
WebBrowser1.Navigate "file:\\C:\RANDOM.swf"
Then run the WebBrowser1.Navigate Event "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
-- Rich Cook.
WebBrowser1.Navigate "file:\\C:\001.swf"
What I need to do is randomize the swf selection between a set number of files. The files are named 001.swf, 002.swf and so on up to 050.swf so I need the code to run like this:
Pseudo Code:
Choose a random number between 001 and 050
Replace the word RANDOM with the selected number in:
WebBrowser1.Navigate "file:\\C:\RANDOM.swf"
Then run the WebBrowser1.Navigate Event "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
-- Rich Cook.