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); } } }