JavaScript & Flash


Can someone give me a quick example of how to call a JavaScript function from Flash and call a Flash gotoAndPlay function from JavaScript?

Thanks much!
~ C
Who is Participating?
techbieConnect With a Mentor Commented:
Flash has a built in mechanism to call JavaScript functions by using the FSCommand action.  There are several requirements for FSCommand to work:

    *      JavaScript must be enabled in the browser.  If not, then the FSCommand will fail (most likely it will do nothing).
    *      Always specify both EMBED and OBJECT tags.  When putting the Flash movie inside a html page, use both tags.  This is because the OBJECT tag is only recognized by Netscape; and the EMBED tag is only recognized by Internet Explorer (as of version 4)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.