# Resizing invisible buttons?

**URL:** <https://forum.kirupa.com/t/resizing-invisible-buttons/121782>\
**Category:** Uncategorized\
**Created:** [September 7, 2004, 4:51am UTC](https://forum.kirupa.com/t/resizing-invisible-buttons/121782 "2004-09-07T04:51:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![3rdeye](https://avatars.discourse-cdn.com/v4/letter/3/58f4c7/32.png) [@3rdeye](https://forum.kirupa.com/u/3rdeye)\
**Post date:** [September 7, 2004, 4:51am UTC](https://forum.kirupa.com/t/resizing-invisible-buttons/121782/1 "2004-09-07T04:51:27Z")

</div>

I’m loading jpegs dynamically and have an invisible button over top to cycle through them, but I can’t seem to get the “hit” part of the button to resize. Here’s my code:

var myMCL = new MovieClipLoader();

myMCL.loadClip(“images/db/body/”+imgLoad.imgLocal,"\_root.holder1.chapter1.holder2.combo1.imgHolder");

myMCL.onLoadInit = function(targetMC) {  
[indent]imgHit.\_x = targetMC.\_x;  
imgHit.\_y = targetMC.\_y;  
imgHit.\_width = targetMC.\_width;  
imgHit.\_height = targetMC.\_height;  
[/indent] }  
where “imgHit” is the instance of my button;  
the image loads no problems and a few other bits of code I have (resizing and centering) work fine… but I can’t get the button resized… any tips?

cheers
