Pure Actionscript 3 Adobe Air Application main class constructor not being called
- by SilverCode
I'm writing an Air application using only Actionscript, and Flex3 SDK as the compiler. Everything compiles and runs fine under adl, but when the final air file is built and installed, the main class is never initialized. For instance:
package {
import flash.display.Sprite;
public class main extends Sprite {
public function main() {
trace("Init");
}
}
}
When run under ADL, "Init" will be output to the console, but when installed and run, nothing happens (the constructor for class main is never called).