3 Replies Latest reply on Jan 31, 2007 11:41 AM by jlingwai

    Newbie..Please help with opening MXML components

    poze9
      This has to be simple, but I'm having the hardest time.
      I have a calendar MXML file (component) that I want to launch when a user selects a button from my main application. the button in main has a click event click="opencal();"

      public function opencal():void
      {
      var mycal:cal = new cal;
      mycal....... ?
      }

      I'm not sure what to do from there. How do I get the instantiated object to open ?