{"id":32,"date":"2008-02-19T22:51:00","date_gmt":"2008-02-19T21:51:00","guid":{"rendered":"http:\/\/www.crydust.be\/blog\/2008\/02\/19\/full-screen-mode-in-actionscript-2\/"},"modified":"2008-02-12T22:58:16","modified_gmt":"2008-02-12T21:58:16","slug":"full-screen-mode-in-actionscript-2","status":"publish","type":"post","link":"https:\/\/www.crydust.be\/blog\/2008\/02\/19\/full-screen-mode-in-actionscript-2\/","title":{"rendered":"full-screen mode in Actionscript 2"},"content":{"rendered":"<p>How to use full-screen mode in Actionscript 2:<\/p>\n<pre class=\"prettyprint\">\r\n_root.btn_mc.onRelease = function(){\r\n    if(Stage[&quot;displayState&quot;] == &quot;normal&quot;){\r\n        Stage[&quot;displayState&quot;] = &quot;fullScreen&quot;;\r\n    }else{\r\n        Stage[&quot;displayState&quot;] = &quot;normal&quot;;\r\n    }\r\n}\r\n\r\nvar listener:Object = {};\r\nlistener.onFullScreen = function(isFullscreen:Boolean){\r\n    if(isFullscreen){\r\n        trace(&quot;entered full-screen mode&quot;);\r\n    }else{\r\n        trace(&quot;exited full-screen mode&quot;);\r\n    }\r\n}\r\nStage.addListener(listener);\r\n<\/pre>\n<p>Also see <a href=\"http:\/\/www.adobe.com\/devnet\/flashplayer\/articles\/full_screen_mode.html\">Exploring full-screen mode in Flash Player 9<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to use full-screen mode in Actionscript 2: _root.btn_mc.onRelease = function(){ if(Stage[&quot;displayState&quot;] == &quot;normal&quot;){ Stage[&quot;displayState&quot;] = &quot;fullScreen&quot;; }else{ Stage[&quot;displayState&quot;] = &quot;normal&quot;; } } var listener:Object = {}; listener.onFullScreen = function(isFullscreen:Boolean){ if(isFullscreen){ trace(&quot;entered full-screen mode&quot;); }else{ trace(&quot;exited full-screen mode&quot;); } } &hellip; <a href=\"https:\/\/www.crydust.be\/blog\/2008\/02\/19\/full-screen-mode-in-actionscript-2\/\">Continue reading <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":[2],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-flash"],"_links":{"self":[{"href":"https:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":0,"href":"https:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}