I have a flash music player that I would like to accept a parameter via a button click on a website. I’m thinking I could do this with javascript but not sure how.
Does anybody have any sample code for both the javascript and what I would use to request the variable inside my actionscript code?
Thanks, I appreciate it!
http://painteddigital.com/2008/calling-flash-as3-functions-from-javascript/
In the flash add a callback for the javascript function:
In the html/js call it:
Calling JS Function From Flash: getURL(“javascript:myfunction();”);