Querystrings .net and flash

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a variable of type string that have an url, for instance:

variable=http://localhost/test.aspx?id=1&user=2

I have a flash movie, and i would like that when a user click in the flash
goes to the page i talked in the previous paragraph

This is the tag of the flash movie....
<param name="movie" value="testez.swf?clickTAG=<%Response.Write(variable)%>">

My problem its that when i click in the movie i go to:

http://localhost/test.aspx?id=1

but the url is http://localhost/test.aspx?id=1&user=2

I dont know how could i put in the flash tag the &amp; to make it works...

What its the way to do this?
 
You probably have to double encode it so what actually gets to html is

<param name="movie"
value="test.swf?clickTag=http://localhost/test.aspx?id=1&amp;amp;user=2">

Or if that doesn't work, put the call in a javascript function

function clickTag() {
location.href="http://localhost/test.aspx?id=1&amp;user=2";
}

and in Flash just call this JS function.

HTH,

Sam


Hi,

I have a variable of type string that have an url, for instance:

variable=http://localhost/test.aspx?id=1&user=2

I have a flash movie, and i would like that when a user click in the flash
goes to the page i talked in the previous paragraph

This is the tag of the flash movie....
<param name="movie" value="testez.swf?clickTAG=<%Response.Write(variable)%>">

My problem its that when i click in the movie i go to:

http://localhost/test.aspx?id=1

but the url is http://localhost/test.aspx?id=1&user=2

I dont know how could i put in the flash tag the &amp; to make it works...

What its the way to do this?

B-Line is now hiring one Washington D.C. area VB.NET
developer for WinForms + WebServices position.
Seaking mid to senior level developer. For
information or to apply e-mail resume to
sam_blinex_com.
 
Hi Samuel,
thanks for your fast response..

The problem its that i dont use anymore Server.UrlEncode...

Thanks...
Josema.
 
Back
Top