PDA

View Full Version : AS test



kirupa
January 22nd, 2005, 10:12 PM
_root.blarg();

Voetsjoeba
January 23rd, 2005, 08:25 AM
Assenstelsel.prototype.tekenVeld = function(col) {
this.ref.__as_veld.lineStyle(0, col, 100);
var leftStart = Math.floor(-this.center.x/this.unit);
var rightEnd = Math.floor((Stage.width-this.center.x)/this.unit);
for (var i = leftStart; i<=rightEnd; i++) {
curX = this.center.x+(i*this.unit);
this.ref.__as_veld.moveTo(curX, Stage.height);
this.ref.__as_veld.lineTo(curX, 0);
}
var bottomStart = -Math.floor((Stage.height-this.center.y)/this.unit);
var topEnd = Math.floor(this.center.y/this.unit);
for (var i = bottomStart; i<=topEnd; i++) {
curY = this.center.y-(i*this.unit);
this.ref.__as_veld.moveTo(0, curY);
this.ref.__as_veld.lineTo(Stage.width, curY);
}
};


Seems to be working :)

senocular
January 23rd, 2005, 08:26 AM
has that inital line break always been there? &#160;