How to make a line between to movieClip inside a MovieClip?
Hi everybody
I'm trying to convert AS3 to HTML and I need to call a MovieClip from the library, and inside the movieClip I have tow clips and I want make a line between the both.
I write this code, but he don't want work (I'm french and very beginner)
"
let root = this;
var MakeTheLine = new createjs.Shape();
let Line_mc = new lib.LineMovieClip();
this.addChild(Line_mc);
Line_mc.x=100;
Line_mc.y=100;
function MakeTheLine(){
MakeTheLine.graphics.clear();
MakeTheLine.graphics.setStrokeStyle(3);
MakeTheLine.graphics.beginStroke("#000000");
MakeTheLine.graphics.moveTo(Line_mc.Dot1.x,Line_mc.Dot1.y);
MakeTheLine.graphics.lineTo(Line_mc.Dot2.x,Line_mc.Dot2.y);
}
MakeTheLine()
"
Thanks for everything
Romain
