Actionscript 3 saving currentframe location to local hard drive?

六月ゝ 毕业季﹏ 提交于 2019-12-02 07:47:24

In your example it looks like it is already saving something to the shared object:

savedstuff.data.username = nameField.text;

Just replace it with the movie clip frame value instead (and probably under a different property name other then "username").

Then on load, there is another line where it loads the data:

nameField.text = savedstuff.data.username;

It would be the same way, except replace "username" with whatever property name you choose. Then you may have to parse into an int again and use it to restore progress however way you have it set up.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!