Maybe there are some people out there who can benfit from my grey hairs
I moved on from my failure to get the switch to work and went ahead with trying to get the for loop working in Task 4A-1, and I just couldn't get it to work... I compared it to the working code in the XVIPS.html document... but my code just kept jumping out of the for look after instantiating the first instance! ie after the first occurrence... see if you can spot my error...
This is my code...
// MY CODE!!!
for(j = 0; j < 5; j++)
{
alert("in swapimgs "+j)
swapimgs[j] = new image()
}
// XVIPS CODE!!!
//for(j = 0; j < 5; j++)
// {
// alert("in swapimgs "+j)
// swapimgs[j] = new Image()
// rollimgs[j] = new Image()
// }
Eventually in desperation I changed new image() to new Image()
And now it works!
I'm sure if I go back and look at my switch coding again I'll find some little word not capitalised!
Please feel free to capitalise on my experience...
See you in the surf!
Joanna