views:

8

answers:

1

I'm having a bit of trouble getting a class to import.

Here is my filesystem:

 - com
     - test
         - class1.as
     - example
         - class2.as

I'm working on class1.as and want to import class2. How can I do that?

The following doesn't seem to work:

import com.example.class2;

How can I access class2 from class1?

+1  A: 

Have you tried to import example.class2 instead of com.example.class2? And make sure that the example package is specified in class2.as

Pieter van Niekerk
The answer to both your questions is yes.
George Edison
Could you please send examples of your classes?
Pieter van Niekerk
@Pieter: Sorry I haven't got back to this question in a while... anyway, turns out it was something wrong I was doing, and under normal circumstances, my example above should work fine. Anyway, +1 for trying to help.
George Edison