Skip navigation
mrweb2010
Currently Being Moderated

how to exchange values between ASP and Flash?

Mar 19, 2012 12:45 PM

Hello, I want to exchange values between ASP and Flash. I don't want to send it as a querstring like :

 

myswf.swf?var1=value.

 

I don't want my user to see or edit this value.

 

Thanks

 
Replies
  • kglad
    61,990 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 19, 2012 1:40 PM   in reply to mrweb2010

    use the urlloader class.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 20, 2012 7:27 AM   in reply to mrweb2010

    Here's a simple example of sending data.

     
    |
    Mark as:
  • kglad
    61,990 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 20, 2012 7:27 AM   in reply to mrweb2010

    yes, use the urlvariables class to create an urlvariables instance, assign properties/values to that instance and then assign your urlrequent's variables property to be your populated urlvariables instance.  for example:

     

    var urlloader:URLLoader=new URLLoader();

    var urlReq:URLRequest=new URLRequest("youraspfile.asp");

    var urlVar:URLVariables=new URLVariables();

    urlVar.var1=value1;

    urlVar.var2=value2;

    urlReq.variables=urlVar;

    urlloader.load(urlReq);

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points