# MovieClip Buttons

**URL:** <https://forum.kirupa.com/t/movieclip-buttons/248994>\
**Category:** flash\
**Created:** [January 14, 2008, 2:08pm UTC](https://forum.kirupa.com/t/movieclip-buttons/248994 "2008-01-14T14:08:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davordavor](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@davordavor](https://forum.kirupa.com/u/davordavor)\
**Post date:** [January 14, 2008, 2:08pm UTC](https://forum.kirupa.com/t/movieclip-buttons/248994/1 "2008-01-14T14:08:56Z")

</div>

Hello Flash guru’s… I need a newbie help on a movieclip buttons… (yes… it’s one of those elastic ones…:))

Here’s the deal… In my actionscript frame is this:

[COLOR=Blue]MovieClip.prototype.elasticScale = function(target, accel, convert) {  
xScale = xScale \* accel + (target - this.\_xscale) \* convert  
yScale = yScale \* accel + (target - this.\_yscale) \* convert  
this.\_xscale += xScale  
this.\_yscale += yScale  
}[/COLOR]

In my movieclip button:  
[COLOR=Blue]  
onClipEvent (enterFrame) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true)) {  
elasticScale(130,0.6,0.7);  
} else {  
elasticScale(100, 0.6, 0.7)  
}  
}[/COLOR]

Well… It works ALMOST perfectly in flash5… (THE BUTTON DOESN’T WORK)… I would like some help with the case sensitive names (this. or movieClip) so that the code would work in Flash8…

And can someone tell me why the button doesn’t work… 🙂

Thank you very much 😉

Regards, Davor
