# How to get Scrollpane to load jpeg files dynamically

**URL:** <https://forum.kirupa.com/t/how-to-get-scrollpane-to-load-jpeg-files-dynamically/248578>\
**Category:** flash\
**Created:** [January 9, 2008, 9:04pm UTC](https://forum.kirupa.com/t/how-to-get-scrollpane-to-load-jpeg-files-dynamically/248578 "2008-01-09T21:04:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpollen](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@dpollen](https://forum.kirupa.com/u/dpollen)\
**Post date:** [January 9, 2008, 9:04pm UTC](https://forum.kirupa.com/t/how-to-get-scrollpane-to-load-jpeg-files-dynamically/248578/1 "2008-01-09T21:04:31Z")

</div>

Hi… I’m working on a project, and trying to get the Flash CS3 ScrollPane to work.  
It is a real nightmare!

Ok trying to load some jpegs into a scrollpane dynamically.

I opened a new Flash file, and got it working with the following script:

```auto
this['scrollpane'].contentPath = "empty_mc";
this['scrollpane'].content.attachMovie("content", "inst_content", 1);
this['scrollpane'].content['inst_content'].loadMovie("sax.jpg");

```

So, I went into my project… and added the following into the movieclip which contains the ScrollPane:

```auto
this['window_inst'].contentPath = "empty_mc";
this['window_inst'].content.attachMovie("content", "inst_content", 1);

```

Ok… so that works… I can see “empty\_mc” in the ScrollPane and it scrolls.  
So, now I go into my external actionscript… and put the following code in when the page loads:

```auto
mcReview['window_inst'].content["inst_content"].loadMovie("sax.jpg");

```

It doesn’t work.

So I tried tracing.

trace(mcReview[‘window\_inst’]); **works**  
trace(mcReview[‘window\_inst’].content); \*\*undefined

\*\*It is driving me CRAZY!  
Someone puh-lease help me! ☹
