[FMX2004] can't get root to clear

Ok, I just started learning actionscript and decided to make something easy. Some draggable points and make a like between two of them, but I can’t clear the previous drawn line.

Could someone take a look at the code?