I'm trying to create a pure ActionScript 3 AIR project, without Flex, somewhat like in the following question:
http://stackoverflow.com/questions/966180/actionscript-project-to-air-application
...but I'm not really sure how to access command line arguments from onInvoke(). I need this for accessing command line arguments for my Pure AS3 AIR application.
Here's my source code:
public class Doclet extends Sprite
{
public function Doclet()
{
NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke);
var win:NativeWindow = new NativeWindow(new NativeWindowInitOptions());
win.activate();
win.addEventListener(Event.CLOSE, function():void
{
NativeApplication.nativeApplication.exit(0);
});
win.stage.addChild(this);
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
}
private function onInvoke(event:InvokeEvent):void
{
trace('Invoke...');
}
}
Imports omitted for brevity. Can anyone help?