Be a Supporter!

API.connect newVersion

  • 320 Views
  • 3 Replies
New Topic Respond to this Topic
dartosgamer
dartosgamer
  • Member since: Jun. 26, 2012
  • Offline.
Forum Stats
Member
Level 04
Game Developer
API.connect newVersion Sep. 7th, 2012 @ 04:06 PM Reply

How to I check the newVersion flag?


I gave it a shot and for some magical reason all is well. Thank you good sir.

Mattster
Mattster
  • Member since: Nov. 21, 2007
  • Offline.
Forum Stats
Member
Level 20
Game Developer
Response to API.connect newVersion Sep. 7th, 2012 @ 04:10 PM Reply

At 9/7/12 04:06 PM, dartosgamer wrote: How to I check the newVersion flag?
API.addEventListener(APIEvent.API_CONNECTED, onConnect);

function onConnect(e:APIEvent):void {
	if (e.success && e.data.newVersion) {
		trace("New Version!");
	}
}

newVersion should be in the API_CONNECTED event object.

dartosgamer
dartosgamer
  • Member since: Jun. 26, 2012
  • Offline.
Forum Stats
Member
Level 04
Game Developer
Response to API.connect newVersion Sep. 7th, 2012 @ 10:15 PM Reply

you sir are god


I gave it a shot and for some magical reason all is well. Thank you good sir.

IstvanOrosi
IstvanOrosi
  • Member since: Oct. 26, 2002
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to API.connect newVersion Sep. 17th, 2012 @ 07:52 PM Reply

At 9/7/12 04:10 PM, Mattster wrote: function onConnect(e:APIEvent):void {
if (e.success && e.data.newVersion) {
trace("New Version!");
}
}

Thank you!

I was looking for that info, too.


BBS Signature