/** © 2007 by Duncan Holby. www.glyfconstruct.com Protected under the Creative Commons Licence. For non-commerical use only. Feel free to use but please credit. **/ package { import flash.display.Sprite; public class Pedal extends Sprite { private var pedalWidth:uint; private var pedalHeight:uint; private var pedalHue:uint; private var displaceX:uint; private var displaceY:uint; public function Pedal(displaceX:uint=0, displaceY:uint=0, pedalHue:uint=0x000000, pedalWidth:uint=10, pedalHeight:uint=20) { this.pedalWidth = pedalWidth; this.pedalHeight = pedalHeight; this.pedalHue = pedalHue; this.displaceX = displaceX; this.displaceY = displaceY; init(); }; private function init():void { graphics.beginFill(pedalHue); graphics.drawEllipse(displaceX, displaceY, pedalWidth, pedalHeight); graphics.endFill(); }; }; };