我正在flash as5 中开发游戏。 1个月前才开始。
几年前我就知道,当时可以只访问一个网站,然后单击附加菜单 -> 站点信息 -> 媒体文件,然后下载游戏以离线玩甚至反编译。
现在我发现这不再可能了,例如:
http://www.miniclip。 com/games/robo-rampage/en/
http://www.casinoeuro.com/en/casino-games/table-games/txs-holdem-poker/0,1-5
他们如何防止这种情况发生?我来自 php,我知道在这种脚本语言中你无法隐藏源代码。在闪存中怎么样?
我在这里唯一可以下载的是:loaders.swf 或 gameloader.swf。
有人可以完全重新创建这些游戏吗?
如果您没有反编译器,下面是这样的 loaders.swf/gameloader.swf 中的内容,请单击 Actionscript:
http://software.pedrofaustino.com/swfinfo/sidebar/index .html?file=loader.swf
i am developing games in flash as5. Just started 1 month ago.
I knew years back when it was possible to just go to a website and then click on menu extras ->site information->media files and than download the game to play offline or even decompile.
nowadays i see this is not anymore possible, for example:
http://www.miniclip.com/games/robo-rampage/en/
http://www.casinoeuro.com/en/casino-games/table-games/txs-holdem-poker/0,1-5
how do they prevent this? i am coming from php and i know in this scripting language you can't hide the source. how is that in flash?
the only thing i can download here are: loaders.swf or gameloader.swf.
Would it be possible for someone to completely recreate these games?
if you don't have a decompiler, here is what is inside such a loaders.swf/gameloader.swf, click on Actionscript:
http://software.pedrofaustino.com/swfinfo/sidebar/index.html?file=loader.swf
发布评论
评论(1)
我使用的方法是在启动时检查 loaderInfo.url (在 as3 中)并确保它与您网站的 url 匹配(或查找域的子字符串),如果不存在,则有人将其放在另一个网站上(窃取了它)或正在尝试在本地运行它(该 url 将显示为 localhost)。然而,这并不会阻止任何反编译器运行,但有一些混淆器,例如 swfencrypt
The method that I use, is upon start up check loaderInfo.url (in as3) and make sure it matches the url of your website (or substring look for the domain) and if it's not there, then someone put it on another web site (stole it) or is trying to run it locally (which url will say localhost). This however does not prevent any decompilers to run, but there are obfuscators for that such as swfencrypt