Forum Moderators: open

Message Too Old, No Replies

Ajax to Flash

passing variables to a flash movie without refreshing page

         

Josefu

9:30 pm on Apr 11, 2007 (gmt 0)

10+ Year Member



I was feeling quite pleased with myself after putting together a hard-linked-yet-ajax-able-no-reload-needed page until discovering that, to send new variables to a flash movie, one must refresh the page, or at least have two flash movies speaking betwixt themselves (pausing - there may be a solution there). This made either all my ajax work or my flash movie pointless.

The flash movie is a secondary 'subtitle' banner, and I would like it to change with the changes in an html menu (highlighted category) to its left. Would there be some simple way of communicating that ajax-ed menu change to the flash movie without refreshing the page?

There may be a solution in 'refreshing' a hidden flash movie containing a variable that will be passed to the main flash movie - still thinking on that one.

Funny that with all the time that both ajax and flash have been around, I haven't seen this problem come up yet. Have I answered my own question? Or is there a simpler way and I'm overlooking something? Thanks in advance.

[edited by: Josefu at 9:31 pm (utc) on April 11, 2007]

Josefu

11:08 pm on Apr 11, 2007 (gmt 0)

10+ Year Member



I may have it! I perhaps should use the 'setVariable' javascript function.

Apologies, I'm new to this.

Josefu

6:45 am on Apr 12, 2007 (gmt 0)

10+ Year Member



...not only that, I was thinking way past the problem: the javascript variable should be sent to the flash movie before (or with) the ajax 'refresh' order! I was thinking to make flash pick up the ajax return. How silly of me, now that I see it.

Sorry for taking your time and thread space.