How to pass parameters to a Flash projector (Windows)?

不羁岁月 提交于 2019-12-23 18:43:55

问题


Is there any way to pass command line parameters to a Flash projector in Windows? I have another application (in this case, an installer) that will need to communicate to a Flash projector (the same way flashvars work). 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)...


回答1:


I'm fairly sure that standard Flash projectors can not do this. However, other third party wrapper's such as MDM's Zinc or NorthCode's SWFStudio may offer that functionality.




回答2:


just a note on this. you can pass parameters to the standalone flash player. i created a .bat file like this, which works like a charm:

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




回答3:


If you have the file served behind an HTTP server, let's say http://domain.com/main.swf, you can choose the option Open URL from the projector and pass the flashvars along with the URL like so:

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


来源:https://stackoverflow.com/questions/1089578/how-to-pass-parameters-to-a-flash-projector-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!