# Scaling Boxes while keeping the same stroke thickness?

**URL:** <https://forum.kirupa.com/t/scaling-boxes-while-keeping-the-same-stroke-thickness/173609>\
**Category:** Uncategorized\
**Created:** [December 27, 2005, 9:43pm UTC](https://forum.kirupa.com/t/scaling-boxes-while-keeping-the-same-stroke-thickness/173609 "2005-12-27T21:43:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SAVAGER](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@SAVAGER](https://forum.kirupa.com/u/SAVAGER)\
**Post date:** [December 27, 2005, 9:43pm UTC](https://forum.kirupa.com/t/scaling-boxes-while-keeping-the-same-stroke-thickness/173609/1 "2005-12-27T21:43:47Z")

</div>

I’m working on a project where on the “project page”, it will have 6 images with frames. The transition to get into this page will be 6 boxes with no fill, just stroke (random sizes will be generated) and will be atleast 2 times the size of the box that the actual page. they will be moving around ect. and then zoom out to the actual size.

The problem I run into is when I scale the boxes larger, the stroke get’s much thicker. I’d like the stroke to be the same thickness at %200 as it would be at %100. Is there a way to do this???

I am attaching and animating these boxes all with actionscript.

Thanks in advance!!!

---

<div class="post-metadata">

**Author:** ![1Riptide](https://avatars.discourse-cdn.com/v4/letter/1/a698b9/32.png) [@1Riptide](https://forum.kirupa.com/u/1Riptide)\
**Post date:** [June 9, 2008, 12:43pm UTC](https://forum.kirupa.com/t/scaling-boxes-while-keeping-the-same-stroke-thickness/173609/2 "2008-06-09T12:43:22Z")

</div>

[quote=SAVAGER;1739174]So simple jesus - how did I miss that…

Thanks a lot senocular - works perfectly[/quote]

BUT - this only works with solid strokes? Say it isnt so!  
When I try and use the scale drop down when using a dashed stroke…the drop down becomes disabled. Nooooo… (lol).

I am duplicating an exisiting DOM tooltip in a swf application. My task is simply to create a variable length tool tip that scales to fit the text it contains.

The tool tip has a dashed border…and I cant emulate this simply with a style or text format obj  
?  
Oh boy…the javascript crew are going to get a laugh out of this one…

---

<div class="post-metadata">

**Author:** ![1Riptide](https://avatars.discourse-cdn.com/v4/letter/1/a698b9/32.png) [@1Riptide](https://forum.kirupa.com/u/1Riptide)\
**Post date:** [June 9, 2008, 12:44pm UTC](https://forum.kirupa.com/t/scaling-boxes-while-keeping-the-same-stroke-thickness/173609/3 "2008-06-09T12:44:29Z")

</div>

[quote=1Riptide;2339294]BUT - this only works with solid strokes? Say it isnt so!  
When I try and use the scale drop down when using a dashed stroke…the drop down becomes disabled. Nooooo… (lol).

I am duplicating an exisiting DOM tooltip in a swf application. My task is simply to create a variable length tool tip that scales to fit the text it contains.

The tool tip has a dashed border…and I cant emulate this simply with a style or text format obj  
?  
Oh boy…the javascript crew are going to get a laugh out of this one…[/quote]

P.S.  
9-slice scaling doest achieve the correct result for a tooltip display obj either. Doah!
