View unanswered posts | View active topics


Reply to topic  [ 6 posts ] 
Passing parameters to Adobe AIR app 
Author Message
Member

Joined: Wed Feb 04, 2009 3:22 pm
Posts: 87
Location: Scottsdale, AZ
Post 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.

Code:
Run.bat test test2


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


Mon Nov 14, 2011 10:34 pm
Profile YIM WWW
Member

Joined: Wed Apr 29, 2009 12:05 pm
Posts: 212
Post Re: Passing parameters to Adobe AIR app
I thought I would give this a quick BUMP, because I need this myself now.


Mon Apr 16, 2012 1:42 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10749
Location: Paris, France
Post Re: Passing parameters to Adobe AIR app
http://help.adobe.com/en_US/air/build/W ... -8000.html
Quote:
arguements after '--' are passed as command line arguments

Edit the command in Project properties > Test Movie > Edit...


Tue Apr 17, 2012 7:52 am
Profile WWW
Member

Joined: Wed Apr 29, 2009 12:05 pm
Posts: 212
Post Re: Passing parameters to Adobe AIR app
there is no "test movie" in FD3..


Tue Apr 17, 2012 8:28 am
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10749
Location: Paris, France
Post Re: Passing parameters to Adobe AIR app
WORMSS wrote:
there is no "test movie" in FD3..

I meant in the first tab of the Project properties, at the bottom - there should be an Edit... button to change the command calling ADL.


Tue Apr 17, 2012 9:23 am
Profile WWW
Member

Joined: Wed Apr 29, 2009 12:05 pm
Posts: 212
Post Re: Passing parameters to Adobe AIR app
AHh, I had tried that before, but I had failed to get it to work..

When you have told me that IS the correct place to try, I had tried even more ways of doing it.. Finally got it to work..

I was trying in a few places within that command box and finally figured it out..

$(FlexSDK)\bin\adl.exe;application.xml bin[space]--[space]c:\pic.jpg

I had failed to put in the 2nd [space] before. I was starting to go a little crazy.. LOL.

Thank you very very much :D


Tue Apr 17, 2012 9:31 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.