# Change line color of drawing API

**URL:** <https://forum.kirupa.com/t/change-line-color-of-drawing-api/129602>\
**Category:** Uncategorized\
**Created:** [November 25, 2004, 6:47pm UTC](https://forum.kirupa.com/t/change-line-color-of-drawing-api/129602 "2004-11-25T18:47:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lordkiller](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@lordkiller](https://forum.kirupa.com/u/lordkiller)\
**Post date:** [November 25, 2004, 6:47pm UTC](https://forum.kirupa.com/t/change-line-color-of-drawing-api/129602/1 "2004-11-25T18:47:04Z")

</div>

Drawing a line runtime with the drawing API:

\_root.createEmptyMovieClip (“line”,1);  
// with set color 0x000000 :  
lineStyle (2, 0x000000, 100);  
…  
but after the line is draw, want to change the color of “line”  
The:  
mYColor = new Color(line);  
//mYColor = new Color(\_root.line);  
myColor.setRGB(0x00FF00);

is not working, for this ☹

Is there any other way to change the color or need to draw again the line?
