A simple Flash bridge for preforming Flash HTTP requests with JavaScript.
FlashHTTPRequest.open(HTTP_METHOD,URI,BODY,JS_CALLBACK);<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"/><scriptsrc="flashhttprequest.js"></script><script>// This function will be called when the Flash bridge has been loaded// Note that you can only request from sites that allow you to via their /crossdomain.xml policyfunctiononhook(){FlashHTTPRequest.open('GET','http://www.example.com/','','alert');FlashHTTPRequest.open('POST','http://www.example.com/','var1=test&var2=test2','post_receiver');}// Response data is passed as an argument to the callback definedfunctionpost_receiver(response){console.log(response);}</script></head><body><divid="flashBridge"></div></body>