please help me...
import fl.controls.Button;
var WindowFoot:Sprite;
var WindowMore:Button;
WindowFoot=new Sprite();
WindowFoot.graphics.beginFill(0x00CCFF);
WindowFoot.graphics.drawRoundRect(0,0,100,20,20);
WindowFoot.x=0;
WindowFoot.y=0;
addChild(WindowFoot);
trace(WindowFoot.height);
here WindowFoot.height is 20 px.
WindowMore=new Button();
WindowMore.y=0;
here WindowMore.height is 22 px.
WindowFoot.addChild(WindowMore);
trace(WindowFoot.height);
here WindowFoot.height is 100 px.
why is WindowFoot.height 100 px and not 22 px?
North America
Europe, Middle East and Africa
Asia Pacific