
Passing parameters to Adobe AIR app
Hi everyone,
I'm pretty new to developing with AIR. I know that I can use the InvokeEvent.INVOKE and find arguments passed via the command-line in an AIR app. But within FlashDevelop is there a way to fake these arguments while compiling with FlashDevelop? I tried editing the Run Custom Command that runs the run.bat file and adding parameters to that.
Then in the run.bat file I've echoed those parameters.
Code:
echo.
echo Starting AIR Debug Launcher...
echo.
echo %1
echo %2
And with that I get the correct output on the command-line, it properly echoes "test" and "test2" without the quotes.
But I'm not sure where to go from there. I can't add it to the adl line because it will think the parameters are for adl and errors. Is there a way to fake shell parameters like this for testing purposes?
Thanks!
Kyle