# Problem with actionscript in ScrollPane

**URL:** <https://forum.kirupa.com/t/problem-with-actionscript-in-scrollpane/236318>\
**Category:** flash\
**Created:** [August 19, 2007, 9:10pm UTC](https://forum.kirupa.com/t/problem-with-actionscript-in-scrollpane/236318 "2007-08-19T21:10:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill12](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@Bill12](https://forum.kirupa.com/u/Bill12)\
**Post date:** [August 19, 2007, 9:10pm UTC](https://forum.kirupa.com/t/problem-with-actionscript-in-scrollpane/236318/1 "2007-08-19T21:10:23Z")

</div>

Hello,  
I have this code for generating the attached movies in a scrollPane

var ins:MovieClip;  
function init() {  
//empty movie clip in library with linkage name “scrollMovieClip”  
scrollPane[“borderStyle”] = “none”;  
scrollPane.contentPath = “scrollMovieClip”;  
ins = scrollPane.content;  
}  
init();

and i have a button in the attached movie called “squares” and loads info from an XML to open a URL linso i have a code like this…

\_root.webs = \_root.ins[“squares”+count][“Company”+(t+1)].WEBSITEBut; \_root.ins[“squares”+count].website\_but.onPress = function() { getURL(webs, \_blank);  
};

But doesn`t work with the ScrollPane.

Can anyone help me make this button Functional???

Thanx
