AS3 parsing JSON

Hey all,

I’m currently trying to use AS3 to check a JSON file found at : http://furydivine.net/api/hunt-dice/active

I want to check if players are online and if they are playing on xbox I want to use this to trigger an AS3 event …

So far I have this in an empty AS3 file …

import com.adobe.serialization.json.JSON;


var myRequest:URLRequest = new URLRequest("http://furydivine.net/api/hunt-dice/active/");
var myLoader = new URLLoader();
myLoader.addEventListener(Event.COMPLETE, onload);
myLoader.load(myRequest);


function onload(evt:Event):void
{
var myData:Object = JSON.decode(myLoader.data);


trace(myData.player[0].playerName);
}