{"id":111,"date":"2013-12-13T08:17:20","date_gmt":"2013-12-13T08:17:20","guid":{"rendered":"http:\/\/tastaturkind.ch\/?p=111"},"modified":"2013-12-13T08:17:20","modified_gmt":"2013-12-13T08:17:20","slug":"as2as3-root","status":"publish","type":"post","link":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/2013\/12\/13\/as2as3-root\/","title":{"rendered":"AS2\/AS3 root"},"content":{"rendered":"<p>AS2 ActionScript Code:<\/p>\n<p><code>_root.gotoAndPlay(\"whatever\");<\/code><\/p>\n<p>AS3 ActionScript Code:<\/p>\n<p><code>MovieClip(root).gotoAndPlay(\"whatever\");<\/code><\/p>\n<p>This casting to the MovieClip type has been explained many times on these forums. Basically, the reason for this is that there are cases where &#8222;root&#8220; might not be a MovieClip, for example, if you used a Document Class that extended Sprite instead of MovieClip.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AS2 ActionScript Code: _root.gotoAndPlay(&#8222;whatever&#8220;); AS3 ActionScript Code: MovieClip(root).gotoAndPlay(&#8222;whatever&#8220;); This casting to the MovieClip type has been explained many times on these forums. Basically, the reason for this is that there are cases where &#8222;root&#8220; might not be a MovieClip, for &hellip; <a href=\"https:\/\/oliver-frick.ch\/wordpress\/index.php\/2013\/12\/13\/as2as3-root\/\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-111","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=111"}],"version-history":[{"count":0,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/111\/revisions"}],"wp:attachment":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}