# Adding a property to a movieclip

**URL:** <https://forum.kirupa.com/t/adding-a-property-to-a-movieclip/293808>\
**Category:** Uncategorized\
**Created:** [August 4, 2009, 7:23am UTC](https://forum.kirupa.com/t/adding-a-property-to-a-movieclip/293808 "2009-08-04T07:23:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RossKidd](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@RossKidd](https://forum.kirupa.com/u/RossKidd)\
**Post date:** [August 4, 2009, 7:23am UTC](https://forum.kirupa.com/t/adding-a-property-to-a-movieclip/293808/1 "2009-08-04T07:23:42Z")

</div>

Hi,

I have the 4 countries of the UK that get scaled up on click. I because each country is a different sizes geographically they do not scale up by the same amount. I would like to set a pixel scale size like this (scotland is the name of the movieclip)

scotland.expandWidth = 246;  
scotland.expandHeight = 406;

The problem I am having is getting this value when the country is clicked, tried few things but nothing works.

trace(MovieClip(evt.target).expandWidth)  
trace(evt.target.name.expandWidth);

Thanks,

RK
