# Need help writing this final line!

**URL:** <https://forum.kirupa.com/t/need-help-writing-this-final-line/192776>\
**Category:** Uncategorized\
**Created:** [June 30, 2006, 11:07pm UTC](https://forum.kirupa.com/t/need-help-writing-this-final-line/192776 "2006-06-30T23:07:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![elkeslam](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@elkeslam](https://forum.kirupa.com/u/elkeslam)\
**Post date:** [June 30, 2006, 11:07pm UTC](https://forum.kirupa.com/t/need-help-writing-this-final-line/192776/1 "2006-06-30T23:07:35Z")

</div>

hello, please can anyone help me?  
i’m making a sliding image scroller in mxpro 2004 and i need to alter this line:  
}  
shiftTo = function (btnId){  
trace(btnId);  
var pos = 189 + \_root.ImgWidth\*-btnId;  
clip.PA({\_x:pos}, 31);  
}

the prob is that 189 doesnt apply to all images and for the first couple i need it at 187 then the middle lot is fine at 189 then the last two  
i need to do at 190… could anyone gimme a hand? i cant get it right at all… thanx  
micke
