硕思闪客精灵在奇怪的地方使用null
我一直在尝试计算 Flash 游戏 中的背景数学使用硕思闪客精灵查看ActionScript文件。诚然,我对 ActionScript 知之甚少,但我看到的代码行看起来像:
_loc_2 = null * (null * true) <= null;
或:
_loc_3 = null & null << (null === false);
从我的立场来看,value <= null 没有多大意义,< i>null * true 或 null &空。我只是没有正确理解 ActionScript,或者这是反编译过程中的错误?如果出现错误,有什么办法解决吗?
I've been attempting to figure out the background math in a Flash game by using the Sothink SWF Decompiler to view the ActionScript files. Admittedly I know very little about ActionScript, but I'm seeing lines of code that look like:
_loc_2 = null * (null * true) <= null;
or:
_loc_3 = null & null << (null === false);
From where I stand, value <= null doesn't make much sense, and neither does null * true or null & null. Am I just not understanding ActionScript properly, or is this an error in the decompiling process? If it's an error, is there any way to solve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
swf 可能已使用混淆器加密,这就是为什么您会看到这样的废话。您可以自己测试这段代码(尽管您必须在非严格模式下编译):
所以基本上
_loc_2
是一个设置为 0 的局部变量,而_loc_3
是一个局部变量设置为真The swf has probably been encrypted with an obfuscater, which is why you're seeing nonsense like this. You can test this code yourself (though you have to compile in non-strict mode):
so basically
_loc_2
is a local variable set to 0, while_loc_3
is a local variable set to true