2013-12-16 55 views
0

我正在升级外部Flash游戏的加载程序(该加载程序已经写入并且正在运行,但我一直在使用Flash Builder的早期版本(不是sdk!)来编写它) 我需要的是查看项目中不存在我的代码的哪些类别......目前它只是编译所有有错误或没有错误的代码,并且不会向我显示任何错误或警告。Flash Builder 4.7编译有错误的项目

我认为该示例将说明我的意思:

我有一个工作功能至极编译没有错误:

protected function init(event:Event = null) : void 
    { 
     Living.movie.removeEventListener(Event.ADDED_TO_STAGE, this.init); 
     this.GamePlayer = Living.movie.parent.parent; 
     this.Map = this.GamePlayer.map; 
     this.Map.addEventListener(Event.REMOVED_FROM_STAGE, this.dispose); 
    } 

我更改此功能:

protected function init(event:Event = null) : void 
    { 
        NotExistingClassOrVariable = OMGIT will compile and so on; 
     Living.movie.removeEventListener(Event.ADDED_TO_STAGE, this.init); 
     this.GamePlayer = Living.movie.parent.parent; 
     this.Map = this.GamePlayer.map; 
     this.Map.addEventListener(Event.REMOVED_FROM_STAGE, this.dispose); 
    } 

和上面的函数编译没有任何错误太多....我可以写一个函数体内任何东西 - 它会编译(但它不会工作ofcaurse )...

请帮我解决这个问题 - 试图解决它已经8个小时。

而且对不起,我真的不好英语=(

+0

你创造了什么样的项目flashbuilder? –

+0

@Binou它的动作脚本项目 – CodeDemen

+1

在项目的属性中,您是否在动作脚本编译器选项卡中检查“启用严格类型检查”和“启用警告”? –

回答

0

解决通过重新安装Flash Builder中的一个问题。我不知道为什么会发生,但它似乎是IDE错误。