How to save state of a .swf file?

14,288

Solution 1

From a programming standpoint the only way that you can save the state of a flash game is if the developer wrote code to allow state to be saved.

If I understand you right, it sounds like you are looking to duplicate the behavior you might find in, for instance, a super nintendo emulator - but that level of control there, that allows you to save state in any given ROM, is operating at the runtime level.

Unless you write your own Flash Player that gives you the ability to save state in a similar way you're not going to find the same functionality.

I hope that makes sense, let me know if you have any other questions.

Solution 2

Is there any way to save the state of the swf file ??

Yes, there is actually a very simple solution the requires no programming skills or entering manual commands:

Run the game on a virtual machine and save the state. I've had the same problem and then had the idea to use VirtualBox' "Snapshot" function.

Get the software at virtualbox.org

Solution 3

It is posible to save the state of a process and load it later. There is an appliction, SmartClose (freeware) that save snapshot of the system and kill applications process to temporarily gain resources: Look at it!

It is posible so, to use it to close (kill) flashplayer or web browser, and restore the snapshot later. The application is intended to close all programs, but it can be customized to close just the flashplayer. It might (should) exist a simple command line app to do it, and it is not necesary to kill the process, just save the snapshot (C:\save flashplayer.exe snap1.sav for example). I don't know how to program such thing, but it is posible!!

Share:
14,288
user646093
Author by

user646093

Updated on June 19, 2022

Comments

  • user646093
    user646093 almost 2 years

    I have some swf files (games) which I play using Swiff player...

    Is there any way to save the state of the swf file ?? so that I don't have to start the game all over from level 1 again !!

  • user646093
    user646093 about 13 years
    It looks you are right (the state of the game is saved in the .swf file itself)... I have two games 1. 'forest temple.swf' and 2. 'damn birds2.swf' .... 1. forest temple has the ability to save the state of the game but only if it remains in the same directory (folder).. if you move it to other folder then the game starts from level 1 again... but if you move back to the original directory the game state is reloaded !!!! ... I cleaned the temp folder and searched for any hidden files in the game folder (there were none) ... and then restarted the game... the game state was preserved !!!
  • user646093
    user646093 about 13 years
    (which confirms that game state is saved in the swf file itself and with the directory name !!!)... 2. damn birds2 doesnt save the game state no matter what I do .... :( ..... What I dont understand is why do people create games having multiple levels having no save options and knowing that the user will have to play for days on a continuous stretch to complete the game !!!!!!!????????
  • Myk
    Myk about 13 years
    Dunno man, developers make all kinds of decisions in the process of building a game - maybe they originally meant for it to be saveable but ran out of budget, maybe they expected people to be able to play through it faster. I mean look at Mario Brothers, right? No saving there!
  • user646093
    user646093 about 13 years
    Hmmm....good point...though seeing so many games having multiple level but no save option, it seems like a new trend from the developers or maybe the same developer is making the mistake again and again!! :) LOL