View Single Post
  #4 (permalink)  
Old 03-31-2009, 04:43 PM
SWFKit SWFKit is offline
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

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;
}
Reply With Quote