package com.oxylusflash.book { import flash.display.Sprite; public class ScrollButton extends ScrollBarPartAni { /** * Scrollbar scroll button. */ public function ScrollButton() { } override public function get height():Number { return bgMc.height; } override public function set height(value:Number):void { value = Math.max(10, Math.round(value)); bgMc.height = value; iconNormal.y = Math.round((value - iconNormal.height) * 0.5); iconOver.y = iconNormal.y; } } }