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

**URL:** <https://forum.kirupa.com/t/how-to-make-my-player-6-code-work-in-player-7/229008>\
**Category:** Uncategorized\
**Created:** [June 13, 2007, 10:48am UTC](https://forum.kirupa.com/t/how-to-make-my-player-6-code-work-in-player-7/229008 "2007-06-13T10:48:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![naoimh](https://avatars.discourse-cdn.com/v4/letter/n/c4cdca/32.png) [@naoimh](https://forum.kirupa.com/u/naoimh)\
**Post date:** [June 13, 2007, 10:48am UTC](https://forum.kirupa.com/t/how-to-make-my-player-6-code-work-in-player-7/229008/1 "2007-06-13T10:48:02Z")

</div>

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 &gt;= 116) {
    menu_mc._x = 116;

// stops thumbs at the end. 
} else if (menu_mc._x &lt; -(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 🙂

cheers  
naoimh
