• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Load an external JS in Canvas html5

Community Beginner ,
May 19, 2020 May 19, 2020

Copy link to clipboard

Copied

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

Views

364

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 19, 2020 May 19, 2020

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 19, 2020 May 19, 2020

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 19, 2020 May 19, 2020

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 19, 2020 May 19, 2020

Copy link to clipboard

Copied

LATEST

Yes thanks you are right! i was a litle bit confused because i am trying to convert something that I did in AS3 in a canvas h5ml5... 

thanks for your answer

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines