Skip to main content
Known Participant
December 7, 2017
Answered

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

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

    This topic is closed to new replies. Start a new post to keep the conversation going.
    kglad
    kgladCorrect 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.

    3 replies

    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.

    Translate
    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.

    Translate
    kglad
    Community Expert
    Community Expert
    December 11, 2017

    good to hear.

    Translate