I have a JavaScript that generates a URL. The only thing left is to pass that “url” variable into Flash. I’m not sure if this is the right method I need to use or not, but these are the lines of ActionScript I’ve been working on…
The JavaScript and Flash are both in index.html. I’ve tried several variations to get it to work, but still no luck. Anyone know what the ActionScript code should be to make Flash read the url variable and use that location (like a HTML form) to post it?
Well first of all you don’t need post in there. But I’m not all that sure why it wouldn’t work even with the post there. loadVariables should take every variable on the html and load it into Flash.
double check the addressing, double check your Java script
I have a JavaScript alert() showing the correct URL. I think the breaking point is Flash isn’t getting the variable (since I tried a test to have Flash output the URL in a text field and nothing is displayed). Any ideas?
I thought that could be it too. So I tried changing it (to “posturl”), but it didn’t seem to make a difference. Though I tried again after you mentioned it just to be sure (using “urlvar”) and still no luck.
I’m not all that handy with the javascript thing. I’m hoping that one of my contemporaries will jump in here soon. There are quite a few on this board who have more experience with this sort of thing than I.