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

前端 未结 7 605
梦如初夏
梦如初夏 2021-01-13 00:15

Here is the title error with complete paths:

\\\\psf\\Home\\Dropbox\\Development\\Repositories\\GIT\\i-cc\\Powerhouse\\Notes\\master\\flash\\lib\\libnote\\         


        
相关标签:
7条回答
  • 2021-01-13 00:25

    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.

    0 讨论(0)
  • 2021-01-13 00:26

    In one of your library classes (prob an SWC), do you have an asset with the export name of NotesCore? I think the compiler's getting mixed up here - It's trying to resolve 2 separate classes with the same name.

    If you want to add the other functionality (onAddedToStage() etc), extend the class coming from the swc. Something like:

    public class NotesCoreEx extends NotesCore
    {
    ...
    }
    
    0 讨论(0)
  • 2021-01-13 00:27

    Check your Action script settings and the path. There are chances that it may not be pointing to the correct file.

    0 讨论(0)
  • 2021-01-13 00:33

    For others who may come across this:

    Am doing an assignment for my university course and so am very new to flash. The error went away for me after I added extends flash.display.MovieClip to the end of my class declaration.

    For example:

    public class MyClassName extends flash.display.MovieClip
    
    0 讨论(0)
  • 2021-01-13 00:44

    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.

    0 讨论(0)
  • 2021-01-13 00:49

    If you want to add the other functionality (onAddedToStage() etc), extend the class coming from the swc. Something like:

    public class NotesCoreEx extends NotesCore
    {
    ...
    }
    
    0 讨论(0)
提交回复
热议问题