mardi 11 avril 2017

How do I passing the data to from flash(.swf)

This is my ActionScript3. If I clicked 'do4', I want to pass data to But It is not working. I don't know why it is not working. please help me.

do4.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_9);

function fl_MouseClickHandler_9(event:MouseEvent):void
   var scriptRequest:URLRequest = new URLRequest("/Default.aspx");
   var scriptLoader:URLLoader = new URLLoader();
   var scriptVars:URLVariables = new URLVariables();


   scriptVars.Location = "Incheon";

   scriptRequest.method = URLRequestMethod.POST; = scriptVars;


   function handleLoadSuccessful($evt:Event):void{
        trace("Message sent.");
   function handleLoadError($evt:IOErrorEvent):void{


This is code from I have debugged many times. But I have no request about Location data. How do I get the data from flash?

 public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
        string str = Request.QueryString["Location"];


Aucun commentaire:

Enregistrer un commentaire