{"id":2322,"date":"2013-03-08T14:46:20","date_gmt":"2013-03-08T14:46:20","guid":{"rendered":"http:\/\/www.benoitfreslon.com\/?p=2322"},"modified":"2024-07-19T09:31:44","modified_gmt":"2024-07-19T07:31:44","slug":"tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3","status":"publish","type":"post","link":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\/","title":{"rendered":"Tutorial: How to replace and hide the cursor in Flash with ActionScript 3"},"content":{"rendered":"<p>Je vais vous montrer comment masquer le curseur de la souris en Flash et comment le remplacer par une autre image.<\/p>\n<p>C&rsquo;est tr\u00e8s simple mais vous avez besoin d&rsquo;au moins d&rsquo;un Clip.<\/p>\n<p>[swf:\/wp-content\/uploads\/2013\/03\/Hide_mouse_cursor_and_custom_cursor.swf 550 400]<\/p>\n<p>Vous pouvez t\u00e9l\u00e9charger les codes sources :\u00a0<a href=\"https:\/\/benoitfreslon.com\/wp-content\/uploads\/2013\/03\/Hide_mouse_cursor_and_custom_cursor.fla_.zip\">Hide_mouse_cursor_and_custom_cursor.fla<\/a>.<\/p>\n<ul>\n<li>Cr\u00e9er un nouveau fichier ActionScript 3 dans Flash<\/li>\n<li>Puis: Insertion > Nouveau Symbole > Nom: <strong>CustomCursor<\/strong> > Clip > OK.<\/li>\n<li>Utiliser une image ou dessiner un curseur perso. Placer la pointe du curseur au niveau du point d&rsquo;origine.<\/li>\n<li>Puis retourner sur la S\u00e9quence principale.<\/li>\n<li>Ajouter une\u00a0occurrence\u00a0du Clip <strong>CustomCursor<\/strong> sur la sc\u00e8ne.<\/li>\n<li>Mettre le nom d&rsquo;occurrence de ce Clip dans ses propri\u00e9t\u00e9s : Cliquer sur le symbole sur la sc\u00e8ne > Panneau propri\u00e9t\u00e9s > Nom\u00a0d&rsquo;occurrence: <strong>cursor<\/strong><\/li>\n<li>Ouvrir ensuite le panneau Actions et commencer \u00e0 coder.<\/li>\n<\/ul>\n<pre>\/\/ http:\/\/www.benoitfreslon.com\r\n\r\n\/\/ Masquer le curseur de la souris\r\nMouse.hide();\r\n\r\n\/\/ Utiliser le curseur perso\r\n\/\/ cursor c'est le nom d'occurrence sur la sc\u00e8ne\r\n\/\/ Astuce : Ajouter le curseur toujours devant avec\r\nstage.addChild(cursor);\r\n\r\n\/\/ Attacher le curseur \u00e0 la souris\r\ncursor.startDrag(true);\r\n\r\n\/\/ Afficher de nouveau le curseur\r\n\/\/Mouse.show();<\/pre>\n<p>C&rsquo;est termin\u00e9 :).<\/p>","protected":false},"excerpt":{"rendered":"<p>Je vais vous montrer comment masquer le curseur de la souris en Flash et comment le remplacer par une autre&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[94,204,6,302,205,207,206,402],"class_list":["post-2322","post","type-post","status-publish","format-standard","hentry","category-news","tag-as3","tag-cursor","tag-flash","tag-actionscript","tag-hide","tag-replace","tag-show","tag-tutoriels-flash","wpcat-1-id"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tutorial: How to replace and hide the cursor in Flash with ActionScript 3 - Beno\u00eet Freslon<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\/\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Benoit Freslon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\\\/\"},\"author\":{\"name\":\"Benoit Freslon\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/#\\\/schema\\\/person\\\/fe9fe28a6b6c2b56648448b977fd6b78\"},\"headline\":\"Tutorial: How to replace and hide the cursor in Flash with ActionScript 3\",\"datePublished\":\"2013-03-08T14:46:20+00:00\",\"dateModified\":\"2024-07-19T07:31:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/news\\\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\\\/\"},\"wordCount\":294,\"keywords\":[\"as3\",\"cursor\",\"flash\",\"Flash development\",\"hide\",\"replace\",\"show\",\"Tutoriels Flash\"],\"articleSection\":[\"Actualit\u00e9s\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\\\/\",\"url\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\\\/\",\"name\":\"Tutorial: How to replace and hide the cursor in Flash with ActionScript 3 - Beno\u00eet Freslon\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/#website\"},\"datePublished\":\"2013-03-08T14:46:20+00:00\",\"dateModified\":\"2024-07-19T07:31:44+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/#\\\/schema\\\/person\\\/fe9fe28a6b6c2b56648448b977fd6b78\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[[\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\\\/\"]]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/news\\\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorial: How to replace and hide the cursor in Flash with ActionScript 3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/\",\"name\":\"Beno\u00eet Freslon\",\"description\":\"[:en]Game designer | D\u00e9veloppeur de jeux ind\u00e9pendant | Freelance | Enseignant | Blogueur[:fr]Game designer | Independent game developer | Freelance | Teacher | Blogger[:]\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/benoitfreslon.com\\\/#\\\/schema\\\/person\\\/fe9fe28a6b6c2b56648448b977fd6b78\",\"name\":\"Benoit Freslon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b828da2527f91fb7c86dab67050492f4303279afa245d6e718ea1c6e6f00bb2?s=96&d=identicon&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b828da2527f91fb7c86dab67050492f4303279afa245d6e718ea1c6e6f00bb2?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0b828da2527f91fb7c86dab67050492f4303279afa245d6e718ea1c6e6f00bb2?s=96&d=identicon&r=g\",\"caption\":\"Benoit Freslon\"},\"sameAs\":[\"https:\\\/\\\/benoitfreslon.com\",\"https:\\\/\\\/www.instagram.com\\\/benoitfreslon\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/benoitfreslon\",\"https:\\\/\\\/x.com\\\/BenoitFreslon\",\"https:\\\/\\\/www.youtube.com\\\/benoitfreslon\"],\"url\":\"https:\\\/\\\/benoitfreslon.com\\\/fr\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tutorial: How to replace and hide the cursor in Flash with ActionScript 3 - Beno\u00eet Freslon","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\/","twitter_misc":{"\u00c9crit par":"Benoit Freslon","Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/benoitfreslon.com\/news\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\/#article","isPartOf":{"@id":"https:\/\/benoitfreslon.com\/news\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\/"},"author":{"name":"Benoit Freslon","@id":"https:\/\/benoitfreslon.com\/#\/schema\/person\/fe9fe28a6b6c2b56648448b977fd6b78"},"headline":"Tutorial: How to replace and hide the cursor in Flash with ActionScript 3","datePublished":"2013-03-08T14:46:20+00:00","dateModified":"2024-07-19T07:31:44+00:00","mainEntityOfPage":{"@id":"https:\/\/benoitfreslon.com\/news\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\/"},"wordCount":294,"keywords":["as3","cursor","flash","Flash development","hide","replace","show","Tutoriels Flash"],"articleSection":["Actualit\u00e9s"],"inLanguage":"fr-FR"},{"@type":"WebPage","@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\/","url":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\/","name":"Tutorial: How to replace and hide the cursor in Flash with ActionScript 3 - Beno\u00eet Freslon","isPartOf":{"@id":"https:\/\/benoitfreslon.com\/fr\/#website"},"datePublished":"2013-03-08T14:46:20+00:00","dateModified":"2024-07-19T07:31:44+00:00","author":{"@id":"https:\/\/benoitfreslon.com\/#\/schema\/person\/fe9fe28a6b6c2b56648448b977fd6b78"},"breadcrumb":{"@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":[["https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\/"]]}]},{"@type":"BreadcrumbList","@id":"https:\/\/benoitfreslon.com\/fr\/news\/tutorial-how-to-replace-and-hide-the-cursor-in-flash-with-actionscript-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/benoitfreslon.com\/fr\/"},{"@type":"ListItem","position":2,"name":"Tutorial: How to replace and hide the cursor in Flash with ActionScript 3"}]},{"@type":"WebSite","@id":"https:\/\/benoitfreslon.com\/fr\/#website","url":"https:\/\/benoitfreslon.com\/fr\/","name":"Beno\u00eet Freslon","description":"[:en]Game designer | D\u00e9veloppeur de jeux ind\u00e9pendant | Freelance | Enseignant | Blogueur[:fr]Game designer | Independent game developer | Freelance | Teacher | Blogger[:]","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/benoitfreslon.com\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Person","@id":"https:\/\/benoitfreslon.com\/#\/schema\/person\/fe9fe28a6b6c2b56648448b977fd6b78","name":"Benoit Freslon","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/secure.gravatar.com\/avatar\/0b828da2527f91fb7c86dab67050492f4303279afa245d6e718ea1c6e6f00bb2?s=96&d=identicon&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0b828da2527f91fb7c86dab67050492f4303279afa245d6e718ea1c6e6f00bb2?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0b828da2527f91fb7c86dab67050492f4303279afa245d6e718ea1c6e6f00bb2?s=96&d=identicon&r=g","caption":"Benoit Freslon"},"sameAs":["https:\/\/benoitfreslon.com","https:\/\/www.instagram.com\/benoitfreslon","https:\/\/www.linkedin.com\/in\/benoitfreslon","https:\/\/x.com\/BenoitFreslon","https:\/\/www.youtube.com\/benoitfreslon"],"url":"https:\/\/benoitfreslon.com\/fr\/author\/admin\/"}]}},"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/pLAe3-Bs","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts\/2322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/comments?post=2322"}],"version-history":[{"count":18,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts\/2322\/revisions"}],"predecessor-version":[{"id":39106,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/posts\/2322\/revisions\/39106"}],"wp:attachment":[{"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/media?parent=2322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/categories?post=2322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benoitfreslon.com\/fr\/wp-json\/wp\/v2\/tags?post=2322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}