Be a Supporter!

Browse Sections


Newgrounds Wiki: saveLocal

Usage

import com.newgrounds.API;
API.saveLocal(var_name:String, var_value:*);
  • var_name - The name of the variable to save
  • var_value - The value of the variable being saved.

This method lets you save a variable to an encrypted SharedObject, letting you store information like a cookie with added security against hacking.

To retrieve these values, use the loadLocal command