加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

actionscript-3 – 是否首选导入类(例如import flash.events.Mou

发布时间:2020-12-15 07:24:33 所属栏目:百科 来源:网络整理
导读:指定您打算在代码开头使用哪个类,函数或命名空间有什么好处? 解决方法 the reference says: If you import a class but do not use it in your script,the class is not exported as part of the SWF file. This means you can import large packages with
指定您打算在代码开头使用哪个类,函数或命名空间有什么好处?

解决方法

the reference says:

If you import a class but do not use it in your script,the class is
not exported as part of the SWF file. This means you can import large
packages without being concerned about the size of the SWF file; the
bytecode associated with a class is included in a SWF file only if
that class is actually used. One disadvantage of importing classes
that you do not need is that you increase the likelihood of name
collisions.

但是,对于我来说,拥有在后面的代码中使用的类的确切列表会更方便

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读