Log in

View Full Version : Sending Flash Choices to HTML Forms



sproink1
04-28-2010, 04:23 PM
I have created a flash movie whereby a customer chooses a color for one of our products.
I want to design script that loads the choice into an html form with javascript.
The page can be found at http://www.asanaclimbing.com/disturbedEnlarge.htm

The flash movie is operating, but does not communicate with the html forms.
I have tried some javascript to get it to work, but to no avail.
Presently my customers have to choose the color in the Flash movie and then again in the html code which is a pain.
Can anyone point me in the right direction?

corbo950
04-28-2010, 06:43 PM
You can use the flash ExternalInterface.call() to call a JS function and pass vars to that function .... the documentation is here (http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html)

sproink1
04-28-2010, 09:18 PM
Thanks so much,
Do you have a good resource for getting the variables from the javascript to the html forms?

BLiZZaRD
04-28-2010, 09:20 PM
Adobe LiveDocs (http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html)

corbo950
04-29-2010, 12:46 AM
I think i understand what your asking.... here (http://mentaljetsam.wordpress.com/2008/06/02/using-javascript-to-post-data-between-pages/) is a link to a page on how to do a Javascript POST.... if this is not what you mean please just let me know