tags:

views:

19

answers:

1

Is it possible to pass flashvars to standalone flash player via the commandline? Among other reasons, I want to run some unit tests from the command line.

I have done some Google searches, the question has been asked before but no answer that I can find.

A: 

Try to pass command-line parameters to an .exe projector.

Alternatively, you might want to wrap your .swf on another, and have the wrapper load it with parameters, like this:

var loader:Loader = new Loader();
var request:URLRequest = new URLRequest("your_cool_app.swf");
request.data = "a=1&b=2"
loader.load(request);
Júlio Santos
What does "Try to pass command-line parameters to an .exe projector" mean? "./flashplayer foo.swf?qux=baz" doesn't work. Thanks for the second suggestion, though less than ideal (I have to write a new swf for every change parameters) I may be able to make it work in my case.
It means publish it as an .exe executable, and run it in the command line with parameters.
Júlio Santos