Alex Rivera | Logout

How to pass flashvars to standalone flash player

Asked 2010-10-31T18:27:51.023
12

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.

Edit
Report

1 Answer

1

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);
answered 2010-10-31T18:33:23.593

Your Answer