为什么Flash CS3在导出动作脚本(as3)时要求您指定基类? [英] Why does Flash CS3 require you to specify the base class when exporting for actionscript (as3)?

查看:184
本文介绍了为什么Flash CS3在导出动作脚本(as3)时要求您指定基类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在该库中,右键单击已写入ActionScript类的动画片段,然后选择链接...。请注意,基类字段不是空的(不能)。它很可能是 flash.display.MovieClip ,但它可能是别的,取决于你的类继承。这个基类字段只有在为ActionScript 3发布的时候才需要。



那么谁能告诉我为什么Flash CS3坚持要在ActionScript文件中提供基类>和链接对话框?如果两个地方的基类不同,它仍然可以正常发布,链接对话框似乎被忽略(只要它是有效的)。



什么是基类字段!

解决方案

我经常使用它,因此为多个对象设置相同的基类为他们创建单独的.as文件。这是很有用的,当你做更多的图形类型的东西,并不需要单独的类,但需要以编程方式创建它们。



我不知道为什么允许你在这里设置不正确的参数,我怀疑这是从输入Flash IDE总是非常放松的观点的遗产。

In the library, right-click on a movieclip that you have written an ActionScript class for and select "Linkage...". Notice that the "Base class" field is not empty (it can't be). It's likely to be flash.display.MovieClip, but it could be something else, depending on what your class inherits from. This base class field is only required when publishing for ActionScript 3.

So can anyone tell me why Flash CS3 insists on me providing the base class in both the ActionScript file and the Linkage dialog? If the base class differs between the two locations, it can still be published without errors, and the Linkage dialog just seems to be ignored (as long as it's valid).

What is the point of the Base class field!?

解决方案

I often use it so set the same base class for multiple objects without creating separate class .as files for them. It's useful when you're doing more graphical type stuff and don't really need separate classes, but do need to create them programatically.

I don't know why it allows you to set incorrect parameters here, I suspect it's an heritage from the very "relaxed view" on typing the Flash IDE always had.

这篇关于为什么Flash CS3在导出动作脚本(as3)时要求您指定基类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆