2 Replies Latest reply on Jul 28, 2009 2:35 PM by laxmidi

    Menu Initialization Problem

    laxmidi Level 1

      I've got a menu with several buttons. If I click on one of the buttons as the site is loading, I get object not initialized errors. If I call the menuClickHandler function in the Application creationComplete, then the menu works only once.


      What's the best way to make the menu work only, after the objects it needs are ready? Do I have to check if (myObject!=null) for every object? Should I use a timer to delay calling the function? What is the standard way to code the menu so that it functions properly?