5000:类'..'必须继承'的flash.display.MovieClip',因为它链接到该类型的库元件因为它、到该、元件、类型

2023-09-08 12:36:35 作者:Like friend the same(像朋友一样)

下面是完整的路径标题错误:

\\psf\Home\Dropbox\Development\Repositories\GIT\i-cc\Powerhouse\Notes\master\flash\lib\libnote\NotesCore.as:1: 5000:类'lib.libnote.NotesCore必须继承'的flash.display.MovieClip',因为它链接到该类型的库元件。

首先,我曾尝试和我所用:

我在这个项目上的工作使用的是FlashDevelop,和FlashDevelop中有 被设置为使用外部的IDE(闪存CS5.5) - 不要紧 我是使用Flash或FlashDevelop中编译/测试的错误 仍然存在。

我也试着取消勾选自动声明舞台实例 在没有没有运气的发布设置。

我也尝试过使用绝对路径的延伸条款 (扩展的flash.display.MovieClip)

下面是NotesCore类的存根版本;

 包lib.libnote {

    / *我进口影片剪辑* /
    进口的flash.display.MovieClip;

    ...

    / *和它延伸到类* /
    公共类NotesCore扩展影片剪辑{

        / *下面的方法/功能中的类使用* /

        公共职能NotesCore(){
            ...
        }

        公共职能onAddedToStage(E:事件= NULL):无效{
            ...
        }

        公共职能的init():无效{
            ...
        }

        私有函数setParams()获取:无效{
            ...
        }

        私有函数onStageResizeLocal(事件:事件):无效{
            ...
        }

        私有函数setUpStage():无效{
            ...
        }
    }
}
 
从败家子到摇钱树 复盘云计算三巨头崛起之路

我主要是从一个Java的背景,所以也许我误解的ActionScript的概念;如果有人可以点我在正确的方向,我将万分感谢!

解决方案

对于其他人谁找到这个页面,误差

  

5000:类'..'必须继承'的flash.display.MovieClip',因为它   链接到该类型的库元件

通常,当您有其他问题的地方在项目中出现。看的问题标签在Flash Builder和第一修正任何其他错误。

5000错误可能会消失,当其他问题是固定的。

Here is the title error with complete paths:

\\psf\Home\Dropbox\Development\Repositories\GIT\i-cc\Powerhouse\Notes\master\flash\lib\libnote\NotesCore.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:

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.

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

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 {
            ...
        }
    }
}

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: The class '..' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type

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.

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

 
精彩推荐
图片推荐