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

Interraction entre une animation AnimateCC et du javascript

Community Beginner ,
Apr 02, 2018 Apr 02, 2018

Coucou tout le monde , j'ai fait un site web et des vignettes en animate CC animées , je voudrais faire interagir ces vignettes avec mon site  , exemple : si l'utilisateur clique sur un objet de mon animation  que le site web fasse par exemple varier une  variable de java script , j’espère que  ma question  est claire je prend  tout , si vous avez des tutos ou des réponses tout me va , merci !

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

correct answers 1 Correct answer

Community Expert , Apr 05, 2018 Apr 05, 2018

animate uses createjs libraries which make it easier to work with html5/canvas.

so learning javascript and createjs is what you need to do, CreateJS | A suite of JavaScript libraries and tools designed for working with HTML5

Translate
Community Expert ,
Apr 02, 2018 Apr 02, 2018

using adobe animate you created canvas/html5 file vignettes or as3 vignettes?

and how are those vignettes related to your website?

Translate
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 ,
Apr 03, 2018 Apr 03, 2018

hello , yes i used canvas / html5 and i want those vignettes to be clickable and make a variation in my code , ex : if someone click on one of  them i want for instance some of my  variables to change the value

Translate
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 Expert ,
Apr 03, 2018 Apr 03, 2018

what variables and where are those variables?

ie, you want to send data from an html/canvas project to another html page on your website?

Translate
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 ,
Apr 03, 2018 Apr 03, 2018

hello once more and thanks for your time , i have a webpage with a canvas / html5 animate and also some jquery and some php also , i have say a variable called "islogged" and if someone click on my vignette i want the variable to have a 1 value , and 0 if no click , see ?

thanks for helping me

BTW do you have some resources you coudl share with me ? a website ? some tutorials ? thanks in advance

Translate
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 Expert ,
Apr 03, 2018 Apr 03, 2018

if your vignette is a movieclip with instance name v1, you can use:

this.islogged = 0;

this.v1.addEventListener('click',v1F.bind(this));

function v1F(){

this.islogged = 1;

}

// but i'm not sure how much that helps because this.islogged is only available in your canvas html/js.

Translate
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 ,
Apr 05, 2018 Apr 05, 2018

Kglad , do you have a resources link for tutorials you could provide ? i need infos and i'm lost , thanks in advance

Translate
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 Expert ,
Apr 05, 2018 Apr 05, 2018
LATEST

animate uses createjs libraries which make it easier to work with html5/canvas.

so learning javascript and createjs is what you need to do, CreateJS | A suite of JavaScript libraries and tools designed for working with HTML5

Translate
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