# Question about drawing

**URL:** <https://forum.kirupa.com/t/question-about-drawing/116951>\
**Category:** Uncategorized\
**Created:** [July 22, 2004, 7:16pm UTC](https://forum.kirupa.com/t/question-about-drawing/116951 "2004-07-22T19:16:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mad\_man](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@mad\_man](https://forum.kirupa.com/u/mad_man)\
**Post date:** [July 22, 2004, 7:16pm UTC](https://forum.kirupa.com/t/question-about-drawing/116951/1 "2004-07-22T19:16:04Z")

</div>

hello i am very new to flash and i was reading this tutorial on drawing :

[http://www.kirupa.com/developer/actionscript/tricks/drawing\_api.htm](http://www.kirupa.com/developer/actionscript/tricks/drawing_api.htm)

and it said put this code into ur first frame i did then i went to test movie and nothing happens. Oh yea and i have Flash 5. how come it doesnt work. it just shows white page.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2004, 7:17pm UTC](https://forum.kirupa.com/t/question-about-drawing/116951/2 "2004-07-22T19:17:32Z")

</div>

is your background color white ? change it to black.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2004, 7:20pm UTC](https://forum.kirupa.com/t/question-about-drawing/116951/3 "2004-07-22T19:20:03Z")

</div>

well i just changed it to black and still no results

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2004, 7:22pm UTC](https://forum.kirupa.com/t/question-about-drawing/116951/4 "2004-07-22T19:22:46Z")

</div>

i did file\>new  
modify\>movie and change bg to black  
then right click on first frame and click actions  
and pasted:  
// First I create a clip that will hold  
// my line (it could be the \_root)  
\_root.createEmptyMovieClip(“holder”,1);  
// I define the style of the line  
// 1: thickness  
// 0x000000: color (white)  
// 100: alpha  
holder.lineStyle(1,0x000000,100);  
// I put the pen at (150,200)  
holder.moveTo(150,200);  
// I draw a line to the point (300,200)  
holder.lineTo(300,200);

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2004, 7:28pm UTC](https://forum.kirupa.com/t/question-about-drawing/116951/5 "2004-07-22T19:28:49Z")

</div>

The drawing api first appeared in Flash MX, won’t work in Flash 5
