简体   繁体   English

限制swf文件自己播放

[英]restrict swf file from playing on its own

I'm creating a app for android using flash AS3. 我正在使用Flash AS3为Android创建一个应用。 In my app, there are external swf files which are mostly games and slides. 在我的应用程序中,有一些外部swf文件,其中大多数是游戏和幻灯片。 What I'm concerned about is, if you have apk file then you can extract swf files from it . 我担心的是,如果您有apk文件,则可以从中提取swf文件。 So how can i restrict that swf file from playing if it is used without the main app. 因此,如果不使用主应用程序就无法播放该SWF文件。 Is it possible without using another software ? 是否可以不使用其他软件?

What you are saying is impossible there is no trick for complete avoidance of reverse engineering. 您所说的是不可能的,没有技巧可以完全避免进行逆向工程。 if your user gets his hands on your apk file he can easily extract it and get the swf files you put there . 如果您的用户把手放在您的apk文件上,他可以轻松地提取它并获取您放在那的swf文件。

You can use a hack for naive users you can set your frame 2 to go back to frame 1 ie make a loop from frame 1-2-1-2... and start your actual file from frame 5 making it hard to see what's inside, And use it accordingly in your app. 您可以为朴素的用户使用骇客,您可以将第2帧设置为返回第1帧,即从第1-2-1-2帧开始循环...然后从第5帧开始实际文件,从而很难看清是什么内部,并在您的应用中相应地使用它。

use tools to encrypt or obfuscate SWF files see this though even this is not full-proof method. 使用工具加密或混淆SWF文件,即使这不是完全可靠的方法,也可以看到此信息

Check everything in your swf that will allow it to run only on a particular OS ie sniff the OS it is running on if it is not the desired OS destroy stage and close . 检查swf中的所有内容,以使其只能在特定操作系统上运行,即,如果不是所需的OS销毁阶段,则嗅探其所在的操作系统并关闭。 This can be done using flash.system.Capabilities class 可以使用flash.system.Capabilities类完成此操作

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Capabilities.html#version http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Capabilities.html#version

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

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