{"id":12317,"date":"2017-02-15T17:35:55","date_gmt":"2017-02-15T16:35:55","guid":{"rendered":"https:\/\/www.adventori.com\/fr\/?p=12317"},"modified":"2018-01-18T12:12:44","modified_gmt":"2018-01-18T11:12:44","slug":"gerer-le-clic-adobe-animate","status":"publish","type":"post","link":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/","title":{"rendered":"G\u00e9rer le clic"},"content":{"rendered":"<a style=\"color: grey;\" href=\"\/?page_id=11761\">Documentation DCO Enabler -> <\/a><a style=\"color: grey;\" href=\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/\">ENABLER ADOBE ANIMATE CC -> <\/a><a style=\"color: grey;\" href=\"\/?p=12317\">G\u00e9rer le clic<\/a>\r\n<h3 id=\"gestionclic\" style=\"text-align: center;\"><strong>G\u00c9RER LE CLIC<\/strong><\/h3><h4><strong>1. Banni\u00e8re avec une seule redirection<\/strong><\/h4><p>Les clics sur la publicit\u00e9 doivent \u00eatre envoy\u00e9s \u00e0 l\u2019AdServer, pour les comptabiliser et renvoyer l\u2019internaute vers la bonne page.<\/p><p>&nbsp;<\/p><p>Pour les banni\u00e8res avec une seule redirection, vous avez le choix entre deux m\u00e9thodes:<\/p><p><strong><em>Premi\u00e8re m\u00e9thode<\/em><\/strong><\/p>Modifier le <strong>mod\u00e8le de publication HTML<\/strong>, et ajouter la m\u00e9thode onclick au body (et aussi le cursor: pointer).<pre>&lt;body onload=\"init();\" style=\"background-color:#D4D4D4;margin:0px;<strong>cursor:pointer<\/strong>;\" <strong style=\"color: red;\">onclick=\"ADventori.click();\"<\/strong> &gt;<br \/>&lt;\/body&gt;<\/pre><p>\r\nR\u00e9-importer ensuite le mod\u00e8le de publication au projet.<\/p>\r\n<p>R\u00e9sultat:<\/p>\r\n<iframe loading=\"lazy\" width=\"302\" height=\"252\" style=\"width: 302px;\" scrolling=\"no\" src=\"\/\/adventori.com\/lp\/enabler\/templates\/exemple_crea_animate2\/click.html\" frameborder=\"yes\" allowtransparency=\"true\" allowfullscreen=\"allowfullscreen\">\r\n<\/iframe>\r\n<p style=\"text-align: right;\"><a href=\"\/\/adventori.com\/lp\/enabler\/templates\/exemple_crea_animate2\/click.zip\"><button class=\"btn btn-primary\">T\u00e9l\u00e9charger l&rsquo;exemple<\/button><\/a><\/p>\r\n<p><strong><em>Deuxi\u00e8me m\u00e9thode<\/em><\/strong><br \/>La seconde m\u00e9thode consiste \u00e0 ajouter la gestion du clic directement depuis Adobe Animate.<\/p><p>Ajouter un nouveau calque \u00e0 votre sc\u00e8ne principale, et nommez-le: \u00ab\u00a0Actions\u00a0\u00bb.<\/p>\r\n<p><a  href=\"https:\/\/v4.adventori.com\/media\/install_animate_click.png\" data-rel=\"lightbox-gallery-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/v4.adventori.com\/media\/install_animate_click.png\" alt=\"click4\" class=\"aligncenter wp-image-5616 size-full\" width=\"695\" height=\"197\" \/><\/a><\/p>\r\n<p>A la frame 1, cliquer sur F9 et\u00a0ajouter le code javascript ci-dessous:<\/p><pre><strong>stage.addEventListener(\"stagemousedown\", function(e){click(e);} );\r\nfunction click(e){ADventori.click();}\r\nstage.canvas.style.cursor = \"pointer\";<\/strong><\/pre>\r\n<p>R\u00e9sultat:<\/p>\r\n<iframe loading=\"lazy\" width=\"300\" height=\"250\" style=\"width: 300px;\" scrolling=\"no\" src=\"\/\/adventori.com\/lp\/enabler\/templates\/exemple_crea_animate\/click.html\" frameborder=\"yes\" allowtransparency=\"true\" allowfullscreen=\"allowfullscreen\">\r\n<\/iframe>\r\n<p style=\"text-align: right;\"><a href=\"\/\/adventori.com\/lp\/enabler\/templates\/exemple_crea_animate\/click.zip\"><button class=\"btn btn-primary\">T\u00e9l\u00e9charger l&rsquo;exemple<\/button><\/a><\/p>\r\n<h4><strong>2. Banni\u00e8re avec plusieurs redirections<\/strong><\/h4><h5>Certaines banni\u00e8res n\u00e9cessitent une zone cliquable par produit.<\/h5><p>Dans le cas o\u00f9 vous avez plusieurs produits, qui ont chacun une URL de redirection diff\u00e9rente:<\/p>\r\n<pre>ADventori.initData({ \r\n  <strong>url1<\/strong>:\"http:\/\/www.item1.com\",\r\n  <strong>url2<\/strong>:\"http:\/\/www.item2.com\",\r\n  <strong>url3<\/strong>:\"http:\/\/www.item3.com\",\r\n  <strong>url4<\/strong>:\"http:\/\/www.item4.com\"\r\n});\t\t<\/pre>\r\n\r\n<p>Nommer vos boutons ou movieClips, comme ci-dessous:\u00a0<\/p>\r\n<p><a  href=\"https:\/\/v4.adventori.com\/media\/install_animate_clik_item.png\" data-rel=\"lightbox-gallery-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/v4.adventori.com\/media\/install_animate_clik_item.png\" alt=\"click4\" class=\"aligncenter wp-image-5616 size-full\" width=\"695\" height=\"197\" \/><\/a><\/p>\r\n<p>Nous devons maintenant associer les \u00e9l\u00e9ments que nous voulons rendre cliquables (movieClip, bouton)<\/p>\r\n\r\n<pre>this.<strong style=\"color: red;\">item1<\/strong>.addEventListener(\"click\", function(event){click(event,<strong>ADventori.data.url1<\/strong>)});\r\nthis.<strong style=\"color: red;\">item2<\/strong>.addEventListener(\"click\", function(event){click(event,<strong>ADventori.data.url2<\/strong>)});\r\nthis.<strong style=\"color: red;\">item3<\/strong>.addEventListener(\"click\", function(event){click(event,<strong>ADventori.data.url3<\/strong>)});\r\nthis.<strong style=\"color: red;\">item4<\/strong>.addEventListener(\"click\", function(event){click(event,<strong>ADventori.data.url4<\/strong>)});\r\n\r\nfunction click(event,url){\t\r\n\tADventori.click(event,url);\r\n}\r\n<\/pre>\r\n<p>R\u00e9sultat:<\/p>\r\n<p>\r\n<iframe loading=\"lazy\" width=\"300\" height=\"250\" style=\"width: 300px;\" scrolling=\"no\" src=\"\/\/adventori.com\/lp\/enabler\/templates\/exemple_crea_animate\/click_item.html\" frameborder=\"yes\" allowtransparency=\"true\" allowfullscreen=\"allowfullscreen\">\r\n<\/iframe>\r\n<\/p>\r\n<p style=\"text-align: right;\"><a href=\"\/\/adventori.com\/lp\/enabler\/templates\/exemple_crea_animate\/click_item.zip\"><button class=\"btn btn-primary\">T\u00e9l\u00e9charger l&rsquo;exemple<\/button><\/a><\/p>\r\n\r\n<p>autre exemple :<\/p>\r\n<p>\r\n<iframe loading=\"lazy\" width=\"302\" height=\"252\"  scrolling=\"no\" src=\"\/\/adventori.com\/lp\/enabler\/templates\/exemple_crea_animate2\/multi_click.html\" frameborder=\"yes\" allowtransparency=\"true\" allowfullscreen=\"allowfullscreen\">\r\n<\/iframe>\r\n<\/p>\r\n<p style=\"text-align: right;\"><a href=\"\/\/adventori.com\/lp\/enabler\/templates\/exemple_crea_animate2\/multi_click.zip\"><button class=\"btn btn-primary\">T\u00e9l\u00e9charger l&rsquo;exemple<\/button><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>G\u00e9rer vos types de clics (global, sp\u00e9cifique)<\/p>\n","protected":false},"author":11,"featured_media":11779,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[256],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>G\u00e9rer le clic | ADventori<\/title>\n<meta name=\"robots\" content=\"noindex, nofollow\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"G\u00e9rer le clic | ADventori\" \/>\n<meta property=\"og:description\" content=\"G\u00e9rer vos types de clics (global, sp\u00e9cifique)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/\" \/>\n<meta property=\"og:site_name\" content=\"ADventori\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-15T16:35:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-18T11:12:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/v4.adventori.com\/media\/ADventori-ClickEnabler.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"540\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:creator\" content=\"@adventori\" \/>\n<meta name=\"twitter:site\" content=\"@adventori\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ismail Azdad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/v4.adventori.com\/#organization\",\"name\":\"ADventori\",\"url\":\"https:\/\/v4.adventori.com\/\",\"sameAs\":[\"https:\/\/twitter.com\/adventori\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/v4.adventori.com\/#\/schema\/logo\/image\/\",\"url\":\"\/media\/Large_Logo-ADventori_Couleur_2015.png\",\"contentUrl\":\"\/media\/Large_Logo-ADventori_Couleur_2015.png\",\"width\":400,\"height\":133,\"caption\":\"ADventori\"},\"image\":{\"@id\":\"https:\/\/v4.adventori.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/v4.adventori.com\/#website\",\"url\":\"https:\/\/v4.adventori.com\/\",\"name\":\"ADventori\",\"description\":\"LESS ADS, MORE EFFICIENT ADS\",\"publisher\":{\"@id\":\"https:\/\/v4.adventori.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/v4.adventori.com\/search\/{search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#primaryimage\",\"url\":\"https:\/\/v4.adventori.com\/media\/ADventori-ClickEnabler.jpg\",\"contentUrl\":\"https:\/\/v4.adventori.com\/media\/ADventori-ClickEnabler.jpg\",\"width\":540,\"height\":410},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#webpage\",\"url\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/\",\"name\":\"G\u00e9rer le clic | ADventori\",\"isPartOf\":{\"@id\":\"https:\/\/v4.adventori.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#primaryimage\"},\"datePublished\":\"2017-02-15T16:35:55+00:00\",\"dateModified\":\"2018-01-18T11:12:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/v4.adventori.com\/fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"G\u00e9rer le clic\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#webpage\"},\"author\":{\"@id\":\"https:\/\/v4.adventori.com\/#\/schema\/person\/e6f1b8450889d31648a36063f22d3564\"},\"headline\":\"G\u00e9rer le clic\",\"datePublished\":\"2017-02-15T16:35:55+00:00\",\"dateModified\":\"2018-01-18T11:12:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#webpage\"},\"wordCount\":214,\"publisher\":{\"@id\":\"https:\/\/v4.adventori.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/v4.adventori.com\/media\/ADventori-ClickEnabler.jpg\",\"articleSection\":[\"BASES\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/v4.adventori.com\/#\/schema\/person\/e6f1b8450889d31648a36063f22d3564\",\"name\":\"Ismail Azdad\",\"sameAs\":[\"https:\/\/www.adventori.com\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"G\u00e9rer le clic | ADventori","robots":{"index":"noindex","follow":"nofollow"},"og_locale":"fr_FR","og_type":"article","og_title":"G\u00e9rer le clic | ADventori","og_description":"G\u00e9rer vos types de clics (global, sp\u00e9cifique)","og_url":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/","og_site_name":"ADventori","article_published_time":"2017-02-15T16:35:55+00:00","article_modified_time":"2018-01-18T11:12:44+00:00","og_image":[{"width":540,"height":410,"url":"https:\/\/v4.adventori.com\/media\/ADventori-ClickEnabler.jpg","type":"image\/jpeg"}],"twitter_card":"summary","twitter_creator":"@adventori","twitter_site":"@adventori","twitter_misc":{"Written by":"Ismail Azdad","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/v4.adventori.com\/#organization","name":"ADventori","url":"https:\/\/v4.adventori.com\/","sameAs":["https:\/\/twitter.com\/adventori"],"logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/v4.adventori.com\/#\/schema\/logo\/image\/","url":"\/media\/Large_Logo-ADventori_Couleur_2015.png","contentUrl":"\/media\/Large_Logo-ADventori_Couleur_2015.png","width":400,"height":133,"caption":"ADventori"},"image":{"@id":"https:\/\/v4.adventori.com\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/v4.adventori.com\/#website","url":"https:\/\/v4.adventori.com\/","name":"ADventori","description":"LESS ADS, MORE EFFICIENT ADS","publisher":{"@id":"https:\/\/v4.adventori.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/v4.adventori.com\/search\/{search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fr-FR"},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#primaryimage","url":"https:\/\/v4.adventori.com\/media\/ADventori-ClickEnabler.jpg","contentUrl":"https:\/\/v4.adventori.com\/media\/ADventori-ClickEnabler.jpg","width":540,"height":410},{"@type":"WebPage","@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#webpage","url":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/","name":"G\u00e9rer le clic | ADventori","isPartOf":{"@id":"https:\/\/v4.adventori.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#primaryimage"},"datePublished":"2017-02-15T16:35:55+00:00","dateModified":"2018-01-18T11:12:44+00:00","breadcrumb":{"@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/v4.adventori.com\/fr\/"},{"@type":"ListItem","position":2,"name":"G\u00e9rer le clic"}]},{"@type":"Article","@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#article","isPartOf":{"@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#webpage"},"author":{"@id":"https:\/\/v4.adventori.com\/#\/schema\/person\/e6f1b8450889d31648a36063f22d3564"},"headline":"G\u00e9rer le clic","datePublished":"2017-02-15T16:35:55+00:00","dateModified":"2018-01-18T11:12:44+00:00","mainEntityOfPage":{"@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#webpage"},"wordCount":214,"publisher":{"@id":"https:\/\/v4.adventori.com\/#organization"},"image":{"@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/adobe-animate-bases\/gerer-le-clic-adobe-animate\/#primaryimage"},"thumbnailUrl":"https:\/\/v4.adventori.com\/media\/ADventori-ClickEnabler.jpg","articleSection":["BASES"],"inLanguage":"fr-FR"},{"@type":"Person","@id":"https:\/\/v4.adventori.com\/#\/schema\/person\/e6f1b8450889d31648a36063f22d3564","name":"Ismail Azdad","sameAs":["https:\/\/www.adventori.com\/"]}]}},"_links":{"self":[{"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/posts\/12317"}],"collection":[{"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/comments?post=12317"}],"version-history":[{"count":16,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/posts\/12317\/revisions"}],"predecessor-version":[{"id":19716,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/posts\/12317\/revisions\/19716"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/media\/11779"}],"wp:attachment":[{"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/media?parent=12317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/categories?post=12317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/tags?post=12317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}