addChild method

hi guys,

i’m very new in AS3 and i’m still in process of learning and i have question, which is probably very simple. Situation is next, i have two movie clips and both are rectangle shape, one is for background , and other is smaller one, and i with method addchild() add smaller to bigger one. Why the smaller rectangle lose his position and shape (he has much bigger height)

var big:Rectangle1=new Rectangle1(); //big
big.x=150;
addChild(big);

var small:Rectangle2=new Rectangle2(); //small
small.x=100;
big.addChild(small);

//small lose his shape and position, his position it’s not on 100px from left side of big and he also lose his shape