[ActionScript 3.0] 对代码加密的有效方法

package
{
   import
flash.display.Loader; import flash.display.Sprite; import flash.net.LocalConnection; import flash.system.LoaderContext; /** * @author Frost.Yen * @E-mail 871979853@qq.com * @create 2016.10.8 * */ [SWF(width="1920",height="1080")] public class DesktopNavigator extends Sprite { [Embed(source = "bin-debug/DesktopNavigatorSWF.swf", mimeType="application/octet-stream")] private static const bytes:Class; public function DesktopNavigator() {
       var loaderContext:LoaderContext = new LoaderContext(); loaderContext.allowLoadBytesCodeExecution = true; //AIR所用 //loaderContext.allowCodeImport = true;//flashplayer所用 Loader(addChild(new Loader())).loadBytes(new bytes(),loaderContext); } } }

 

posted on 2016-10-19 10:26  晏过留痕  阅读(306)  评论(0编辑  收藏