无法解决flash错误5000:类...必须子类'flash.display.MovieClip'(Unable to solve flash error 5000: The class … must subclass 'flash.display.MovieClip')

我在我的flash项目5000上遇到以下错误:类...必须子类'flash.display.MovieClip',因为它链接到该类型的库符号。 我查看了课程并确保导入flash.display.MovieClip并且我这样做。 我尝试将链接中的基类更改为flash.display.MovieClip但是我收到以下消息:“指定的基类是本机类,将在运行时在播放器中定义。无法编辑。”

我该如何解决这个问题? 先谢谢,Kfir

I'm getting the following error on my flash project 5000: The class ... must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type. I looked at the class and made sure that I import flash.display.MovieClip and I do. I tried to change the base class in the linkage to flash.display.MovieClip but I got the following message: "The base class specified is a native class and will be defined in the player at runtime. It cannot be edited."

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

最满意答案

导入MovieClip类会让你到达那里,你必须使用MovieClip实际扩展类。

即)

package { import flash.display.MovieClip public class MyClass extends MovieClip { .....

Well I just had the same bug in another project and decided that I should post the solution. For some bizarre reason this error may occur when the references of the project are invalid. In my case all I had to do is go to File->Publish Settings->Flash->Settings and update all the paths there. That solved my problem.

I hope this will help other people out there and maybe the someone from the flash team will see this and patch this bug.

无法解决flash错误5000:类...必须子类'flash.display.MovieClip'(Unable to solve flash error 5000: The class … must subclass 'flash.display.MovieClip')

我在我的flash项目5000上遇到以下错误:类...必须子类'flash.display.MovieClip',因为它链接到该类型的库符号。 我查看了课程并确保导入flash.display.MovieClip并且我这样做。 我尝试将链接中的基类更改为flash.display.MovieClip但是我收到以下消息:“指定的基类是本机类,将在运行时在播放器中定义。无法编辑。”

我该如何解决这个问题? 先谢谢,Kfir

I'm getting the following error on my flash project 5000: The class ... must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type. I looked at the class and made sure that I import flash.display.MovieClip and I do. I tried to change the base class in the linkage to flash.display.MovieClip but I got the following message: "The base class specified is a native class and will be defined in the player at runtime. It cannot be edited."

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

最满意答案

导入MovieClip类会让你到达那里,你必须使用MovieClip实际扩展类。

即)

package { import flash.display.MovieClip public class MyClass extends MovieClip { .....

Well I just had the same bug in another project and decided that I should post the solution. For some bizarre reason this error may occur when the references of the project are invalid. In my case all I had to do is go to File->Publish Settings->Flash->Settings and update all the paths there. That solved my problem.

I hope this will help other people out there and maybe the someone from the flash team will see this and patch this bug.