2 Replies Latest reply on Apr 25, 2011 6:12 AM by brendalc1636

    Event Fired when a mxml component is shown on screen

    raja_s_patil

      hello,

       

      I have following application structure nested up to 2/3 level.

       

      Application

           linkbar connected to viewstack

           viewstack

                NavigatorContent

                     mxml Component

                NavigatorContent

                     mxml Component

                ........

                ........

                ........

       

      mxml componet in turn has similar structure

       

      componet

           linkbar connected to viewstack

           viewstack

                NavigatorContent

                     mxml Component

                NavigatorContent

                     mxml Component

                ........

                ........

                ........

      and end component is form which is shown and actions performed

       

      I want to execute specific code when the form is first time shown

      which will collect data from server and will show for further actions.

      User will edit/delete/update data with various button clicks.

       

      I tried activate event on end component but it seems that it wont get

      fired at all. End components are enclosed in BorderContainer or Group.

      To test activate event I have used Alert.show only but popup is not shown

      when I select link button on penutimate linkbar.

       

      If I am doing something wrong please let me know as well please

      guide me which event shall I use so that whenever linkbutton is

      pressed on linkbar it will fire that event. In that event I can check

      whether it has been called earlier by checking some variable which

      will be null in creation complete and set in event fired when linkbutton is pressed.

       

      Thanks and regards

       

      Raja