1 Reply Latest reply on May 15, 2009 12:24 AM by Piyush Giri

    problem in displaying customized flex window.

    Piyush Giri Level 1

      0 vote down
      star

      Hi I've created a customized settings sub-window, with an AIR application and facing a problem in displaying it more than one time from the application, i.e for the first time i select option from context menu then the settings window is displayed but if i try for the second time it doesn't come again. The code is attached for the called function where 'toastWindow_2' is the refrence for customized settings window:

        
      public function showOptionwindow(event:ContextMenuEvent):void
                     
      {


                     
      var check_label:String = event.currentTarget.label;
                     
      var toastWindow_2:options_db = new options_db();
                      toastWindow_2
      .open();

                     
      if (check_label=='List videos'){

                  toastWindow_2
      .settings_windowtab.selectedIndex=1;
                     
      }      
                     
      else if (check_label=='Feedback'){
                  toastWindow_2
      .settings_windowtab.selectedIndex=2;
                     
      }
                     
      else if(check_label=='Settings'){
                  toastWindow_2
      .settings_windowtab.selectedIndex=0;
                     
      }
                      
      }

      Please suggest the solution asap; Thanks in advance.