Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash & ASP

Status
Not open for further replies.

exodus300

Programmer
Mar 22, 2002
262
AU
I can send variables from flash using for example [tt]getURL (&quot;page.asp&quot;, &quot;&quot;, &quot;GET&quot;);[/tt] and reference them in asp with [tt]<%= Request.QueryString(&quot;something&quot;) %>, but how can I get the 'query strings' into a flash file on the new page, eg. if the url is [tt] World[tt] how can I get Hello World into TestString (a variable in the flash movie) [similar to the Request.QueryString(&quot;TestString&quot;), but in Flash]?

Do you get me?
Thanx in anticipation :) [pc3]
 
Use loadVariables to access the ASP script. Thi simports the name/value pair. YOu can then manipulate or display the variable's value. For instance:

Place a dynamic text box with variable set to &quot;TestString&quot; on your stage and run this action...

loadVariables(&quot;a_page.asp&quot;,&quot;&quot;);//assuming the swf and ASP files are in the same location

You have to be careful with things like drawing data from remote sites as Flash 5 can only access pages within the same subdomain. Slainte

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top