How can I use command line arguments in a creationComplete event handler? It seems the invoke event happens in my AIR app after creationComplete gets called, so I can’t use the args in that function, although I really would like to. Any other event that might always fire after the invoke event happens?
How can I use command line arguments in a creationComplete event handler? It seems
Share
I don’t think that will be possible. I just checked the sources and the invokes are set up in an enterframe handler AFTER the creationcomplete event has fired. You could perhaps subclass WindowedApplication and try to change that order, but there will probably be a good reason why it is implemented that way.
You can find the WindowedApplication.as file in [FLEX_DIR]\sdks\3.1.0\frameworks\projects\airframework\src\mx\core
Interesting comment on line 2942: