当前位置: 动力学知识库 > 问答 > 编程问答 >

flex - Import a Actionscript file from a internal package

问题描述:

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!

网友答案:

ActionScript can automatically refer to those classes in the same package.
To import a class you can use

import Services.AbstractIdManager  

inside the CDATA tag of your mxml file.

分享给朋友:
您可能感兴趣的文章:
随机阅读: