Skip to main content
SiUsPlauTancat
Known Participant
May 19, 2020
Question

Load an external JS in Canvas html5

  • May 19, 2020
  • 1 reply
  • 579 views

Hello Community,

i am stucked with this problem:

 

i have a movieclip and i have 2 JS (working) :

i would like to load inside my movieclip my 2 JS.

Something like this

If ( condition) load JS1 (if needed unload JS2)

else load JS2 (if needed unload JS1)

 

this was very easy with AS3 but i can not find the right way to do with html5.

Thanks a lot

    This topic has been closed for replies.

    1 reply

    SiUsPlauTancat
    Known Participant
    May 19, 2020

    Hello Clay,

     

    actually your link do exactly what i was thinking i need, but maybe i miss up something.

     

    From this link i can load the JS but nothing happen.

    What i am tryng to do is somethink like that :

    I created 2 Canvas html5 with Animate (so the results comes html + JS obsliy)

    So what i want is that in a 3rd Canvas i can load (and unload) the 2 movies that i created.

    Maybe you can help me to solve this problem.

    Should i load the HTML instead the script? or i missing somthing to make the script "running".

     

    Thanks a lot for your kind help

    Legend
    May 19, 2020

    Now you're asking something completely different. No, you can't load Canvas documents into each other like you can with SWFs.