无法解决 Flash 错误 5000:该类...必须子类化“flash.display.MovieClip”
我的 Flash 项目出现以下错误 5000:类...必须是“flash.display.MovieClip”的子类,因为它链接到该类型的库元件。 我查看了该类并确保导入了 flash.display.MovieClip 并且确实导入了。我尝试将链接中的基类更改为 flash.display.MovieClip,但收到以下消息:“指定的基类是本机类,将在运行时在播放器中定义。无法对其进行编辑。”
我该如何解决这个问题? 提前致谢, 幼崽
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
导入
MovieClip
类就完成了一半,您实际上还必须使用MovieClip
扩展该类。IE)
importing the
MovieClip
class gets you halfway there, you have to actually extend the class withMovieClip
as well.ie)
好吧,我刚刚在另一个项目中遇到了同样的错误,并决定我应该发布解决方案。由于某些奇怪的原因,当项目的引用无效时,可能会发生此错误。
就我而言,我所要做的就是转到“文件”->“发布设置”->“Flash”->“设置”并更新那里的所有路径。这解决了我的问题。
我希望这能帮助其他人,也许 Flash 团队的人会看到这个并修复这个错误。
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.
当我从台式电脑传输文件到笔记本电脑时,我遇到了同样的问题。实际上,我尽了一切努力,但是 kfir 解决方案让我走上了好路...刷新文件->发布设置->Flash->设置中的所有路径对我来说还不够...我也必须重写 miniclip 属性中类的所有路径。更准确地说,我什至必须将其删除,单击勾选图标(以验证路径为空),然后再次重写路径并重新勾选...
听起来确实很连线,但对我来说确实有用。
I had the same problem when transfering my files from my desktop computer on my laptop. Actually I tried all I can, but the kfir solution put me on the good way... Refreshing all the paths in File->Publish Settings->Flash->Settings wasn't enough for me... I also had to rewrite all the paths to classes in the miniclip properties. To be more precise, I even had to remove it, click on the tick icon (to validate the path blank), and rewrite the path again and re-tick...
Sounds really wired but does work for me.
已解决:我从其他运行良好的闪存导出了发布设置,
将它们导入给我错误 5000 的文档中,它解决了问题!
Solved: I exported the Publish Settings from other flash that worked well,
imported them in the document that gave me error 5000, and it solved the problem!
我在一个动画文件项目上工作,当我遇到同样的错误时,我尝试了很多方法来修复它,而不会失去相机的权限......我在我的文件中搜索损坏的影片剪辑,我发现它是一个图层我从 adobe illustrator 复制/导入,上面有一个蒙版,动画将其读取为影片剪辑,但无法将其渲染为一个,所以我只是删除了蒙版,文件正常渲染,
我在网上找到的所有解决方案都非常复杂,只读一下错误,发现很简单
I work on an animation file project and when I got the same error I tried a lot of ways to fix it without losing the privilege of the camera ... I search in my file for the corrupted movie clip and I discovered that's its a layer I copied/imported from adobe illustrator and has a mask on it that the animate read it as a movie clip but couldn't render it as one so I just removed the mask and the file rendered normally
all the solutions I found online are so complicated, just read the error and find it simple