var url:String = "return.php"; var reqURL:URLRequest = new URLRequest(url); var loader:URLLoader = new URLLoader(reqURL); loader.addEventListener(Event.COMPLETE, handleComplete); loader.dataFormat = URLLoaderDataFormat.VARIABLES; function handleComplete( event:Event):void { var loader:URLLoader = URLLoader(event.target); trace(loader.data["c"]); } var url:String = "return.php"; var reqURL:URLRequest = new URLRequest(url); var loader:URLLoader = new URLLoader(reqURL); loader.dataFormat = URLLoaderDataFormat.VARIABLES; trace(loader.data["c"]); var url:String = "return.php"; var reqURL:URLRequest = new URLRequest(url); var loader:Loader = new Loader(); loader.dataFormat = URLLoaderDataFormat.VARIABLES; loader.load(reqURL); trace(loader.data["c"]); import flash.events.Event; import flash.net.*; var myRequest:URLRequest = new URLRequest("http://newmedia.emerson.edu/~joshua_hoekwater/return.php"); var myLoader:URLLoader = new URLLoader(); var myVariables:URLVariables = new URLVariables(); myRequest.method = URLRequestMethod.GET; myRequest.data = myVariables; function onLoaded(evt:Event):void { trace(myLoader.data); } myLoader.addEventListener(Event.COMPLETE, onLoaded); myLoader.load(myRequest); stop();