Jump to content

View PHP Results in Flash as3


Recommended Posts

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





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);

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
function dOver (e:MouseEvent):void



Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.