Here’s the story, I’ve been using some Drawing API lately and now I wanted to draw a little plus-sign using it. This is how I did it:
this.createEmptyMovieClip("plus", 1);
plus.lineStyle(1, 0x0066FF, 100);
plus.moveTo(100, 100);
plus.lineTo(107, 100);
plus.moveTo(103, 97);
plus.lineTo(103, 104);
Test Movie:

Looks correct but not 100% sure, so I thought “What about zooming in? :q:”
This is what happened:

So I tried to cover my first reasoning a bit, instead of zooming, making a script that can also make bigger plus-signs. Like that I could check -instead of zooming- by simply publishing again. This is the code:
MovieClip.prototype.drawPlus = function(_startP, _armLength) {
this.createEmptyMovieClip("plus", 2);
plus.lineStyle(1, 0xFF0066, 100);
// This is a random startvalue, I took the same for _x and _y. Doens't matter here:
plus.moveTo(_startP, _startP);
// This draws the horizontal rule: 2*_armlength + 1 pixel for the center:
plus.lineTo(_startP+(2*_armLength)+1, _startP);
// Moves the mouse to 1*_armLength horizontally, and 1*_armLength vertically (check the pic for a clearer view)
plus.moveTo(_startP+_armLength, _startP-_armLength);
// Draws the vertical rule: again 2*_armlength + 1 pixel for the center:
plus.lineTo(_startP+_armLength, _startP+_armLength+1);
};
drawPlus(50, 20);
This image might help to understand what I’m doing in the code. It also made me believe that it’s simply the zoom that’s making it look wrong.
This isn’t really the most exciting subject in Flash, but when I see something like this I always want to know why it happens
Even if it’s as [size=1]stupid[/size] as this :evil2:
Is there someone who knows? :ko: