3 Replies Latest reply on Aug 24, 2009 10:14 PM by _Albertx_

    Retrieve request parameters in swf.

    kgladwin Level 1

      Hi,

       

      From my swf file I need to pass a parameter to amother swf file. I'm setting the parameter in request. How do I retrieve the parameter in the destination swf.

       

       

       

       

       

       

       

       

       

      var

       

       

      var request:URLRequest = new URLRequest(url);

       

       

      var variables:URLVariables = new URLVariables();

       

       

       

       

      try

      {

      request.method = URLRequestMethod.POST;

      variables.userName = userId.text;

      request.data = variables;

      navigateToURL(request,

      "_self");

      }

       

       

      catch

      (e:Error) {

       

       

      // handle error here

      }

       

      Main.html has an embedded swf file. I need to get the data from the request.

       

      url:String = "/test/client/main.html";