Skip to content

Instantly share code, notes, and snippets.

@9b
Created November 18, 2011 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 9b/1375228 to your computer and use it in GitHub Desktop.
Save 9b/1375228 to your computer and use it in GitHub Desktop.
Basic SWF Shell
package
{
import flash.display.MovieClip;
import flash.display.SimpleButton;
import flash.display.Shape;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.net.*;
import flash.xml.XMLDocument;
import flash.events.Event;
import flash.events.ErrorEvent;
import flash.events.HTTPStatusEvent;
public class Callback extends MovieClip
{
public function makeReq()
{
var url:String = "http://www.9bplus.com/test.php"
var variables:URLVariables = new URLVariables();
variables.test = "Something";
var request:URLRequest = new URLRequest(url);
request.method = "GET";
request.data = variables;
try {
sendToURL(request);
}
catch (e:Error) {
// handle error here
}
}
public function Callback()
{
makeReq();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment