×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    8

    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
    Last edited by abu-ahmed; 2011-01-31 at 20:31.

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    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.pkg file and append these lines to it .
    Code:
    "..\data\first.swf" - "!:\private\EE0394F\first.swf"
    "..\data\second.swf" - "!:\private\EE0394F\second.swf"
    "..\data\third.swf" - "!:\private\EE0394F\third.swf"
    Where EE0394F 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

  3. #3
    Registered User
    Join Date
    Jan 2011
    Posts
    8

    Re: How to pack multiple Swf files in one sis file using carbide C+

    Thank u a lot Sajid
    It is working

    Mohammed

  4. #4
    Registered User
    Join Date
    Mar 2011
    Posts
    1

    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

  5. #5
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    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 :
    "..\data\FolderName\File1InsideFolder.xml" - "!:\private\EE0394F\File1InsideFolder.xml"
    "..\data\FolderName\File2InsideFolder.xml" - "!:\private\EE0394F\File2InsideFolder.xml"
    Hope it helps..

    Best Regards,
    SajiSoft

  6. #6
    Registered User
    Join Date
    Apr 2011
    Posts
    2

    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

  7. #7
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Re: How to pack multiple Swf files in one sis file using carbide C+

    Hi hrvoje986,
    Here you are making mistake.
    have added in PKG
    "..\data\first.swf" - "!:\private\\first.swf"
    "..\data\second.swf" - "!:\private\E351E1AA\second.swf"
    ...
    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 :
    "..\data\first.swf" - "!:\private\E351E1AA\first.swf"
    "..\data\second.swf" - "!:\private\E351E1AA\second.swf"
    Best Regards,
    SajiSoft

  8. #8
    Registered User
    Join Date
    Apr 2011
    Posts
    2

    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:
    "..\data\first.swf" - "!:\private\E351E1AA\first.swf"
    "..\data\second.swf" - "!:\private\E351E1AA\second.swf"
    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

  9. #9
    Registered User
    Join Date
    Apr 2010
    Posts
    44

    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

  10. #10
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    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 ?
    Create_Flash_Applications_with_Carbide.c%2B%2B
    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

  11. #11
    Registered User
    Join Date
    Sep 2011
    Posts
    9

    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:

    Unable to find file 'Private/EF0DE8E6/soundData.swf[][][]'

    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?
    Last edited by kyazdani; 2011-10-06 at 17:49.

  12. #12
    Regular Contributor
    Join Date
    May 2007
    Location
    Finland
    Posts
    134

    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?

  13. #13
    Registered User
    Join Date
    Sep 2011
    Posts
    9

    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.

  14. #14
    Registered User
    Join Date
    Sep 2011
    Posts
    9

    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?

  15. #15
    Nokia Developer Champion
    Join Date
    Feb 2005
    Location
    Karachi, Pakistan
    Posts
    277

    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 //
    Faisal Iqbal (skype: chall3ng3r)
    Flash Mobile Specialist | Orison Technologies
    _____________________________________
    blog: F·L·A·S·H·I·S·M
    swf2go: www.swf2go.com

Similar Threads

  1. How to pack two sis files inside single installable file?
    By rohanwaugh in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 9
    Last Post: 2009-07-22, 06:42
  2. how to create sis file without using Carbide C++ IDE
    By somnathbanik in forum Symbian
    Replies: 8
    Last Post: 2009-05-31, 09:59
  3. how to pack jar jad and a sis file in one single sis file
    By antas512 in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 1
    Last Post: 2009-05-28, 22:15
  4. Replies: 1
    Last Post: 2009-05-28, 15:36
  5. how-to create a DRM for sis file who contain swf
    By simone.pallaro in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2008-12-11, 21:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •