Skip navigation
lashascript
Currently Being Moderated

Different WindowFoot.height?

Dec 24, 2010 6:10 AM

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?

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points