00:00
00:00
Newgrounds Background Image Theme

UVPartyBomb 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: setVersion

Page Contents

import com.newgrounds.API;
API.setVersion(version:String);
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);