Sorry, the parameters for the captureScreen method were not correct. The correct code should be
Code:
var img = Image.captureScreen(l, t, r, b);
About the splash window, you can add some code to prevent the main window from displaying before the splash has been closed:
Code:
var splash = new SplashWnd(570, 330);
var stop = false;
splash.onTimeout = function () {
stop = true;
}
splash.loadSWF(getAdditionalFile("splash.swf"));
splash.timeout = 5000;
splash.window.center();
splash.window.show();
while (!stop) {
if (!processMsg()) break;
}