AS3: Library MovieClips & Classes: Question about folder structure with .as files

I’m trying to find out if there is a better way to do this…
Creating an MovieClip - storing it in the library and giving it in properties a Class name. Then I write a custom Class .as file - checks out fine.
Do I need to keep the .as file in the same directory as the .fla in order for it to work?

  1. IN FLA - I created a MovieClip and then removed it from the stage - in the library I went into PROPERTIES and gave it a Class Name (aka linkage in AS2 terms) “MyCustomMovieClip.”

  2. I created an external AS3 File - I have a public function setLabel - the .as file is error free

  3. IN FLA - I created an instance of the Class MyCustomMovieClip on the maintimeline code, call the function setLabel from my MyCustomMovieClip Class and add it to the stage…so:

    var MyMovieClip1: MyCustomMovieClip = new MyCustomMovieClip();
    MyMovieClip1.setLabel();
    addChild(MyMovieClip1);

This works fine…when the .as file is store in the same folder as the .fla…but I want to keep my .as files stored in folders for organizational purposes.

THE PROBLEM:
I noticed that MyCustomMovieClip.as MUST BE IN THE SAME DIRECTORY/FOLDER AS THE .FLA - in order for the MyCustomMovieClip Class to work in the .fla. And this will allow you to call the setLabel function correctly.

THIS IS WHAT I WOULD LIKE TO DO:
I would like to keep my .as files organized like this - com/navigation - and place the MyCustomMovieClip.as file in the navigation folder instead of have it in the same folder with .fla file. If I place the MyCustomMovieClip.as file in any other folders - like com/navigation/ - the Class will not import correctly…will not trace anything or recognize the function setLabel when called from the .FLA. So you cannot call any MyCustomMovieClip functions.

Any idea how you can do this? Remember this is a MovieClip that exists in the .fla library and has a Class named linked to it. Then the .as file controls it.

If you can tell me how to achieve this - I’d appreciate it.

Thanks,
darkangel12483