1 Reply Latest reply on Apr 7, 2011 5:11 AM by M.S.H

    Full Screen option

    sensiblemind Level 1

      Hi.

      Got a bit of a issue I can not solve.

      i am using flash cs5 and AS 2.0

      my code is

      ////

      var buttonListener:Object = new Object();

       

      buttonListener.click = function(evt:Object)

      {

          Stage.displayState = Stage.displayState == "normal" ? "fullScreen" : "normal";

      }

       

      myButton_btn.addEventListener("click", buttonListener);

      the problem is it is working very nice when i run the swf , BUT the button doesn't work in the HTML file

       

       

      Thanks for any help!