>>AS2 101.
>>Try
>>http://www.amazon.com/Essential-ActionScript-2-0-Colin-
>>Moock/dp/0596006527/s
>>r=8-1/qid=1160106358/ref=sr_1_1/104-8535662-7712736?ie=UTF8&s=books

Unfortunately the condescending attitudes have been pretty thick her on
the list lately.  Victor, pay no mind to the attitude, your question was
perfectly legit here- it's often hard quickly to find the answer to a
specific question in books or web sites, just do as he suggested -
something like this will work (may not be the best way, but how I would
do it - you can alternatively use getter/setter methods as well):

//MyClassB.as
class MyClassB{
        public var ClassBArray:Array; 
        public function MyClassB(){
                ClassBArray  = new Array(1,2,3,4);
        }
}

//MyClassA.as
import MyClassB;
class MyClassA{
        private var theArray:Array;
        public function MyClassA(classb:MyClassB){
                theArray = classb.ClassBArray
                trace(theArray) 
        }
}       

//.fla
import MyClassB;
import MyClassA;
myClassBInstance:MyClassB = new MyClassB()
myClassAInstance:MyClassA = new MyClassA(myClassBInstance);

Hope that helps,

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
_______________________________________________
[email protected]
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