{"id":13,"date":"2012-10-03T14:57:03","date_gmt":"2012-10-03T17:57:03","guid":{"rendered":"http:\/\/labs.decaedro.net\/?p=13"},"modified":"2012-10-26T11:34:30","modified_gmt":"2012-10-26T14:34:30","slug":"hittestshape","status":"publish","type":"post","link":"https:\/\/labs.decaedro.net\/?p=13","title":{"rendered":"hitTestShape"},"content":{"rendered":"<p><del>Usando como base o que foi aprendido no artigo\u00a0<a href=\"http:\/\/sierakowski.eu\/list-of-tips\/39-collision-detection-methods-hittest-and-hittestobject-alternatives.html\">http:\/\/sierakowski.eu\/list-of-tips\/39-collision-detection-methods-hittest-and-hittestobject-alternatives.html<\/a><\/del><\/p>\n<p>EDIT: Infelizmente ap\u00f3s alguns problemas utilizando a classe citada, devido a referencias a stage e matrix, tive de mudar o uso da classe.<\/p>\n<p>Criei a classe hitTestShape, que cria um prototype para MovieClip, habilitando o m\u00e9todo hitTestShape para todos os Objetos MovieClip.<\/p>\n<p><del>Arquivo:\u00a0<a href=\"http:\/\/labs.decaedro.net\/wp-content\/uploads\/2012\/10\/hitTestShape.rar\">hitTestShape Example<br \/>\n<\/a>SWF de test:\u00a0<a href=\"http:\/\/labs.decaedro.net\/wp-content\/uploads\/2012\/10\/hitTestShape.swf\">hitTestShape<\/a><\/del><\/p>\n<p>Arquivo <a href=\"http:\/\/labs.decaedro.net\/wp-content\/uploads\/2012\/10\/hitTestShape2.rar\">hitTestShape2 Example<\/a><br \/>\nSWF de test: <a href=\"http:\/\/labs.decaedro.net\/wp-content\/uploads\/2012\/10\/hitTestShape2.swf\">hitTestShape2<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Usando como base o que foi aprendido no artigo\u00a0http:\/\/sierakowski.eu\/list-of-tips\/39-collision-detection-methods-hittest-and-hittestobject-alternatives.html EDIT: Infelizmente ap\u00f3s alguns problemas utilizando a classe citada, devido a referencias a stage e matrix, tive de mudar o uso da classe. Criei a classe hitTestShape, que cria um prototype &hellip; <a href=\"https:\/\/labs.decaedro.net\/?p=13\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/labs.decaedro.net\/index.php?rest_route=\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.decaedro.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.decaedro.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.decaedro.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.decaedro.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13"}],"version-history":[{"count":3,"href":"https:\/\/labs.decaedro.net\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":17,"href":"https:\/\/labs.decaedro.net\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions\/17"}],"wp:attachment":[{"href":"https:\/\/labs.decaedro.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.decaedro.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.decaedro.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}