Created
November 18, 2011 01:18
-
-
Save 9b/1375228 to your computer and use it in GitHub Desktop.
Basic SWF Shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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