# Keep stroke weight while changing width

**URL:** <https://forum.kirupa.com/t/keep-stroke-weight-while-changing-width/306476>\
**Category:** flash\
**Created:** [March 16, 2010, 10:35am UTC](https://forum.kirupa.com/t/keep-stroke-weight-while-changing-width/306476 "2010-03-16T10:35:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarMel](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@MarMel](https://forum.kirupa.com/u/MarMel)\
**Post date:** [March 16, 2010, 10:35am UTC](https://forum.kirupa.com/t/keep-stroke-weight-while-changing-width/306476/1 "2010-03-16T10:35:29Z")

</div>

Hi guys,

I have a movieclip ‘cursor’ with in it two rectangles. One of them is dark and one is light, so the cursor is blinking. Now, when I want to change the width of this cursor to 150 (where it was 30 before), I do:

```auto
cursor.width = 150;

```

This not only changes the width of this movieclip, but also the weigth of the (whole) stroke of the two recangles. How can I prevent this strokechange from happening?

Thanks in advance!  
MarMel
