problem |
adobe flex4 AS3.0 air how to get the command line arguments of the air application --- > dn |
solution |
You have to listen to invoke event of the air application. Then, this event gives an InvokeEvent object. This object has the arguments array, in this arrays are the command line arguments stored... see the follow Listener as example: protected function Handler_InvokeEvent(event:InvokeEvent):void { lb_test.text= event.arguments[0]+' '+ event.arguments[1]; loadConfigFile(); } |
Flexache, is the pain you feel in your brain when you coding on Adobe’s Flex Builder, Flash builder with Flex SDK and Actionscript in general. The pain is starting from the eyes, as you can’t believe what you see and is getting deep in your head as you can’t fix. In this blog I‘ll give you painkiller to get out of a lot strange troubles showing solutions and techniques in Flex.
Thursday, 21 April 2011
how to get the command line arguments of the flex air application
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment