Skip to main content
Participant
September 1, 2006
Question

passing variable from html to flash

  • September 1, 2006
  • 2 replies
  • 293 views
Hi I have built a flash movie with buttons...depending on which button is clicked it loads a different flash movie due to variable setting. I am able to set and call the variable s in flash fine
But now i have an html page that needs to blend with this flash...So i created buttons on my html page to look like the flash...But when i click a certain button i want it to know the variable going into the flashpage and load correct movie...not just go to the beginning of my flash movie then user will have to choose the button again...
How can i do this?
thank you in advance
reno
This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
September 2, 2006
you're welcome.
kglad
Community Expert
Community Expert
September 2, 2006
you can append a variable/value to a url by concatenating the url with:

?yourVariableName=yourVariableValue
Participant
September 2, 2006
it did not work for me...?

i have this on the button in html page that pulls up a new html page with my flash movie in it that will load correct movie depending on variable:
indexNew.html?b=5

as my global variable is b and value is 5
thanks for any help on this
Participant
September 2, 2006
well, between the post to forum and this link below i got this to work for me
Just needed to know about the javascript....along with putting the value/variable in url as posted..thanks
http://noscope.com/journal/2003/12/query_string
thanks for replying with suggestions!
reno