Package confusion

I have a 2 classes located in the same folder
fe:

com.furyan.dd.Main
com.furyan.dd.Link

Main I am using as the document class for a flash project.
In Main I am creating an instance of the Link class.
The package structure I defined for Link is

package com.furyan.dd {}

Now everytime I compile the .FLA I receive an error that the class Link is in a wrong location. I dont understand why?
I defined the Document class like this: com.furyan.dd.Main

Everything is relative to your document class.

Lets say the folder “Base” is your root folder for your project.

In Base/ you can find your fla and your document class. Main.fla and Main.as

main.as:


package {
// import com.furyan.dd.Link
// public class + constructor
}

Link.as is located in Base/com/furyan/dd/


package com.furyan.dd {
// class + constructor
}

See how it goes? the package line describes the location, but the location is based on the relative path of your base class (document class).

Thank you very much, I was starting to lose motivation. These simple things drive me nuts!

[QUOTE=sekasi;2365317]Everything is relative to your document class.[/QUOTE]
Or if you define a global class path, like Adobe did for flash and fl.

Don’t come in here showing off your knowledge Canadian, it’s not appreciated

;p

:lol: Just adding.