# Flash Player 6 or 7 --\> Help me, i'm confused

**URL:** https://forum.kirupa.com/t/flash-player-6-or-7-help-me-im-confused/168896
**Category:** flash
**Created:** [November 11, 2005, 12:22am UTC](https://forum.kirupa.com/t/flash-player-6-or-7-help-me-im-confused/168896 "2005-11-11T00:22:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Surekin](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Surekin](https://forum.kirupa.com/u/Surekin)
#### Post date: [November 11, 2005, 12:22am UTC](https://forum.kirupa.com/t/flash-player-6-or-7-help-me-im-confused/168896/1 "2005-11-11T00:22:49Z")

</div>

i have an elasticity script running on a button, with mouseover, when i export it to flashplayer 7, with actionscript 2 then it works, but if i export it to Flash Player 7 with AS2 it doesn’t… the problem is my whole site must be exported to FP7, so the script must also be in 7…

what do i have to change to get it to work with FP7, i’m confused…

```auto
onClipEvent (load) {
 this.elasticScale = function(tar, accel, convert) { 
 xScale = xScale * accel + (tar - this._xscale) * convert; 
 yScale = yScale * accel + (tar - this._yscale) * convert; 
 this._xscale += xScale; 
 this._yscale += yScale;
 }
}
onClipEvent(enterFrame){
		if(this.hitTest(_root._xmouse,_root._ymouse,true)){
				this.elasticScale(125,0.7,0.4)
		}else if (!this.hitTest(_root._xmouse,_root._ymouse,true)){
				this.elasticScale(100,0.7,0.4)
		}
}

```

Thx in advance!
