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.
Yes, I figured this out today(Say you have a flashvar called "p"):
flashplayer.exe "file://c:\myswf.swf?p=100"
Works for the linux flashplayer too...
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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With