The main issue was to write an *.mxml
application instead of a simple basic *.as
class extending Sprite
which can be compiled with mxmlc
, too.
Now the file looks like this:
package {
import flash.display.Sprite;
import flash.external.ExternalInterface;
import flash.net.LocalConnection;
import flash.events.StatusEvent;
public class MyClass extends Sprite
{
// ...
}
}
Now the file is ~1.2k and loads very quick :)
Much thanks @Timofei Davydik and @Sunil D.