Jump to content
GreenSock

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

GreenSock FAQs

FAQS

We've compiled a bunch of the most frequently asked questions along with their answers here. If you don't find the answer here, search the forums, or contact us.

FAQs

Where do I get LoaderMax?

LoaderMax is included in the main AS3 GreenSock download zip.

What if I need to send variables to the server along with my request in a loader?

The first parameter of the various loaders (ImageLoader, XMLLoader, SWFLoader, MP3Loader, etc.) accepts either a simple String URL or a URLRequest. So if you want to pass data to the server, simply construct a URLRequest accordingly, like:

var request:URLRequest = new URLRequest("http://www.yourDomain.com/whatever.php");
var data:URLVariables = new URLVariables();
data.exampleSessionId = new Date().getTime();
data.exampleUserLabel = "label1";
request.data = data;
request.method = URLRequestMethod.POST;
var loader:ImageLoader = new ImageLoader(request, {name:"image1"});
×