6 Replies Latest reply on May 1, 2008 7:07 PM by ntsiii

    creationComplete event question?

    mark416 Level 1
      Hi,

      I develop a application that have many screen and I develop each
      screen with a flex component (*.mxml page).

      I use creationComplete event in one screen but the function only
      execute when I first access the screen. But I need execute the
      function when I access the screen.

      For instance.the following Alert screen only work when I first access the screen,But it doesn't call when I access the
      screen second time.

      Please give me a idea which event I can use to call the function so
      the function can execute when I access the screen.

      Thanks

      Mark


      ps:code for the screen

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Canvas xmlns:mx=" http://www.adobe.com/2006/mxml"
      creationComplete="getnameList()">
      <mx:Script>
      <![CDATA[

      import com.sb.CEC_Admin.events.GetStafflistEven;

      private function getnameList():void{

      Alert.show("test");

      }
      ]]>
      </mx:Script>

      ....

      </mx:Canvas>