Copy link to clipboard
Copied
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 !
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
Copy link to clipboard
Copied
using adobe animate you created canvas/html5 file vignettes or as3 vignettes?
and how are those vignettes related to your website?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Kglad , do you have a resources link for tutorials you could provide ? i need infos and i'm lost , thanks in advance
Copy link to clipboard
Copied
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
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more