开发者

How to save state of a .swf file?

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 !!


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


It is possible 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 possible so, to use it to close (kill) flash player 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 flash player. It might (should) exist a simple command line app to do it, and it is not necessary 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 possible!!


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.


I'm not familiar with Swiff player. Is the game being played in the browser? If so, you can save state in a cookie on the user's local computer. Otherwise, there's really no way to persist state locally. The only other option would be to use a server-based solution and save state in a database.


If you are using Swiff, which means you publish your flash app as a html-css-javascript file, then you can create a database and save it there with the help of php or asp.net. But when you want to publish it by swf file, you can reference here for further info (Saving state in AIR applications for iOS devices).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜