5000:类“.."必须是“flash.display.MovieClip"的子类,因为它链接到该类型的库符号 [英] 5000: The class '..' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type

查看:18
本文介绍了5000:类“.."必须是“flash.display.MovieClip"的子类,因为它链接到该类型的库符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是带有完整路径的标题错误:

Here is the title error with complete paths:

\psfHomeDropboxDevelopmentRepositoriesGITi-ccPowerhouseNotesmasterflashliblibnoteNotesCore.as:1: 5000: The class 'lib.libnote.NotesCore' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.

首先,我尝试了什么以及我正在使用什么:

Firstly, what I have tried and what I am using:

  • 我正在使用 FlashDevelop 处理这个项目,并且 FlashDevelop 有已设置为使用外部 IDE (Flash CS5.5) - 没关系我是否使用 Flash 或 FlashDevelop 编译/测试作为错误仍然坚持.

  • I am working on this project using FlashDevelop, and FlashDevelop has been set to use an external IDE (Flash CS5.5) - it does not matter whether I use Flash or FlashDevelop to compile/test as the errors still persist.

我也试过取消勾选自动声明舞台实例"在发布设置中没有运气.

I have also tried un-ticking 'Automatically declare stage instances' in the publish settings without no luck.

我也试过为 extends 子句使用绝对路径(扩展 flash.display.MovieClip)

I have also tried using an absolute path for the extends clause (extends flash.display.MovieClip)

以下是 NotesCore 类的存根版本;

Below is a stubbed version of the NotesCore class;

package lib.libnote {

    /* I am importing MovieClip */
    import flash.display.MovieClip;

    ...

    /* And Extending it to the Class */
    public class NotesCore extends MovieClip {

        /* The following methods/functions are used in the class */

        public function NotesCore() {
            ... 
        }

        public function onAddedToStage(e:Event = null):void {
            ...
        }

        public function init():void {       
            ...
        }

        private function setParams():void {
            ...
        }

        private function onStageResizeLocal(event:Event):void{
            ...
        }

        private function setUpStage():void {
            ...
        }
    }
}

我主要来自 Java 背景,所以可能我误解了 ActionScript 的概念;如果有人能指出我正确的方向,我将不胜感激!

I am mainly from a Java background, so perhaps I am misunderstanding an ActionScript concept; if anybody could point me in the right direction I would be extremely grateful!

推荐答案

其他人发现这个页面,报错

For others who find this page, the error

5000:类.."必须子类化flash.display.MovieClip",因为它链接到该类型的库符号

5000: The class '..' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type

当您在项目中的某处遇到其他问题时,通常会出现.查看 Flash Builder 中的问题标签并首先修复任何其他错误.

often appears when you have other problems somewhere in your project. Look at the Problems tab in Flash Builder and fix any other errors first.

解决其他问题后,5000 错误可能会消失.

The 5000 error may go away when the other issues are fixed.

这篇关于5000:类“.."必须是“flash.display.MovieClip"的子类,因为它链接到该类型的库符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆