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?
A bit of digging in docs and the answer is "applicationComplete".