# Why doesn't this code work on Flash Player 9?

**URL:** <https://forum.kirupa.com/t/why-doesnt-this-code-work-on-flash-player-9/255968>\
**Category:** flash\
**Created:** [March 28, 2008, 5:11pm UTC](https://forum.kirupa.com/t/why-doesnt-this-code-work-on-flash-player-9/255968 "2008-03-28T17:11:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dududis](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@dududis](https://forum.kirupa.com/u/dududis)\
**Post date:** [March 28, 2008, 5:11pm UTC](https://forum.kirupa.com/t/why-doesnt-this-code-work-on-flash-player-9/255968/1 "2008-03-28T17:11:25Z")

</div>

Hello!  
I don’t really understand the differences between Flash player’s versions, so I don’t know why this code doesn’t work properly. Can anyone point me what’s wrong?

```auto

_root.centrey = 272;
_root.centrex = 510;
_root.onEnterFrame = function() {
    valeur_a = (_root._ymouse-_root.centrey)*0.5;
    valeur_b = valeur_b+valeur_a;
    valeur_b = valeur_b*0.8;
    _root.animation.block1._y = (valeur_b-_root.animation.block1._y)*0.05;
    _root.animation.block2._y = (valeur_b-_root.animation.block2._y)*0.1;
    _root.animation.block3._y = (valeur_b-_root.animation.block3._y)*0.15;
    _root.animation.block1._x = (_root._xmouse-_root.centrex)*0.02;
    _root.animation.block2._x = (_root._xmouse-_root.centrex)*0.04;
    _root.animation.block3._x = (_root._xmouse-_root.centrex)*0.06;
};

```

Thanks!
