Anyone know if its possible to send variable data to javascript functions from flash. I would like to make it so when a user clicks a button it sends data to a javascript function which in turn redirects the browser to a new location. The code for the javascript function kinda looks like this:
Code:
<script language="javascript">
function SC_submitForm(n) {
switch(n)
{
case 'search':
window.location =
"/SCcgi-bin/SoftCart.exe/scstore/scstore.html?L+scstore+%%SoftCart.sessionID%%";
break;
case 'products':
window.location =
"/SCcgi-bin/SoftCart.exe/scstore/shophome.html?L+scstore+%%SoftCart.sessionID%%";
break;
...
Basically i need it to switch on a variable and go to the correct location. Unfortunately i can't use 'getURL' in flash because i need the sessionid produced by the shopping cart software.
Thanks for any help!