|
|||
|
Hi!
I want to convert swf to exe. I did it like they told me to in the tutorial for making a single exe file. Now I have a problem.. When the movie loads, my pictures don't appear.. I guess I forgot something in the initialize script (I'm not keen on Ffish Scripting :-[) So can someone please help me with that? I already have this: Code:
//Initialize
var res_path = getAdditionalFile ;
Application.setBasePath(res_path);
loadMovie("main.swf", 1);
loadMovie("Movies\\thumbnail_final.swf", 2);
loadMovie("Movies\\contact.swf", 3);
return true;
-My xml-files named: content.xml, images.xml, xmlphoto.xml (folder ata)-My pics: 18 of them.. (folder: Pictures) -My movies named: main.swf, thumbnail_final.swf contact.swf (folder: Movies) Any help is welcome! Thanks!! Eline. |
|
|||
|
Maybe the option Pack Movies is selected.
Then your movie is compressed and unpacked in a temp folder when the movie runs. Therefore it can not find the files needed in the temp folder. You have several options. option1 - uncheck the option (it's in the Movies section of SWFkit) and recompile your exe. I mostly use this option. This means that the additional files are NOT packed in the exe file option2 - leave the pack movies option checked - rebuild the file structure of the files needed in the attachment section of SWFkit. that is: make the same folders and add the files. - check the pack additional files option - recompile your exe Its a bit more work, but the result is you have one exe-file where all the addiotional files are packed About your scripting: 1.the loadmovie has to be from the flashplayer object like FlashPlayer.loadMovie If you're using it to load the main movie I think your wrong, you just have to add it to the movie section. 2. The flashplayer is created after the initialize script has returned true, so you can't just pass these loadmovie commands in the initialize script. |
|
|||
|
@ meester
Pack movies is selected.. I tried your second option and the result was the same.. he loads the movie but when I hit a tab (the second movie is supposed to open now) I see the flash stucture but no pictures. I first thought that the links were not right anymore cause I replaced the files more than once.. so i did it al over again in the original folder, in which I made my flash project, with no progress. I used the code to load the movie.. But i also added it to the movie section.. I really need help with that script i think! ![]() Another question: is it really necessairy that you devide Application (Attachment option) into Movies, Sounds, Pictures, Data? Many thanks. Eline. |
|
|||
|
Hi again.
I think I know what the problem is. My XML ensures that the pictures open in the swf document.. So when I put those XML files in the right place @ SWFkit, it has to work isn't it? But where do I have to place them exactly? And do i also need a script? P.S.: I've got 2 movies.. 1: main movie 2: after click in main movie this one opens I just use the scripts for the second movie cause there are my pictures. Don't know if this was usefull information. Thx again! Eline |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|