# Help with actionscript for my scrollbar

**URL:** <https://forum.kirupa.com/t/help-with-actionscript-for-my-scrollbar/234658>\
**Category:** Uncategorized\
**Created:** [August 4, 2007, 10:42am UTC](https://forum.kirupa.com/t/help-with-actionscript-for-my-scrollbar/234658 "2007-08-04T10:42:22Z")\
**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:42am UTC](https://forum.kirupa.com/t/help-with-actionscript-for-my-scrollbar/234658/1 "2007-08-04T10:42:22Z")

</div>

I’ve created a site that uploads external swfs for each page and I have inserted a scroll pane into one of the external swfs but when i click on a button that i have placed within the scrollpane i want it to go to another external swf.

the actionscript i have so far is:

[COLOR=Navy]on (release) {  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “ware”;  
\_parent.container.loadMovie(“ware.swf”);  
} else if (\_root.currMovie != “ware”) {  
if (\_parent.container.\_currentframe \>= \_parent.container.midframe) {  
\_root.currMovie = “ware”;  
\_parent.container.play();  
}  
}  
}  
[/COLOR]  
ware.swf is the swf i want to be able to go to.

can anyone help with the correct script so my buttons within the scrollpane will work?
