00:00
00:00
Newgrounds Background Image Theme

Scottistrash 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: loadSaveFile

Usage

import com.newgrounds.API;
import com.newgrounds.SaveGroup;
import com.newgrounds.SaveFile;

API.loadSaveFile(save_id:uint, load_contents:Boolean=true);
  • save_id - The numeric ID of the save file.
  • load_contents - If true, the file will load it's contents automatically.

This command will acquire information from the server to generate a SaveFile instance.

This command will fire a FILE_INITIALIZED event when the SaveFile instance is created.

If load_contents is true, this command will also fire a FILE_LOADED event when the file's contents have loaded. Note: This feature is still in BETA, support is limited