I was experimenting with the lineTo classes and I came up with what you see in attached swf.
Now, the way I’ve done it seemed pretty laborious. I defined each coordinate for each point into a variable a referenced it like this:
pointOneX = this.logo._x;
pointOneY = this.logo._y;
pointTwoX = this.logo._x+30.8
pointTwoY = this.logo._y;
this.createEmptyMovieClip("side_mc", 1);
side_mc.beginFill(0x000000);
side_mc.lineStyle(0, 0x000000, 100);
side_mc.moveTo(midX, midY);
side_mc.lineTo(pointOneX, pointOneY);
side_mc.lineTo(pointTwoX,pointTwoY);
side_mc.lineTo(midX,midY);
side_mc.endFill();
Everything is executed inside an onPress -> onEnterFrame and the code is duplicated so I’ve got like 18 createEmptyMovieClip, but changed lineTo coordinates.
If you understood that, is there a simpler way of coding this effect?