# Scrollpane within Window component

**URL:** <https://forum.kirupa.com/t/scrollpane-within-window-component/104425>\
**Category:** Uncategorized\
**Created:** [March 16, 2004, 2:14am UTC](https://forum.kirupa.com/t/scrollpane-within-window-component/104425 "2004-03-16T02:14:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkielisz](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jkielisz](https://forum.kirupa.com/u/jkielisz)\
**Post date:** [March 16, 2004, 2:14am UTC](https://forum.kirupa.com/t/scrollpane-within-window-component/104425/1 "2004-03-16T02:14:06Z")

</div>

Hello everyone. Thanks in advance for any help. Im trying to create a PopUp window that displays a dynamically loaded jpeg within a scrollpane. I have tried using the following code to accomplish this:  
[AS]  
import mx.managers.PopUpManager  
import mx.containers.Window

```
var myTW = PopUpManager.createPopUp(_root, Window, true, {contentPath:"full_pic",closeButton: true, title:mypath});

myTW.setSize(310,310);

```

[/AS]

The PopUp window works correctly. However, I am having trouble getting an image to be dynamically loaded. “full\_pic” is a movie clip in the library that contains a scrollpane component with instance name “pic”. I have already checked the export for actionscript checkbox within the movie clip’s linkage parameters and given it the name “full\_pic.”

My question is how to dynamically set the contentPath within the “pic” scrollpane of the “full\_pic” movie clip thats in the library.

Thanks again for any help.

Jonathan
