Be 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