1 Reply Latest reply on Jun 28, 2008 12:40 PM by jwoozy

    fscommand and flex objects

    jwoozy
      soooo fscommand is not working and having little experience with it, i need to guidence.
      <mx:Application creationComplete="init()"/>
      <mx:Script>
      <![CDATA[
      import mx.*; //just being lazy here. not actually what i have.

      public function init():void
      {
      main_panel();
      }

      private function main_panel():void
      {
      var pl:Panel = new Panel();
      pl.x = 100;
      pl.y = 100;
      pl.width = 300;
      pl.height = 500;

      var bt:Button = new Button();
      bt.addEventListener(MouseEvent.CLICK, clickHandler);

      pl.addChild(bt);
      this.addChild(pl);

      //remove eventlistener!
      }
      private function clickHandler():void
      {
      fscommand("fullscreen", "true");
      }
      ]>
      </mx:Script>