【问题标题】:Extract variables of embeded flash game [duplicate]提取嵌入式Flash游戏的变量[重复]
【发布时间】:2018-04-05 07:35:47
【问题描述】:

是否可以从 html 嵌入式游戏中提取一些分数变量?
举个例子:

<embed src="http://www.shooter-bubble.com/bubbleshooter2.swf?pn_extravars=arcade~storescore|no_html~1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="728" height="550">

我可以使用任何形式的Js从中提取任何变量吗?
我的最终目标是将这个变量放入sql表中

【问题讨论】:

  • 你的意思是要使用src属性中的URL并通过使用某种字符串分析来获取变量可能是。

标签: javascript html flash


【解决方案1】:

不,您不能从嵌入它的 HTML 页面访问 Flash/swf 变量,但如果您有该 Flash 游戏的源代码,则可以从该 html 页面可以侦听的 Flash 消息中发送。检查 ExternalInterface Actionscript 类:

https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/ExternalInterface.html

【讨论】:

    猜你喜欢
    • 2012-06-04
    • 1970-01-01
    • 2012-09-17
    • 2023-03-11
    • 1970-01-01
    • 2020-07-21
    • 2017-03-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多