How to make my player 6 code work in player 7?

hiya,

does anyone know if it’s possible to change this code so that it works when exported as 7 instead of 6??

i have a thumbnail slider that brings in images from XML. the XML bit works in 7 so
i think it’s all going wrong at the slider code below:

// MAKES THE THUMBAILS SLIDE USING NEXT & PREVIOUS BUTTONS
function SlideMenu() {

this._x += (newX - this._x + thumbWidth) / 5;

// stops the thumbs at the first one
if (menu_mc._x >= 116) {
    menu_mc._x = 116;

// stops thumbs at the end. 
} else if (menu_mc._x < -(imageCount) ) {
    menu_mc._x = -(imageCount);
    //trace ("imagecount: " + (imageCount - endThumbBox));    
}

}
// This next line calls the funtion named SlideMenu
menu_mc.onEnterFrame = SlideMenu;
delete this.onEnterFrame;

// next & back buttons
previous_mc.onRelease = function() {
XNumber++ ;
newX =- XNumber * -580;
}
next_mc.onRelease = function() {
XNumber-- ;
newX =- XNumber * -580;
}

i’d really like it to work with 7 cos i’ve since figured out that css only works with player 7 & up…

hope that it’s a simple problem to solve (i’m pretty new to this) & someone can help me out :slight_smile:

cheers
naoimh