Flash ReferenceError:错误#1065:未定义变量NativeApplication

Flash ReferenceError:错误#1065:未定义变量NativeApplication,flash,actionscript,adobe,Flash,Actionscript,Adobe,ReferenceError:Error#1065:变量NativeApplication不可用 定义 导入relavnet软件包时显示:import flash.desktop import ISC.*; import flash.desktop.*; import flash.events.*; import flash.ui.*; public class Back_lst extends Object { public func

ReferenceError:Error#1065:变量NativeApplication不可用 定义

导入relavnet软件包时显示:
import flash.desktop

 import ISC.*;
    import flash.desktop.*;
    import flash.events.*;
    import flash.ui.*;

    public class Back_lst extends Object
    {
        public function Back_lst()
        {
            Game.gameLink.addEventListener(Event.DEACTIVATE, this.exit2_fnc);
            Game.gameLink.addEventListener(Event.ACTIVATE, this.return_fnc);
            NativeApplication.nativeApplication.addEventListener(KeyboardEvent.KEY_DOWN, this.exit_fnc);
            return;
        }// end function

是的,它没有成功导入。为什么?对不起,我误解了这个问题。你是在创建Air项目吗?检查设置,您可能只发布swf文件。