Cross domain issue between AS3 and JSON

Hey all,

A very quick question …

Why when I test my fla file do I get the result I want but when I either open the swf file or upload it to my website does it stop working? The URL Request is for the same website as where the swf file is located so I don’t see the issue/

var myRequest:URLRequest = new URLRequest("http://dicehunters.co.uk/proxy.php?url=http://furydivine.net/api/hunt-dice/");var myLoader = new URLLoader();
myLoader.load(myRequest);
myLoader.addEventListener(Event.COMPLETE, onload);


function onload(evt:Event):void {
	
	var myData:Object = com.adobe.serialization.json.JSON.decode(myLoader.data);
}