Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pass flashvars to standalone flash player

Tags:

flash

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.

like image 806
user492922 Avatar asked Oct 31 '10 18:10

user492922


2 Answers

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...

like image 60
Jon Avatar answered Sep 23 '22 13:09

Jon


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);
like image 44
Julio Santos Avatar answered Sep 23 '22 13:09

Julio Santos