Classes and addChild from MainTimeline

Customer.as extends MovieClip

 
public function BuildCustomer(x1,i) {
   var customer:CustomerContainer=new CustomerContainer; // linkage of movieclip to attach
   addChild(customer);
   var tmp_frame:Number=Math.floor(Math.random() * customer.totalFrames);
   customer.gotoAndStop(tmp_frame);
   customer.name="mc_cust_"+i;
   customer.txt_count.text=String(sum_total);
   customer.x=x1+i*(customer.width+55);
   customer.y=200;
  }

Main File .fla timeline


for (var i=0; i<5; i++) {
 var cust:Customer=new Customer(200,i);
 addChildAt(cust,i);
}

This works and outputs 5 customers on the stage…

How do I manipulate and call them from the main timeline
say if I want to move customer 1 to an x position of 0

Thanks for the help. Slowly migrating to AS3 from 2…just so much faster to go with what you know…