How do I view the attached update.php result in my Flash MovieClip as I have tried numerous attempt and failed every one
Hope someone can help plz
Thanks
Steven
[AS] import flash.events.Event; import flash.net.URLRequest; import flash.net.URLVariables; import flash.net.URLLoader; var returnBody:String = ""; var request:URLRequest = new URLRequest("update.php?xx=1"); var getVariables:URLLoader = new URLLoader(); getVariables.dataFormat = URLLoaderDataFormat.VARIABLES; getVariables.addEventListener(Event.COMPLETE, completeHandler); getVariables.load(request); function completeHandler(event:Event):void { dCounter.condenseWhite = true; dCounter.textField.opaqueBackground = 0x333333; dCounter.htmlText = "" + request; } dload01.addEventListener(MouseEvent.MOUSE_OVER, dOver); dload01.addEventListener(MouseEvent.MOUSE_OUT, dOut); dload01.addEventListener(MouseEvent.CLICK, dClick); function dClick (e:MouseEvent):void { navigateToURL(new URLRequest("download.php?file=temp_01.zip"), '_self'); } function dOut (e:MouseEvent):void { dload01.gotoAndPlay("out"); } function dOver (e:MouseEvent):void { dload01.gotoAndPlay("over"); } [/AS]
update.php