00:00
00:00

Our goal is for Newgrounds to be ad free for everyone! Become a Supporter today and help make this dream a reality!

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