# Drawing a simple line across the screen?

**URL:** <https://forum.kirupa.com/t/drawing-a-simple-line-across-the-screen/239873>\
**Category:** flash\
**Created:** [September 26, 2007, 7:46pm UTC](https://forum.kirupa.com/t/drawing-a-simple-line-across-the-screen/239873 "2007-09-26T19:46:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichGags](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/richgags/32/685_2.png) [@RichGags](https://forum.kirupa.com/u/RichGags)\
**Post date:** [September 26, 2007, 7:46pm UTC](https://forum.kirupa.com/t/drawing-a-simple-line-across-the-screen/239873/1 "2007-09-26T19:46:35Z")

</div>

Can someone help me draw a simple white, one pixel line across the middle of the screen at a moderate speed, with actionscript? Im having the hardest time.

I can draw a line with actionscript with

```auto
this.createEmptyMovieClip("line_mc", 10);
line_mc.lineStyle(1, 0xFFFFFF, 1000);
line_mc.moveTo(0, 0);
line_mc.lineTo(Stage.width, 0);
line_mc._x = 0;
line_mc._y = Stage.height/2;

```

But getting it to draw while the viewer is watching it is where Im stuck. Id like it to start at \_x = 0 and \_y = Stage.height/2 and go to \_x = Stage.width at a speed of about 3 seconds.

Can anyone help me out? Thanks a million!  
Rich
