Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 262
chrisburke.io Avatar asked Sep 05 '11 09:09

chrisburke.io


2 Answers

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.

like image 52
SharkAlley Avatar answered Nov 02 '22 14:11

SharkAlley


I had this same issue. This might seem stupid (i'm new to AS3), but having this:

class test extends shape {

caused the issue.

I changed it to

class test extends sprite {

and the issue was resolved.

like image 32
teynon Avatar answered Nov 02 '22 15:11

teynon