I borrowed the idea (applying specific functions to a movie that you load later) for this code from a Dyanmic web application book I bought …and I modified it to work with a specific preloader movieclip i have made…
anyway when i complie it in AS2 it throws errors that look like this…
**Error** C:\Documents and Settings\Ryan Lovelett\Desktop\FlashTest Site v2\flash\progressBar.as: Line 13: ActionScript 2.0 class scripts may only define class or interface constructs.
};
**Error** C:\Documents and Settings\Ryan Lovelett\Desktop\FlashTest Site v2\flash\progressBar.as: Line 8: ActionScript 2.0 class scripts may only define class or interface constructs.
progressBarAS.prototype = new MovieClip();
What do I need to change it to…and if its not too much trouble, why do I need to change it?
**I have attached my .as file