# Tab script

**URL:** https://forum.kirupa.com/t/tab-script/164156
**Category:** flash
**Created:** [September 28, 2005, 9:43pm UTC](https://forum.kirupa.com/t/tab-script/164156 "2005-09-28T21:43:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Grimshaw](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@Grimshaw](https://forum.kirupa.com/u/Grimshaw)
#### Post date: [September 28, 2005, 9:43pm UTC](https://forum.kirupa.com/t/tab-script/164156/1 "2005-09-28T21:43:25Z")

</div>

I have some buttons that look like square tabs and I want to use a funtion to tell a movie clip to move and scale the the same size as the button that was just clicked. I can get the movie to move correctly in x and y but the scaling is not working.

movie refers to the name of the button being clicked. pointer is the movie that moves.

function Change(movie:MovieClip) {  
pointer.\_y = movie.\_y;  
pointer.\_x = movie.\_x;  
pointer.\_yscale = movie.\_yscale;  
pointer.\_xscale = movie.\_xscale;  
}

Any suggestions?
