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


import com.newgrounds.API;
import com.newgrounds.SaveGroup;
import com.newgrounds.SaveGroupQuery;

var file:SaveFile = API.newSaveQuery(group_name:String);
  • group_name - The name of the save group you want to search in.

This command creates a new SaveGroupQuery instance for the requested SaveGroup.

The SaveGroupQuery class is used to define custom search parameters for loading lists of SaveFiles.

Executing a SaveGroupQuery will trigger a QUERY_COMPLETE event. Note: This feature is still in BETA, support is limited.