Problem with prototype function and flash player 8

hi guys, i’ve been using a code to make some things float around the screen at my command, using the prototype function (native flash 6). Then I got a little problem when I tried to use the new graphic filters from flash 8. I need to be publishing in “flash player 8” mode but that impairs the functionality of my prototype function.

wanna see it? it has no preloader yet so you’ll have to wait a little if you try to have a look:

The question is, could I convert the actionscript of my prototype to something compatible with flash player 8 ??

the code:

Movieclip.prototype.scrollme = function(xPos, yPos) {
cX = this._x;
difX = cX-xPos;
this._x = cX-(difX/5);

cY = this._y;
difY = cY-yPos;
this._y = cY-(difY/5);


arrayIndex = 0;

// definition of possible positions
main_menu_button_base_mcXpositions = new Array(6.4,30,30,30,30,30,30,30,30);
main_menu_button_base_mcYpositions = new Array(-300,30,30,30,30,30,30,30,30);

main_menu_button_base_mc.onEnterFrame = function() {
this.scrollme(main_menu_button_base_mcXpositions[arrayIndex], main_menu_button_base_mcYpositions[arrayIndex]);

thanks !