{"id":424,"date":"2009-10-08T08:49:36","date_gmt":"2009-10-08T15:49:36","guid":{"rendered":"https:\/\/actionsnippet.com\/?p=2298"},"modified":"2009-10-08T08:49:36","modified_gmt":"2009-10-08T15:49:36","slug":"is-this-swf-in-a-container","status":"publish","type":"post","link":"https:\/\/actionsnippet.com\/?p=424","title":{"rendered":"Is this swf in a container?"},"content":{"rendered":"<pre class=\"brush: as3; title: ; notranslate\" title=\"\">\r\nif(parent == stage){\r\n   \/\/ no container\r\n}else{\r\n  \/\/ has container\r\n}\r\n<\/pre>\n<p>Found myself writing this snippet today&#8230;. it figures out if the current swf is inside a container (Loader) or not&#8230; lots of other ways to do this&#8230; feel free to post your version in the comments&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>if(parent == stage){ \/\/ no container }else{ \/\/ has container } Found myself writing this snippet today&#8230;. it figures out if the current swf is inside a container (Loader) or not&#8230; lots of other ways to do this&#8230; feel free to post your version in the comments&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[88,136,94],"tags":[3,14,4],"class_list":["post-424","post","type-post","status-publish","format-standard","hentry","category-external-data","category-loader","category-misc","tag-actionscript","tag-as3","tag-flash"],"_links":{"self":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=424"}],"version-history":[{"count":0,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/424\/revisions"}],"wp:attachment":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}