Update flashvars and reload flash with jQuery

前端 未结 5 822
花落未央
花落未央 2020-12-29 11:45

I would like to update the flashvars value argument to view another video:


I foun

5条回答
  •  情话喂你
    2020-12-29 12:27

    If you want to change the flash vars and reload the Flash, you should just remove the SWF from the DOM and embed it again with your new vars (using SWFObject or whatever other method suits your fancy!).

    If you want to change the flash vars without reloading the Flash, you're out of luck: there's no officially-supported way. In this case, you should use ExternalInterface to call ActionScript methods that update your values from JavaScript.

提交回复
热议问题