Controlling a Flash Player using JavaScript

后端 未结 2 1123
自闭症患者
自闭症患者 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

提交回复
热议问题