# How to change a rectangle's border color on hover?

**URL:** <https://forum.kirupa.com/t/how-to-change-a-rectangles-border-color-on-hover/310301>\
**Category:** flash\
**Created:** [June 7, 2010, 7:34am UTC](https://forum.kirupa.com/t/how-to-change-a-rectangles-border-color-on-hover/310301 "2010-06-07T07:34:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![humbucker](https://avatars.discourse-cdn.com/v4/letter/h/278dde/32.png) [@humbucker](https://forum.kirupa.com/u/humbucker)\
**Post date:** [June 7, 2010, 7:34am UTC](https://forum.kirupa.com/t/how-to-change-a-rectangles-border-color-on-hover/310301/1 "2010-06-07T07:34:14Z")

</div>

Hi!

My question will be pretty straightforward : how can I change or tween the color of a dynamic rectangle’s borders ? (created with LineTo)

I d’like the color to change when I hover the rectangle…  
Right now I 've always been to change the global color of the rectangle with it changes the color of the borders too.

Help?  
Thank you guys!
