YLegendRight.as 389 B

12345678910111213141516
  1. package elements.labels {
  2. public class YLegendRight extends YLegendBase {
  3. public function YLegendRight( json:Object ) {
  4. super( json, 'y2' );
  5. }
  6. public override function resize():void {
  7. if ( this.numChildren == 0 )
  8. return;
  9. this.y = (this.stage.stageHeight/2)+(this.getChildAt(0).height/2);
  10. this.x = this.stage.stageWidth-this.getChildAt(0).width;
  11. }
  12. }
  13. }