I have a variable "level", and based on the value of that Number variable, I want a file included, with my level settings for THAT particular level. Level files are called "Level1Definition.as", "Level2Definition.as", "Level3Definition.as", and so on. When I try to form that line of code like this:
include "Level" + level + "Definition.as";
Expecting semicolon before plus.
That doesn't work, because the include statement is executed before/during compilation, but the value of your variable determined at runtime.
The core of your problem is that you mix data with logic. You should not have different classes for individual levels. Instead, create one level class that represents a general level object. Create instances of that class and pass the data specific to that level to the object. This data is usually loaded at runtime from a file or server, then deserialized (from json, XML or whatever format is used) before it is used. Hard coding large amounts of data as you do it if not recommended. It also makes it necessary to recompile everything when a level is changed.