Skip to main content
Known Participant
December 7, 2017
Answered

js怎么传参给带HTML包装器的swf?

  • December 7, 2017
  • 1 reply
  • 334 views

我用animate cc 2018发布了一个带HTML包装器的swf;我怎么在html里用js传参到swf里;

    This topic has been closed for replies.
    Correct answer kglad

    you can use the externalinterface class to communicate between actionscript in your swf and js in the embedding html.

    1 reply

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    December 7, 2017

    you can use the externalinterface class to communicate between actionscript in your swf and js in the embedding html.

    arvin0Author
    Known Participant
    December 11, 2017

    i konw and have used the externalinterface api,but  the it's not work,then i get the other function,added some environment,it's ok now.

    kglad
    Community Expert
    Community Expert
    December 11, 2017

    good to hear.