简体   繁体   English

如何将参数传递给Flash投影仪(Windows)?

[英]How to pass parameters to a Flash projector (Windows)?

Is there any way to pass command line parameters to a Flash projector in Windows? 有没有办法将命令行参数传递给Windows中的Flash投影仪? I have another application (in this case, an installer) that will need to communicate to a Flash projector (the same way flashvars work). 我有另一个应用程序(在这种情况下,安装程序)需要与Flash投影仪通信(闪存工作方式相同)。 I wasn't able to find any information online (everything seems to be focused on using FSCommand parameters for executing future projectors, which doesn't help me with calling the original one)... 我无法在网上找到任何信息(一切似乎都集中在使用FSCommand参数来执行未来的投影仪,这对我调用原始投影仪没有帮助)...

just a note on this. 只是一个关于此的说明。 you can pass parameters to the standalone flash player. 您可以将参数传递给独立的Flash播放器。 i created a .bat file like this, which works like a charm: 我创建了一个像这样的.bat文件,它就像一个魅力:

flashplayer_10_sa.exe aFlashFile.swf?param=value?otherparam=othervalue

you can download the standalon player from adobe: http://www.adobe.com/support/flashplayer/downloads.html 你可以从adobe下载standalon播放器: http//www.adobe.com/support/flashplayer/downloads.html

如果您在HTTP服务器后面提供文件,请说http://domain.com/main.swf ,您可以从投影机中选择打开URL的选项,并将flashvars与URL一起传递,如下所示:

http://domain.com/main.swf?var1=value1&var2=value2

I'm fairly sure that standard Flash projectors can not do this. 我很确定标准的Flash投影机不能这样做。 However, other third party wrapper's such as MDM's Zinc or NorthCode's SWFStudio may offer that functionality. 但是,其他第三方包装器(如MDM的Zinc或NorthCode的SWFStudio)可能会提供该功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM