package skins.AV { import mx.skins.ProgrammaticSkin; public class LeftButton extends ProgrammaticSkin { override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { var arrowColor: uint = 0xFFFFFF; var arrowAlpha: Number = 0.4; switch (name) { case 'upSkin': arrowAlpha = 0.3; break; case 'downSkin': arrowAlpha = 0.5; break; case 'disabledSkin': alpha = 0.3; break; default: break; } with (graphics) { clear(); beginFill(arrowColor, arrowAlpha); moveTo(0, unscaledHeight/2); lineTo(unscaledWidth, unscaledHeight/2-unscaledHeight*0.2) lineTo(unscaledWidth, unscaledHeight/2+unscaledHeight*0.2) lineTo(0, unscaledHeight/2); endFill(); } drawRoundRect(0,0,unscaledWidth,unscaledHeight,0,0,0); } } }