从内部包导入 Actionscript 文件
我正在尝试在我的项目的内部包中导入动作脚本文件。来自 Java 并习惯了这样
import Services.myClass.
但是当我输入时 IDE 不建议任何类
import Services.
那么如何导入我的 AbstractIdManager.as
文件?在这个动作脚本文件中,有一个名为 AbstractIdManager
的公共类,它扩展了 EventDispatcher
我的项目结构如下所示:
我想在视图中使用 AbstactIdManager
类 videochat.mxml
有什么建议吗?谢谢!
I'am trying to import an actionscript file in a internal package in my project. From Java and am used to this to like this
import Services.myClass.
But the IDE doesn't suggest any classes when I type
import Services.
So how can I import my AbstractIdManager.as
file? Inside this actionscript file, there is a public class named AbstractIdManager
which extends EventDispatcher
My project structure looks like this:
I want to use the AbstactIdManager
class in my View videochat.mxml
Any suggestion? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ActionScript 可以自动引用同一包中的那些类。
要导入类,您可以
在 mxml 文件的 CDATA 标记内使用。
ActionScript can automatically refer to those classes in the same package.
To import a class you can use
inside the CDATA tag of your mxml file.