0 Replies Latest reply on Apr 7, 2010 1:58 PM by SiHoop

    Passing variables to a swf

    SiHoop Level 1

      I'm trying to create a navigation file that is used to navigate to several applications. Each application is stored as a separate swf on the server. I need to send password data to each of the apps and I'm using the following code connect to each file and to send the password.

       

                  var variables:URLVariables = new URLVariables();
                  variables.connectionInfo = connectionPw
                  var urlRequest:URLRequest = new URLRequest("http://... filename.swf");
                  urlRequest.method = URLRequestMethod.POST;
                  urlRequest.data = variables;
                  navigateToURL( urlRequest );

       

      My problem is that I am unable to access the data when I am in the  connected file.I'm using

       

      password=Application.application.variables.connectionInfo

       

      but the variables are not showing up. How should I be doing this?

       

      Thank you!