00:00
00:00
Newgrounds Background Image Theme

JSkell95 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become 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