Skip to main content
Known Participant
Dec 7, 2017 9:31 AM UTC
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
    Dec 7, 2017 2:18 PM UTC

    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
    Dec 7, 2017 2:18 PM UTC

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

    Translate
    arvin0Author
    Known Participant
    Dec 11, 2017 2:00 AM UTC

    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
    Dec 11, 2017 3:22 AM UTC

    good to hear.

    Translate