|
|||
|
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... ![]() |
|
|||
|
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 |
|
|||
|
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]); } } |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|