Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-06-2003, 08:48 AM
Junior Member
 
Join Date: Oct 2003
Posts: 15
Default 2 exe files application.. and arguments...

hi,
my application swfkit contains 2 exe files:
1) a video file browser (I simplify)
2) a video player (I simplify)

in fact, i want my first application to launch the second one, passing it a parameter (a video id)
Shell.run seems fine, but how passing arguments to the opened application
(for instance, if I want to pass the arg "Identifiant" with a value of "Thing003")

thanks by advance...
P.
PS: I just bought full version of swfKit yesterday... this application is really really fine...
Reply With Quote
  #2 (permalink)  
Old 11-06-2003, 09:17 AM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re:2 exe files application.. and arguments...

I can think of a some ways.
You could write the argument in a little textfile (like the notepad example) and let the second swf projector load the variables.

I heard that version2 will support commandlines for the arguments.
So you can wait for that version.

Or you can check out this ubject on the forum
http://www.swfkit.com/forum/index.ph...=msg172#msg172
Reply With Quote
  #3 (permalink)  
Old 11-14-2003, 11:17 AM
Junior Member
 
Join Date: Oct 2003
Posts: 15
Default Re:2 exe files application.. and arguments...

Hi,
I finally used the environment variables, and it works perfectly:

//In the application calling the other one:

Shell.setEnvironmentVariable("variablename","value ");

//in the application called:
var r = Shell.getEnvironmentStrings();
var i;
for (i = 0; i < r.length; i++) {
if (r[i]=="variablename") { myvariable= Shell.getEnvironmentVariable(r[i]); }

}
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:40 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.