So how does JavaScript works in the new Flash Pro CS6?
To call JavaScript you are using the new interface:
/* js
alert("Hello from JavaScript");
*/
But how do you call to flash from JavaScript?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out this quick tutorial, it worked for me: http://circlecube.com/2010/12/actionscript-as3-javascript-call-flash-to-and-from-javascript/
That tutorial is fairly old (before CS6), so it explains how to call js from flash and vice versa. The essential part that you want is this actionScript: