Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-30-2007, 10:10 AM
Junior Member
 
Join Date: May 2007
Posts: 22
Default Questions: running only single instance / splash screen / full screen

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
Reply With Quote
  #2 (permalink)  
Old 05-30-2007, 12:56 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Questions: running only single instance / splash screen / full screen

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;
}
2) In the initialize script insert the following code
Code:
var splash = new SplashWnd(640, 480);
splash.loadSWF(getAdditionalFile("my.jpg"));
splash.timeout = 10000;
splash.window.center();
splash.window.show();
If you have a lot of files to unpack when the exe is launched, you can use another undocumented Splash2 object, which will run in a new thread. The SplashWindow runs in the same thread as the main program. That is to say, if your main program is blocked by the getAdditionalFile method to unpack a lot of files, a splash window displayed by the SplashWnd object will also be blocked. Whereas a splash window created by the Splash2 object will never be blocked.

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();
The movie parameter of Splash2 object can only be a swf file. If you want to load a jpg file, please first create an empty swf movie, and then in the first frame of the swf movie load the jpg file. For instance, in the first frame of the swf movie "my.swf"
Code:
loadMovie("my.jpg", _root);
in the initialize script of swfkit

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();
3) in [swfkit]->[operation panel]->[application definitions]->[appearance], set the scale mode to 100%
Reply With Quote
  #3 (permalink)  
Old 05-31-2007, 03:50 PM
Junior Member
 
Join Date: May 2007
Posts: 22
Default Re:Questions: running only single instance / splash screen / full screen

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
Reply With Quote
  #4 (permalink)  
Old 06-01-2007, 08:20 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Questions: running only single instance / splash screen / full screen

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].
Reply With Quote
  #5 (permalink)  
Old 06-13-2007, 05:22 PM
Junior Member
 
Join Date: May 2007
Posts: 22
Default Re:Questions: running only single instance / splash screen / full screen

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
Reply With Quote
  #6 (permalink)  
Old 06-14-2007, 03:07 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Questions: running only single instance / splash screen / full screen

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.
Reply With Quote
  #7 (permalink)  
Old 06-14-2007, 10:59 AM
Junior Member
 
Join Date: May 2007
Posts: 22
Default Re:Questions: running only single instance / splash screen / full screen

Hello,

which version of SWFKit supports the Splash Screen Object?

Thank you,
Walter Zeller
Reply With Quote
  #8 (permalink)  
Old 06-14-2007, 11:26 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Questions: running only single instance / splash screen / full screen

Both the SplashWnd object and the Splash2 object are only supported by SWFKit Pro.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:20 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.