¿Cómo puedo guardar y recuperar información en adobe animate?
Hola a todos.
¿Cómo puedo guardar y recuperar información en adobe animate?
Por ejemplo, Guardar la puntuación en un videojuego y que no se pierda al cerrar el programa.
Muchas gracias.
Hola a todos.
¿Cómo puedo guardar y recuperar información en adobe animate?
Por ejemplo, Guardar la puntuación en un videojuego y que no se pierda al cerrar el programa.
Muchas gracias.
AS3
Save:
var test:SharedObject = SharedObject.getLocal( "test" );
test.data.user = "username";
test.data.psw = "password";
test.flush(); //提交保存
read:
var test: SharedObject = SharedObject.getLocal("test");
Alert.show(test.data.user);
Alert.show(test.data.psw);
as3 Reference address
Adobe Flash Platform * Shared objects
HTML5
localStorage.getItem(key)://Gets the value of the specified key local store
localStorage.setItem(key,value)://Value is stored in the key
localStorage.removeItem(key)://Deletes the value of the specified key local store
html5 Reference address
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.