Skip to content

Instantly share code, notes, and snippets.

@zmack
Created July 21, 2008 20:07
Show Gist options
  • Save zmack/75 to your computer and use it in GitHub Desktop.
Save zmack/75 to your computer and use it in GitHub Desktop.
private function drawTotalParticipation():void {
this.graphics.lineStyle(1, 0x00FFFF);
this.graphics.moveTo(0, 300);
this.graphics.beginFill(0x00FFFF);
for( var i:uint = 0; i < _data.length - 1; i++ ) {
//this.graphics.drawCircle(i*10, 300 - _data[i].total, 2);
this.graphics.lineTo((i+1)*10, 300 - _data[i+1].total);
}
//this.graphics.drawCircle((_data.length - 1)*10, 300 - _data[_data.length - 1].total, 2);
this.graphics.lineTo(( _data.length-1 )* 10, 300);
this.graphics.lineTo(0, 300)
this.graphics.endFill();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment