|
|||
|
In swfkit 2 , when I make a standalone exe file,
I can select flashplayer version in view \options... But in swfkit 3 , I found no way to set that option.. Is this option disabled? ??? |
|
|||
|
quote from help files
Quote:
|
|
|||
|
|
|
|||
|
Hello,
thank you for your answer, all seams clear. Still I have one more question. I will not pack all my resource files and just encrypt files. But I still would like to Pack at SWFKit.exe two files, which would be in my case "Main.swf" and "install_flash_player_active_x.exe" The reason is, I want to be seen at my \root directory\ on the CD, only one file which is \SWFKit.exe Is it possibel to have only that 2 files packed at SWFKit.exe? Thank you in advance. Walter Zeller |
|
|||
|
Yes, you can do that by adding only the "main.swf" into the "resources" panel, and then encrypting the other resource files and copying them to the output folder. To encrypt other files, you must first open your swfkit project, and then use the command "encrypt external files" from [main menu]->[tools]. This command uses the password of the opened swfkit project to encrypt external files. Therefore, you must open the swfkit project you are working on before you encrypt the other resource files so that the output exe file can open the encrypted resource files.
The main disadvantage of this method is that you will have to make some changes in your actionscript code in the "main.swf" - you must use absolute path names to open the other resource files. Usually you use relative path names to load other resource files, for example, you use "flvs\\movie1.flv" but not "c:\\my project\\flvs\\movie1.flv" to load the flv file in "c:\my project\flvs", if the "main.swf" is in "c:\my project", because the "main.swf" and the other resource files have the same root directory. However, if only the "main.swf" is packed and the others are not, they will have different root directories. Therefore, you will have to modify your actionscript code. Say your previous code is Code:
loadMovie("movies\\child.swf", mc_child);
Code:
import SWFKit.*; var child = Global.getAppDir() + "\\movies\\child.swf"; loadMovie(child, mc_child); In this way, the main movie you have set is the blank movie, so you must handle the "onGetMovie" event in the "initialize" script in swfkit to make it load the "main.swf", or it will only display the blank movie and stop. The following code shows how to do that Code:
Application.onGetMovie = function (movie) {
movie.value = getAppDir() + "\\movies\\main.swf";
return true;
}
|
|
|||
|
Hello,
I have choosen your 2. recommentation (If you do not want to change your actionscript code....) but on some point I have a probelm. Situation as following: 1./ I have made a blank swf = 00_Start.swf 2./ At SwfKit / Recources / I have add only one file = 00_Start.swf and set as Main Movie 3./ I have made a directory \movies and I copied following files there \movies\Main.swf \movies\Choosevideo.swf \movies\Kids.swf \movies\CananIntro.swf 4./ I have add following Initialize Script Application.onGetMovie = function (movie) { movie.value = getAppDir() + "\\movies\\main.swf"; return true;} 5./ I build movie = Standalone = True, Pack Recourses = TRUE After building I have following situation \swfKit.exe \movies\Main.swf \movies\Choosevideo.swf \movies\Kids.swf \movies\CananIntro.swf 6./ Run swfKit.exe When I run swfKit.exe it starts correct \movies\Main.swf and Main.swf runs with following code correct \movies\Choosevideo.swf loadMovie ("Choosevideo.swf", contenedor); _root.planetsystem = "kids"; At \movies\Choosevideo.swf = I have a link "Kids" which has following code: on (release) { loadMovie ("Kids.swf", _root.contenedor); loadMovie ("CananIntro.swf", _root.mc_video); } And here is my problem: When I click nothing happend. As Information: When I run \movies\Main.swf directly (I mean without swfKit) all works fine. Could you please help me with that problem. Thank you in advance, Walter Zeller |
|
|||
|
It seems to be a strange problem. Could you please send us your files(to support@swfkit.com)? We will help you resolve the problem.
|
|
|||
|
Hello,
As one of the fla includes a video.flv the files are big. Because of this I have download them under: ****** (approx 50mb) The zip file includes the same directory structur as we have including all *.fla. Thank you for your help. Walter Zeller |
|
|||
|
You have checked the "ignore left mouse button click" option in [application definition]->[interaction], so that your program cannot receive mouse clicks. If you change the option to "send to flash player], it will work well.
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|