# Drawing Api

**URL:** <https://forum.kirupa.com/t/drawing-api/157416>\
**Category:** Uncategorized\
**Created:** [August 1, 2005, 9:10pm UTC](https://forum.kirupa.com/t/drawing-api/157416 "2005-08-01T21:10:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abbe](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Abbe](https://forum.kirupa.com/u/Abbe)\
**Post date:** [August 1, 2005, 9:10pm UTC](https://forum.kirupa.com/t/drawing-api/157416/1 "2005-08-01T21:10:12Z")

</div>

Hi!

I need some help with my script. I got three objects called “a”, "b "and “c”.  
Why are this script not working:

\_root.onEnterFrame = function() {  
\_root.createEmptyMovieClip(“Holder,1”);  
Holder.lineStyle(5,0,100);  
Holder.beginFill(0x00ff00,50);  
Holder.lineTo(\_root.b.\_x,\_root.b.\_y);  
Holder.moveTo(\_root.a.\_x,\_root.a.\_y);  
Holder.lineTo(\_root.c.\_x,\_root.c.\_y);  
Holder.moveTo(\_root.a.\_x,\_root.a.\_y);  
Holder.lineTo(\_root.b.\_x,\_root.b.\_y);  
Holder.moveTo(\_root.c.\_x,\_root.c.\_y);  
Holder.endFill();  
};

Thanks,  
Albert
