Search code examples
air

adobe air command line parameters


I am using parameters from the command line which come in through the invoke handler of my WindowedApplication. I used to build using the excellent Flash Develop, we are now using Flash Builder 4.

I would like to know where do I enter these parameters in Flash Builder 4 so I can test them while debugging my app.


Solution

  • NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke);   
    
    function onInvoke(e:InvokeEvent):void   
    {  
        trace('onInvoke', e.arguments);  
    }