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

getting variable from Url to use in movie

Status
Not open for further replies.

womblies

Programmer
Feb 28, 2003
62
IE
hey

i have a flash movie and i want to get a variable into to movie depending on what link that the user clicks on in a jsp page, this varible will then be used to decide what menu items to show in the flash movie

example of jsp page with links
</html>
<tr>
<td class=&quot;topic&quot;>
<a href=&quot;FirstbaseLogin.jsp?pTOPIC=ADMIN&pGARDA=Administration&quot; target=&quot;topFrame&quot;>Administration</a><br>
<tr>
</td>
</tr>
<tr>
<td class=&quot;topic&quot;>
<a href=&quot;FirstbaseLogin.jsp?pTOPIC=EVENTS&pGARDA=Events&quot; target=&quot;topFrame&quot;>Events</a><br>
<tr>
</td>
</tr>
</table>
</body>
</html>

this is the page that the users and will click on to enter (can have more than 2 options)what i want to take into the flash movie is the pTOPIC=EVENTS or pTOPIC=ADMIN from the url, this then decides what menu to show

the flash movie uses remoting to dynamiclly create the menu items for the user
 

Regards,

cubalibre2.gif
 
query string should not be used with remoting

use the results object to access your variable

_______________________________________
You know you're old if you can remember when bacon, eggs and sunshine were good for you
 
document.write(' <PARAM NAME=movie VALUE=&quot;flash/mymovie.swf?var='js var here'&quot;> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> ');

whenever the variable &quot;var&quot; is present in the url, it will pass into the swf
cheers
paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top