Page Contents
import com.newgrounds.API; API.setVersion(version:String);
- version - A string in the format "X.X.X" indicating the version of your current build.
- NEW_VERSION_AVAILABLEExample
import com.newgrounds.API; import com.newgrounds.APIEvent; var this_version:String = "1.0.1"; API.setVersion(this_version); function onNewVersion(event:APIEvent) { var url:String = event.url; var version:String = event.version; trace("Version "+version+" is avaliable at: "+url); } API.addEventListener(APIEvent.NEW_VERSION_AVAILABLE, onNewVersion);