• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 27. Communicating with the Host ... > JavaScript Methods for Flash Objects

JavaScript Methods for Flash Objects

The Flash plug-in and ActiveX control have built-in methods that can be accessed by JavaScript. For the Flash methods to work in JavaScript, the <OBJECT> must contain the ID attribute, and the <EMBED> tag must contain the NAME attribute. The values should be the same in both to avoid compatibility problems. It’s important to note that with all the capabilities of Flash 5, it’s going to be pretty rare that you need to use Flash methods. That doesn’t mean that you won’t ever use them, but most of these capabilities are more easily handled inside Flash. They’re included here for those of you who are still creating movies in Flash 5 that need to be compatible with Flash 4.

After the Flash plug-in has loaded, the following standard methods are accessible to client-side JavaScript:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint