|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello,
I have following questions regarding SWFKit pro: 1./ Single instance only Is it possible to allow the enduser to start a "single instance" of a SWFKit.exe only? 2./ Splash image Is it possible to have a "Splash image" (*.bmp, *.jpg,....) running before the "main" SWFKit.exe window shows up? I would need this, because the SWFKit.exe "Main Window" takes a while before launching from the CD-Rom by AutoRun.ini. The enduser should see something quick, before the "Main Window" shoes up. 3./Full screen (or better "Full Canvas") My Flash swf is 1024 x 768 in size. This should not be simply stretched to "Full Screen" but only the canvas "background" should be stretched. With other words, the content of 1024 x 768 should never be resized and only canvas (background) should be "Full Screen". Is there such a possibility? Thank you in advance, Walter Zeller |
|
|||
|
1) Please insert the following code into the initialize script, before "return true"
Code:
// find out the count of applications have been created
var wnds = Window.getWindowsByName(Application.Appearance.caption);
if (wnds.length >= 1) {
// more than one has been created
// bring the created application to top
wnds[0].bringToTop();
// exit the current application
return false;
}
Code:
var splash = new SplashWnd(640, 480);
splash.loadSWF(getAdditionalFile("my.jpg"));
splash.timeout = 10000;
splash.window.center();
splash.window.show();
The syntax to create a Splash2 window: var splash = new Splash2(movie, timeout); The splash window will be visible in the center of screen automatically. If you have set a very big timeout value, and want to close it later, please use the close method: Code:
var splash = new Splash2(getAdditionalFile("my.swf"), 10000000);
// extract all the files. This call may take long time
getAdditionalFile();
...
splash.close();
Code:
loadMovie("my.jpg", _root);
Code:
// extract the jpg file so that it can be loaded by the splash movie
getAdditionalFile("my.jpg");
var splash = new Splash2(getAdditionalFile("my.swf"), 60000);
// extract all the files. This call may take long time
getAdditionalFile();
splash.close();
|
|
|||
|
Hello,
thank you for the detailed information. regarding point = 3./Full screen (or better "Full Canvas") it didn`t work out well. I made "Scale Mode = 100%" as here = http://www.mspp.com/druck/Scale_Mode.jpg and then "Build/Preview/Application: F9" as here = http://www.mspp.com/druck/Preview_F9.jpg and as you can see on the picture, canvas (background) is not stretched to full screen. Does I make any wrong? Thank you in advance, Walter Zeller |
|
|||
|
Sorry, I misunderstood your meaning. I thought you just wanted to know how to prevent the movie from being stretched, and you had already made the movie full screen.
To make the movie full screen, you must 1) set border style to none (you have already done that) 2) set the "Window size" to "makes the projector window full screen" in [Size and Position]. |
|
|||
|
Hello,
my question referes to point 2./ I use SWFKit Express 3.1 As my SWFKit.exe is loading slow, I want to show a Splash Screen before the Main.swf (The Main Movie) is loading. I use following code: getAdditionalFile("00_Splash.jpg"); var splash = new Splash2(getAdditionalFile("00_Splash.swf"), 60000); getAdditionalFile(); splash.close(); return true; In "00_Splash.swf" I use (loadMovie("00_Splash.jpg", _root) ![]() Unfortunatly the "00_Splash.swf" does NOT show and instead after long time the Main.swf is coming. Pls. help with any solution. Thank you in advance, Walter Zeller |
|
|||
|
Sorry, SWFKit Express does not support the splash screen objects, and it does not support activex components or dlls either. So there is no way to make it work in SWFKit Express.
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|