# This AS does not work in players 7 upwards

**URL:** <https://forum.kirupa.com/t/this-as-does-not-work-in-players-7-upwards/255602>\
**Category:** flash\
**Created:** [March 25, 2008, 6:21am UTC](https://forum.kirupa.com/t/this-as-does-not-work-in-players-7-upwards/255602 "2008-03-25T06:21:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![plashbydo](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@plashbydo](https://forum.kirupa.com/u/plashbydo)\
**Post date:** [March 25, 2008, 6:21am UTC](https://forum.kirupa.com/t/this-as-does-not-work-in-players-7-upwards/255602/1 "2008-03-25T06:21:46Z")

</div>

Can any bright sparks suggest why this code only works in player 6 or below?

var grow = 2;

var speed = .50;

var elastic = .55;

movieclip.prototype.initScale = function() {  
this.myScale = this.\_xscale;  
};

Movieclip.prototype.elasticScale = function() {  
if (this.over == true) {  
this.theScale = this.theScale_speed+((this.myScale_\_root.grow)-this.\_xscale)_elastic;  
this.\_xscale = this.\_yscale += this.theScale;  
} else {  
this.theScale = this.theScale_speed+(this.myScale-this.\_xscale)\*elastic;  
this.\_xscale = this.\_yscale += this.theScale;  
}  
};

movieclip.prototype.onEnterFrameKiller = function() {  
//trace(“running”);  
if (this.x\>70) {  
delete this.onEnterFrame;  
this.x = 0;  
//trace(“stopped”);  
}  
++this.x;  
};

movieclip.prototype.moveTheButts = function() {  
this.x = 0;  
this.onEnterFrame = function() {  
this.elasticScale();  
this.onEnterFrameKiller();  
};  
};
