# Need help with actionscript for scrollbar

**URL:** <https://forum.kirupa.com/t/need-help-with-actionscript-for-scrollbar/234656>\
**Category:** Uncategorized\
**Created:** [August 4, 2007, 10:27am UTC](https://forum.kirupa.com/t/need-help-with-actionscript-for-scrollbar/234656 "2007-08-04T10:27:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bri\_ny](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@bri\_ny](https://forum.kirupa.com/u/bri_ny)\
**Post date:** [August 4, 2007, 10:27am UTC](https://forum.kirupa.com/t/need-help-with-actionscript-for-scrollbar/234656/1 "2007-08-04T10:27:46Z")

</div>

Hi everyone,

I’ve created a site using a main fla called index.fla which opens external swf for each of the pages. I’ve created a scrollbar that works on the external swfs but when i play index.fla the scrollbar doesnt scroll.

i need help with writing a new actionscript for my buttons for my scrollbar, so it works when i play the main fla

the script for the up button is below

on (press) {  
tellTarget (“control”) {  
gotoAndPlay(2);  
}  
}  
on (release, dragOut) {  
tellTarget (“control”) {  
gotoAndStop(1);  
}  
}

any help would be greatly appreciated. I hope I’ve made sense. Thanks
