# StrokeStyle not LineStyle

**URL:** https://forum.kirupa.com/t/strokestyle-not-linestyle/282158
**Category:** flash
**Created:** [February 18, 2009, 11:30am UTC](https://forum.kirupa.com/t/strokestyle-not-linestyle/282158 "2009-02-18T11:30:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![grandpaw\_broon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/grandpaw_broon/32/3985_2.png) [@grandpaw\_broon](https://forum.kirupa.com/u/grandpaw_broon)
#### Post date: [February 18, 2009, 11:30am UTC](https://forum.kirupa.com/t/strokestyle-not-linestyle/282158/1 "2009-02-18T11:30:39Z")

</div>

Hi there,

For my current game i need to be able to use different stroke styles, for example as the road graphic i use a 6 pixel thick gray line and then id use a 2 pixel white “dashed” line.

Well i mocked one up in Flash but when i try to replicate it in code, i am having no joy.

There does not seem to be a graphics property for types of stroke, such as “Dotted” or “Dashed”. I know “hairline” and “solid” are catered for in LineStyle.

So there is no way to do this as far as google is concerned.

I thought instead id use a bitmap and see if that would work. There is a lineBitmapStyle() method on the graphics object according to several sources online but my Flex builder 3 does not have access to this method.

Can anyone assist me? 😃

PS: I have Flex SDK 3.2 not sure if it matters but i thought id add.
