0
votes

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:

enter image description here

I want to use the AbstactIdManager class in my View videochat.mxml

Any suggestion? Thanks!

1

1 Answers

1
votes

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.