1 Reply Latest reply on Sep 5, 2006 1:13 PM by mac_martine

    titlewindow and states

    mygraneboy
      is it possible to use and access differnt states when using an external source to populate a titlewindow?
      i have three buttons opening three differnt title windows and am wondering if i can store all three windows as one file with multiple states and simply send the popup to the correct state. these states would be differnt sizes and contain unique content

      if it is possible does anyone have an example of this type of behavior

      if this is not a good way t do this can someone reccomened a better solution

      thanks
        • 1. Re: titlewindow and states
          mac_martine Level 1
          Once you create and open the window, you could pass it a state name to open.

          myPopupWindow.goToState(statename)

          then in the popupwindow code you would create a method to handle that:

          public function goToState(statename:String) {
          currentState = statename;
          }

          Maybe you even could call it directly? Not sure.
          myPopUpWindow.currentState = 'statename'