User Tag List

Results 1 to 5 of 5

Thread: zip object help

  1. #1
    No Products Registered

    Join Date
    Feb 2009
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    zip object help

    Hi all..
    i trying protect my external "png" file from modify with zip archive, i tried using zip object extension, i saved my application file beside the zip file called "abc.zip" i successed in loading it by:

    startframe >>> zip>addfile>Apppath$+"abc.zip">ok

    my problem: what should i do after that to unzip and use the file png to put it on the stage..?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: zip object help

    What are you trying to achieve with this? PNG files are already compressed.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: zip object help

    I did this to protect my files in an app I was making. It worked very well.

    1. Add all of your images and data files to a folder and use Winrar or something to zip it into a zip archive with a password. (Do this outside of MMF2)
    2. In MMF2, add a "Start of Frame" event. Under the Zip Object, add the following two lines:

    "Open Zip: AppPath$+"Your Folder Name Here.zip"
    "Unzip To: AppPath$

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  4. #4
    No Products Registered

    Join Date
    Feb 2009
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: zip object help

    thanks stephen1980, unzip worked well, but still problem, when i trying import PNG file, which unziped by MMF2 the message appear "Unknown Format" ...!


  5. #5
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: zip object help

    I don't think MMF2 can read the files without unzipping them first. Just do as mentioned above, and then use the File Object and the end of your application to remove all the files that you unzipped.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


Posting Permissions

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