Groups | Blog | Home
all groups > flash (macromedia) > february 2004 >

flash (macromedia) : dynamically draw a line


Alexander Ross
2/22/2004 11:37:53 PM
FLMX04

I want to be able to give a start point, and and point and a speed (oh, and
a color) and have flash dynamically draw a line. Can someone give me a
nudge in the right direction here? Thanks

Alex

phatkow
2/23/2004 5:52:01 AM
here's a nudge:
urami_
2/23/2004 2:00:41 PM

[quoted text, click to view]

this.createEmptyMovieClip("stroke", 1);
stroke._x = stroke._y=100;
parts = 0;
stroke.lineStyle(1, 0xFF0000, 100);
this.onEnterFrame = function() {
stroke.lineTo(parts, 0);
parts++;
if (parts == 500) {
this.onEnterFrame=null;
}
};





Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>

AddThis Social Bookmark Button