HTML button/link to POST vars to Flash?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Head In A Pan
    New Member
    • Mar 2007
    • 25

    HTML button/link to POST vars to Flash?

    Hello!

    Here is something I assume is relatively simple but have never bothered to find out -
    I'm not finding the answer anywhere!

    All I am trying to do is this:

    Have a thumbnail image acting as a button - sitting on my HTML page.

    When the user clicks it, the button uses the POST method to send a specified variable.

    I think I can handle the variable from there using javascript - which will talk to my embedded swf.

    Can anyone point me in the right direction? :)
  • Head In A Pan
    New Member
    • Mar 2007
    • 25

    #2
    Update vars sent to Flash WITHOUT 'GET' or loadvars?

    OK - could somebody simply tell me if this is even possible -


    My main.swf is embedded in my index.html page.

    It loads external swfs in ONLY WHEN a HTML button, sitting outside my main.swf but ON index.html is clicked - posting it's variable/value to my swf?

    So what I am saying is - Flash will not be functioned to do it's loadVars magic, I want Flash to be ready & waiting for a new variable to arrive at any given time - THEN action a function depending on the value of the variable.

    Does this make sense to anyone? ;)

    I'm just not sure on the limitations of Flash - the program where I thought absolutely ANYTHING is possible.

    If it's not possible then I will go around this problem another way.

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      You can use the submit() method to submit the form.

      The variable can be a hidden element.

      Comment

      Working...