# Drawing API set stroke style?

**URL:** <https://forum.kirupa.com/t/drawing-api-set-stroke-style/186573>\
**Category:** flash\
**Created:** [April 22, 2006, 1:53pm UTC](https://forum.kirupa.com/t/drawing-api-set-stroke-style/186573 "2006-04-22T13:53:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ozute](https://avatars.discourse-cdn.com/v4/letter/o/bbe5ce/32.png) [@Ozute](https://forum.kirupa.com/u/Ozute)\
**Post date:** [April 22, 2006, 1:53pm UTC](https://forum.kirupa.com/t/drawing-api-set-stroke-style/186573/1 "2006-04-22T13:53:05Z")

</div>

Hi there,

Does anyone know how to set the stroke style for lines created with the movieclip.lineStyle function? For example to create dashed lines with the drawing API?

---

<div class="post-metadata">

**Author:** ![flextnet](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@flextnet](https://forum.kirupa.com/u/flextnet)\
**Post date:** [April 22, 2006, 4:28pm UTC](https://forum.kirupa.com/t/drawing-api-set-stroke-style/186573/2 "2006-04-22T16:28:29Z")

</div>

In Flash 8 there are new parameters to the lineStyle() method:

The lineStyle method is part of the MovieClip class. There are eight properties you can modify for the lineStyle method.

Thickness  
RGB  
Alpha  
PixelHinting  
noScale  
Cap Style  
Joint Style  
Miter Limit

[http://www.informit.com/guides/content.asp?g=flash&seqNum=347&rl=1](http://www.informit.com/guides/content.asp?g=flash&seqNum=347&rl=1)

Still doesn’t look like you can do dashed lines though :ko:

---

<div class="post-metadata">

**Author:** ![Rustyd](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@Rustyd](https://forum.kirupa.com/u/Rustyd)\
**Post date:** [April 22, 2006, 5:05pm UTC](https://forum.kirupa.com/t/drawing-api-set-stroke-style/186573/3 "2006-04-22T17:05:13Z")

</div>

You might check this article by Macromedia:  
[http://www.macromedia.com/devnet/flash/articles/adv\_draw\_methods.html](http://www.macromedia.com/devnet/flash/articles/adv_draw_methods.html)

It shows how to create a dashed line.
