There is, import class B within class A, having multiple imports of the same
class won't cause the compiler to compile the same class more than once.

import B;

class A {

function A(){
var bInstance = new B();
}

}

you can also do something like this:

import B;

class A {

private var _bInstance:B;

function A(bInstanceArg:B){
_bInstance = bInstance;
}

}

hope this helps,

M.
On 3/21/06, Patrick Jean <[EMAIL PROTECTED]> wrote:
>
> Greetings. I'm pretty new to the external AS files concept and I have a
> quick question.
>
>
>
> I made a first external class, let's call it "Class A"
>
>
>
> I also created a second external class. Let's call it "Class B"
>
>
>
> If I want to properly reference Class B from within the Class A  AS file ,
> what is the best way to do it ?
>
>
>
> Do I just have to import class B before class A within my FLA ? That
> sounds
> not very efficient. So I assume there's a way to make classe B accessible
> by
> class A from within the AS file.
>
>
>
>                         Thanks a lot.
>
>
>
>
>
> Patrick Jean
>
> Directeur de projets internet
>
> Monac'OH Data Mercantour
>
> http://www.monacoh.com
>
>
>
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to