How to pack multiple Swf files in one sis file using carbide C+
Hi All
Anybody know how to pack multiple Swf files in one sis file using carbide C+. I know how to pack one swf file only but I need to create a sis file which contain five Swf files. I know how to do so using SWF2go but I can't afford to buy the full version so I need to pack the files using carbide C+.
Regards
Abu Ahmed
Re: How to pack multiple Swf files in one sis file using carbide C+
Hi Abu-Ahmed,
Its simple. Follow these steps:
1- Create a folder with name "data" in your project directory (where we already have folders like src,inc,sis,group...). or it is possible that this folder exists by default if you are using Flash Lite Stub plugin for Carbide.
2- Copy all of your swf files in this "data" folder.
3- Suppose, that the swf files are first.swf,second.swf and third.swf.
4- Open the yourproject/sis/yourproject[B].pkg[/B] file and append these lines to it .
[CODE]"..\data\first.swf" - "!:\private\[COLOR="red"]EE0394F[/COLOR]\first.swf"
"..\data\second.swf" - "!:\private\[COLOR="red"]EE0394F[/COLOR]\second.swf"
"..\data\third.swf" - "!:\private\[COLOR="red"]EE0394F[/COLOR]\third.swf"[/CODE]
Where [COLOR="red"]EE0394F[/COLOR] must get replaced by your applications UID and obviously, the swf file names must be equal to the one that are placed in the data folder.Thats it. ;)
Regards,
Sajid Ali Anjum
Re: How to pack multiple Swf files in one sis file using carbide C+
Thank u a lot Sajid
It is working
Mohammed
Re: How to pack multiple Swf files in one sis file using carbide C+
This is a great thread and it is a big help for me.. I thank for it
One question referring to the same topic:
If I want to add a folder with files inside included, must I append only..:
"..\data\FolderName" - "!:\private\EE0394F\FolderName"
or must I append:
"..\data\FolderName" - "!:\private\EE0394F\FolderName"
"..\data\FolderName\File1InsideFolder.xml" - "!:\private\EE0394F\File1InsideFolder.xml"
"..\data\FolderName\File2InsideFolder.xml" - "!:\private\EE0394F\File2InsideFolder.xml"
...
please let me know
thank you
Re: How to pack multiple Swf files in one sis file using carbide C+
Hi 5800tita,
I dont think you can include a folder by just giving the location of the folder but instead you have to write down each file inside the folder to be copied like this :
[QUOTE]"..\data\FolderName\File1InsideFolder.xml" - "!:\private\EE0394F\File1InsideFolder.xml"
"..\data\FolderName\File2InsideFolder.xml" - "!:\private\EE0394F\File2InsideFolder.xml"[/QUOTE]
Hope it helps..
Best Regards,
SajiSoft
Re: How to pack multiple Swf files in one sis file using carbide C+
Hi all
i have problem hope you can help me.
I am making a game in Flash with 7 SWF (first.swf,second.swf,third.swf...) files and they are all linked together like this loadMovieNum("second.swf", 1);unloadMovieNum("second.swf");
and it works well on computer and on mobile(nokia 5800) but when i pack them in SIS file using Carbide c++ i get error when i try to start game
"can not find file Private/E351E1AA/second.swf".
i have added in PKG
"..\data\first.swf" - "!:\private\\first.swf"
"..\data\second.swf" - "!:\private\E351E1AA\second.swf"
...
please help
Hrvoje Dilber
Re: How to pack multiple Swf files in one sis file using carbide C+
Hi hrvoje986,
Here you are making mistake.
[QUOTE] have added in PKG
"..\data\first.swf" - "!:\private\\first.swf"
"..\data\second.swf" - "!:\private\E351E1AA\second.swf"
...[/QUOTE]
The path must be "!:\private\YOUR_APP_UID\your_flash_content.swf' not "!:\private\your_flash_content.swf' . So, according to your case, do something like this :
[QUOTE]"..\data\first.swf" - "![B]:\private\E351E1AA\first.swf[/B]"
"..\data\second.swf" - "[B]!:\private\E351E1AA\second.sw[/B]f"[/QUOTE]
Best Regards,
SajiSoft
Re: How to pack multiple Swf files in one sis file using carbide C+
Sorry it was a mistake in my writing,
but i did try to do it like this:
[QUOTE]"..\data\first.swf" - "!:\private\E351E1AA\first.swf"
"..\data\second.swf" - "!:\private\E351E1AA\second.swf" [/QUOTE]
and when i launch the game i get this massage:
" Unable to find file `Private/E351E1AA/second.swf` "
and the game won't start.
please help
Hrvoje
Re: How to pack multiple Swf files in one sis file using carbide C+
Hi,
I am also facing same kind of problem. Any help would be really appreciated.
Regards,
Elmi
Re: How to pack multiple Swf files in one sis file using carbide C+
Hi,
There are actually two type of launchers discussed numerous times which technique u r using to create a Symbian C++ stub for Flash Content. Are you using this way ?
[URL="http://wiki.forum.nokia.com/index.php/Create_Flash_Applications_with_Carbide.c%2B%2B"]Create_Flash_Applications_with_Carbide.c%2B%2B[/URL]
If no? then use it because its the only way that allow you to use reference path to load other swf files. If yes? then u r going fine there must be some issue with ur packaging. I request you to send me small testing files (by uploading it to some uploading site and providing a link here) that can be helpful in reproducing the error. So, i will take a look on this issue.
Best Regards,
SajiSoft
Re: How to pack multiple Swf files in one sis file using carbide C+
Hi there,
Please can someone help me. I'm having an issue with my packaging of my app:
I have two files that I want to package.
Mensa.swf and soundData.swf
I have added them to the .pkg files as the following:
"..\data\Mensa.swf" - "!:\private\EF0DE8E6\Mensa.swf"
"..\data\soundData.swf" - "!:\private\EF0DE8E6\soundData.swf"
I've added both these files within the data folder for the project.
I keep getting the error:
[B]Unable to find file 'Private/EF0DE8E6/soundData.swf[][][]'[/B]
On the device it displays 3 unknown characters as 3 squares after soundData.swf. - the [][][] represent squares above.
I've no idea what the issue is? Does anyone else? :)
Re: How to pack multiple Swf files in one sis file using carbide C+
Are you sure you haven't maybe copy/pasted the filename from somewhere and it includes some extra, perhaps invisible, characters in the end?
Re: How to pack multiple Swf files in one sis file using carbide C+
Hi there, thanks for the response. I've done checks for that and it is definitely not the case. It seems as thought there is a problem linking to the external swf that contains the images. However it works on the PC and Mac so its a bit useless that an error isnt flagged up. I'm having to start from scratch and try build it that way.
Re: How to pack multiple Swf files in one sis file using carbide C+
Hi again, I've managed to get the N96 to show no errors when it is packaged up to a sis file. However I do get an error saying not enough memory. I can get it on the n95 8gb but that phone doesn't like the fact I've got external swf files. I really don't understand? Has any one come across this as a problem?
Re: How to pack multiple Swf files in one sis file using carbide C+
Hello,
<shameless plug>
Maybe you can use SWF2Go to package and see if there are no errors when you run the files on your device. SWF2Go is a commercial product, but one can use it for testing and learning as well. i.e. in your case, you can check export PKG file option in SWF2Go and see if you are making any mistakes in defining path for your SWF files.
Once you are done testing that you did not make any hard coded paths in your SWF and the app is running fine when packaged with SWF2Go, you can then try to make your own custom package using Carbide.C++ or maybe you would like to buy SWF2Go ;)
</>
// chall3ng3r //