# Scripting issues

**URL:** https://forum.kirupa.com/t/scripting-issues/139539
**Category:** Uncategorized
**Created:** [March 3, 2005, 6:50pm UTC](https://forum.kirupa.com/t/scripting-issues/139539 "2005-03-03T18:50:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![artwisted](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@artwisted](https://forum.kirupa.com/u/artwisted)
#### Post date: [March 3, 2005, 6:50pm UTC](https://forum.kirupa.com/t/scripting-issues/139539/1 "2005-03-03T18:50:03Z")

</div>

K im having problems witht his thing.  
i have buttons,that control the yscale of a movieclip, i was succesful with one, but when i make more, it scales all the clips?

button code:  
on (rollOver) {  
\_root.targYscale =400;  
}  
on (rollOut) {  
\_root.targYscale = 0;  
}

movieclip code:  
onClipEvent (load) {  
\_root.targYscale = 0;  
}  
onClipEvent (enterFrame) {  
//cXscale = this.\_xscale;  
cYscale = this.\_yscale;  
//difXscale = cXscale-\_root.targXscale;  
difYscale = cYscale-\_root.targYscale;  
setProperty(this, \_xscale, cXscale-(difXscale/5));  
setProperty(this, \_yscale, cYscale-(difYscale/5));  
}

can any one help out?
