1 Reply Latest reply on Aug 29, 2009 4:57 PM by EnTomBet

    mx:Application - when can I start to position it?

    EnTomBet Level 1

      Hi,

      I want to position mx:Application (not windowed) using:

       

                      stage.nativeWindow.x = x;
                      stage.nativeWindow.y = y;

       

      When I try to call this at creationComplete time, it rises an error:

       

      TypeError: Error #1009: Cannot access a property or method of a null object reference.

       

      Calling this when running application, i.e. by button click, works fine, but I want to position app right after it starts.

      What is the right moment to do this ? Why stage.nativeWindow is null at creationComplete?