Are you using Strict mode and declaring you variables like this?
Local myVariable:MyType = new MyType
Local myImage:TImage = LoadImage("...")
OR are you declaring them like this :-
Local myVariable = new MyType
Local myImage = LoadImage("...")
Local myVariable:MyType = new MyType
Local myImage:TImage = LoadImage("...")
OR are you declaring them like this :-
Local myVariable = new MyType
Local myImage = LoadImage("...")