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


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

var file:SaveFile = API.newSaveFile(group_name:String);
  • group_name - The name of the save group the file will be saved under.

This command creates a new file in the requested SaveGroup and returns the new SaveFile instance. Note: This feature is still in BETA, support is limited.