Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Alex.A

Load echo answer

Recommended Posts

Is there the way to "load" server's echo answer? Like that:

var server_queue:LoaderMax = new LoaderMax({name:"server_queue", autoLoad:true, onChildComplete:serverAnswer, onError:serverError});
    server_queue.append(new DataLoader(http://server/id.php", {name:"get_id", format:"text"}));

function serverAnswer(e:LoaderEvent):void {
     trace(LoaderMax.getContent(e.target.name));
}
// id.php
<?php
 echo "123456";
?>
Link to comment
Share on other sites

Yeah, at first glance I would assume that would work.

Are you getting errors?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×