# Script doesn't work in Flash player 7

**URL:** <https://forum.kirupa.com/t/script-doesnt-work-in-flash-player-7/126169>\
**Category:** Uncategorized\
**Created:** [October 20, 2004, 10:47pm UTC](https://forum.kirupa.com/t/script-doesnt-work-in-flash-player-7/126169 "2004-10-20T22:47:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carixpig](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/carixpig/32/304_2.png) [@Carixpig](https://forum.kirupa.com/u/Carixpig)\
**Post date:** [October 20, 2004, 10:47pm UTC](https://forum.kirupa.com/t/script-doesnt-work-in-flash-player-7/126169/1 "2004-10-20T22:47:00Z")

</div>

Hi All,

Does anybody know why this script won’t work in Flash Player 7?

frame 1:  
[AS]  
spring = .5;  
speed = 2;  
MovieClip.prototype.bounce = function(targetY){  
diff = targetY - this.\_y;  
growth += diff\*speed;  
growth \*= spring;  
this.\_y += growth;  
}  
[/AS]  
on the “circle” mc:  
[AS]  
onClipEvent(enterFrame){  
bounce(targetY);  
}  
on(release){  
this.targetY = random(300);  
}  
[/AS]

Works fine in player 6.

Thanks for your time.
