# How to change the size of a moveClip with pixels

**URL:** <https://forum.kirupa.com/t/how-to-change-the-size-of-a-moveclip-with-pixels/304946>\
**Category:** flash\
**Created:** [February 17, 2010, 12:55am UTC](https://forum.kirupa.com/t/how-to-change-the-size-of-a-moveclip-with-pixels/304946 "2010-02-17T00:55:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fs\_tigre](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@fs\_tigre](https://forum.kirupa.com/u/fs_tigre)\
**Post date:** [February 17, 2010, 12:55am UTC](https://forum.kirupa.com/t/how-to-change-the-size-of-a-moveclip-with-pixels/304946/1 "2010-02-17T00:55:43Z")

</div>

Hi,

Is it possible to change the size of a moveClip on the stage by pixels instead of scaling it with scaleX and scaleY? In other words I would like to be able to in crease or decrease the width and height of a movieClip using pixels.

Can someone be so kind and explain me how to do this?

[AS]// let say I have this moveClip on the stage,  
//how would you change  
// its width and height using pixels  
myBtn.addEventListener(MouseEvent.CLICK, resizeMe,false,0,true);

function resizeMe(event:MouseEvent):void{  
// amount doesn’t matter  
[//myMc.scaleX](https://myMc.scaleX) = 1;  
[//myMc.scaleY](https://myMc.scaleY) = 1;  
}[/AS]

Thanks a lot!

Learnign a lot in this forum 🙂
