What is wrong here?
The status window lists several errors, on lines 23, 26, 27, 29 etc.
In fact there is only one error.
I have not put a semicolon after the imagelist VAR declaration - - it should read
allimages: imglist;That small omission creates an avalanche effect of errors following it!
Its always useful to look for the first error when you are trying to debug your code.