# Multiple content paths for scroll pane?

**URL:** <https://forum.kirupa.com/t/multiple-content-paths-for-scroll-pane/262647>\
**Category:** Uncategorized\
**Created:** [June 8, 2008, 3:50pm UTC](https://forum.kirupa.com/t/multiple-content-paths-for-scroll-pane/262647 "2008-06-08T15:50:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![billy\_nugz](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@billy\_nugz](https://forum.kirupa.com/u/billy_nugz)\
**Post date:** [June 8, 2008, 3:50pm UTC](https://forum.kirupa.com/t/multiple-content-paths-for-scroll-pane/262647/1 "2008-06-08T15:50:40Z")

</div>

Hey there guys,

Is there a way to add multiple content paths to a scrollpane? Or could you trick it someway by making a containerMC with multipe swfs atached to it ?

Basically I need to have a scrollpane with say 10 items in it. There will be ten btns that corespond with those items. if btn 1 is pressed item one will no longer show in the scrollpane. However if its pressed again it will show up in the scrollpane. same goes for btns 2 through 10. Does that make sense?

I dont have alot of experience with as3 or components. If anyone has any tips, tutes, or sugestions what so ever that would be great my thanks in advance.  
👼

---

<div class="post-metadata">

**Author:** ![billy\_nugz](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@billy\_nugz](https://forum.kirupa.com/u/billy_nugz)\
**Post date:** [June 9, 2008, 2:30pm UTC](https://forum.kirupa.com/t/multiple-content-paths-for-scroll-pane/262647/2 "2008-06-09T14:30:24Z")

</div>

bump ?

---

<div class="post-metadata">

**Author:** ![billy\_nugz](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@billy\_nugz](https://forum.kirupa.com/u/billy_nugz)\
**Post date:** [June 9, 2008, 4:52pm UTC](https://forum.kirupa.com/t/multiple-content-paths-for-scroll-pane/262647/3 "2008-06-09T16:52:51Z")

</div>

Ok so I have this.

import fl.containers.ScrollPane;  
var url:String = “gallery1large/001.jpg”;  
var aa:MovieClip = new MovieClip();  
var bb:Loader = new Loader();  
bb.contentLoaderInfo.addEventListener (Event.COMPLETE, completeHandler);  
function completeHandler (e:Event)  
{  
var myScrollPane:ScrollPane = new ScrollPane();  
myScrollPane.setSize (320, 240);  
myScrollPane.move (10, 10);  
myScrollPane.source=aa;  
addChild (myScrollPane);  
}  
bb.load (new URLRequest(url));  
aa.addChild (bb);

but I need the ability to add and delete items within the scrollpane. Can this even be done ?

---

<div class="post-metadata">

**Author:** ![rrh](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@rrh](https://forum.kirupa.com/u/rrh)\
**Post date:** [June 9, 2008, 8:34pm UTC](https://forum.kirupa.com/t/multiple-content-paths-for-scroll-pane/262647/4 "2008-06-09T20:34:41Z")

</div>

> Or could you trick it someway by making a containerMC with multipe swfs atached to it ?  
> That one, I guess.

Anything that extends Sprite can be used as the source of a ScrollPane. So if you need to add and remove items from your list, that should be completely separate from whether it’s in a ScrollPane or not. (Unless there’s another component bug I haven’t seen, yet.)
