When I run my code it gives me a compiler error 1026 that says "Constructor functions must be instance methods". It sends me to the movieclip that contains this code, although even if I comment it out, it sends me to the same spot
var resources:Array = new Array(1);
var enemies:Array = new Array();
resources[0] = new Resource();
I saw other people with the same error, but their problems were all spelling mistakes on the name of the exported object.
Any ideas?