Controlling a Flash Player using JavaScript

后端 未结 2 1086
自闭症患者
自闭症患者 2021-01-02 17:49

I would like to be able to control a flash movie stream using JavaScript in the same pages as the flash component including:

  • Play and Pause stream
  • Cha
相关标签:
2条回答
  • 2021-01-02 18:20

    The SWF needs to expose functions to Javascript using the ExternalInterface API from the Flash libraries. This allows Javascript to call into Flash and vice-versa.

    http://livedocs.adobe.com/flex/3/langref/flash/external/ExternalInterface.html

    0 讨论(0)
  • 2021-01-02 18:40

    "Is this possible without modifying the SWF that is currently used to play the movie" .. it's only possible if the SWF you are using implements the ExternalInterface with documented functions suitable to your needs - as described by cliff.meyers ... otherwise, .... no

    0 讨论(0)
提交回复
热议问题