# Changing scrollcontent from ScrollPane

**URL:** https://forum.kirupa.com/t/changing-scrollcontent-from-scrollpane/10177
**Category:** flash
**Created:** [December 26, 2002, 12:57pm UTC](https://forum.kirupa.com/t/changing-scrollcontent-from-scrollpane/10177 "2002-12-26T12:57:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![NicoVB](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@NicoVB](https://forum.kirupa.com/u/NicoVB)
#### Post date: [December 26, 2002, 12:57pm UTC](https://forum.kirupa.com/t/changing-scrollcontent-from-scrollpane/10177/1 "2002-12-26T12:57:57Z")

</div>

I have a scrollpane with its content set to a movieclip ‘ImageHandling’.

But from another movieclip ‘Test’ I want to set the scrollpane property ‘content’ on the first Scene (the root) to ‘Movie2’

## So this is my code:

\_parent.\_parent.gotoAndStop(22);  
\_parent.\_parent.Scroller.setScrollContent(“Movie2”);  
\_parent.\_parent.Scroller.refreshPane();

## But what it does is:

It goes to frame 22 in the root where there is a Scrollpane named ‘Scroller’. But its content isn’t changed. It stays ‘ImageHandling’.

Can anyone help me?

Thanks in advance

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 27, 2002, 2:14pm UTC](https://forum.kirupa.com/t/changing-scrollcontent-from-scrollpane/10177/2 "2002-12-27T14:14:51Z")

</div>

What does I have to do to change the content at runtime?
