Flash error 5000 failed: class ... must be a subclass of 'flash.display.MovieClip'

I get the following error in my flash project 5000: the class ... must subclass "flash.display.MovieClip" because it is associated with a library symbol of this type. I looked at the class and made sure to import flash.display.MovieClip, and I do it. I tried to change the base class in a link to flash.display.MovieClip, but received the following message: "The specified base class is a native class and will be defined in the player at runtime. It cannot be edited."

How can I fix this problem? Thanks in advance, Kfir

+1
source share
4 answers

Well, I had the same error in another project, and I decided to post the solution. For some strange reason, this error may occur if the project links are invalid. In my case, all I had to do was go to File-> Publish Settings-> Flash-> Settings and update all the paths there. This solved my problem.

I hope this helps other people, and maybe someone from the flash team will see this and fix this error.

+1
source

imports the class MovieClip, you get it halfway, you should actually extend the class with MovieClip.

t)

package
{
    import flash.display.MovieClip

    public class MyClass extends MovieClip
    {

    .....
+3
source

. , , kfir ... File- > Publish Settings- > Flash- > ... miniclip. , , ( ), ...

, .

0

: flash-, , , 5000, !

0

All Articles