PDA

View Full Version : Programming Opinion


samvex
09-27-2004, 04:36 AM
Programming opinion

--------------------------------------------------------------------------------

I have a series of images that are being dynamically loaded. I am using an array to specify the path of each individual image. I want to make my program cycle through the individual items of the array and load each image randomly until every image is loaded. While this is going on, I am using a conditional to detect if certain keyboard presses are invoked. The keyboard presses are specific to each array item.
What are your opinions on how I should handle this keyboard event listener?

How should I go about coding the array of images to be in sync with each specific keyboard press, and be able to detect when each image has been loaded?


Thanks,
Sam

farafiro
09-27-2004, 07:28 AM
samvex
welcome to the forums

make another array for the keyToPress and a small loop to sync them together
for the completetion of the loading, make another MC to work as a holder for the images in each MC and check if is totalBytes equals loadedBytes

samvex
10-03-2004, 03:57 AM
question answered, thanks!