hi, i am experimenting with the drawing methods. I have created this code
_root.createEmptyMovieClip(“line”, 1);
drawIT.onPress = function() {
cool = function () {
i++;
with (line) {
lineStyle(0, 0x000000, 50);
moveTo(100, 100);
if (i<=50) {
lineTo(100+i, 100+i);
}
}
};
setInterval(cool, 10);
};
clearIT.onPress = function() {
with (line) {
clear();
}
};
The good news: It actually draws a line from (100,100) to (150,150) and it clears the line when i press the clearIT button…
The bad news: After i press the clearIT button, the drawIT button doesnt draw the line anymore…
So, my question is : How do i bring my line back?..
Thanx in advance,
alphaOne.