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: loadLocal

Usage

import com.newgrounds.API;
var var_value:* = API.loadLocal(var_name:String);
  • var_name - The name of the variable to load

This method lets you load a variable to an encrypted SharedObject. These values are very hard to hack making this an ideal place to store information that may be linked to user accounts such as high scores.

To save an encrypted value, use the saveLocal command