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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flash-asp-appending querystring to swf.

Status
Not open for further replies.

bb7alt

Programmer
Sep 23, 2002
2
US
i have a flash-asp application that works inside of a asp-html program. the problem is that i have variables coming from flash and variables that i need from the program the flash app is running in. so i want all the values in one location (flash) which then i'll send them all out to a db.

//here i build a query string for flash to
//recieve the variables
<%
new_url=&quot;conf_bars.swf?&quot;
new_url=new_url+&quot;order_id=&quot;&request.QueryString(&quot;order_id&quot;)
new_url=new_url+&quot;&session_id=&quot;&request.QueryString(&quot;session_id&quot;)
new_url=new_url+&quot;&connection_id=&quot;&request.QueryString(&quot;connection_id&quot;)
new_url=new_url+&quot;&question_id=&quot;&request.QueryString(&quot;question_id&quot;)
new_url=new_url+&quot;&ip_number=&quot;&request.ServerVariables(&quot;REMOTE_ADDR&quot;)
new_url=new_url+&quot;&response_num=&quot;&request.QueryString(&quot;response_num&quot;)&&quot;&&quot;

//then call the embedded swf with the new_url
%>

<OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
codebase=&quot; WIDTH=&quot;400&quot; HEIGHT=&quot;400&quot;
id=&quot;conf_bars&quot; ALIGN=&quot;&quot;>
<PARAM NAME=movie VALUE=<%=new_url%>> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=<%=new_url%> quality=high bgcolor=#FFFFFF WIDTH=&quot;400&quot; HEIGHT=&quot;400&quot; NAME=&quot;conf_bars&quot; ALIGN=&quot;&quot;
TYPE=&quot;application/x-shockwave-flash&quot;
PLUGINSPAGE=&quot; </EMBED>
</OBJECT>

//this is a view-source piece, it has everything i want.

<PARAM NAME=movie VALUE=conf_bars.swf?order_id=1&session_id=445&connection_id=944862780&question_id=1049&ip_number=111.1.1&response_num=1&>

i'm not getting any of the values in flash from the querystring, the only one i get is the ip_number which i'm requesting ServerVariables. another thing is that if i put dummy variables in like; &order_id=blah&quot; flash will pick up the blah. thanks for any help.
 
figured out my question: when you append to a swf like movie.swf?variable=a, it will load the a in the _root level or _level0.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top