# Access display objects from within scrollpane instance?

**URL:** https://forum.kirupa.com/t/access-display-objects-from-within-scrollpane-instance/240934
**Category:** Uncategorized
**Created:** [October 8, 2007, 2:36pm UTC](https://forum.kirupa.com/t/access-display-objects-from-within-scrollpane-instance/240934 "2007-10-08T14:36:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Wheels](https://avatars.discourse-cdn.com/v4/letter/w/7bcc69/32.png) [@Wheels](https://forum.kirupa.com/u/Wheels)
#### Post date: [October 8, 2007, 2:36pm UTC](https://forum.kirupa.com/t/access-display-objects-from-within-scrollpane-instance/240934/1 "2007-10-08T14:36:08Z")

</div>

Hi all,

I’ve seen several posting on various sites with this question but never found an answer that actually works.

Very simply, I create an instance of a scrollpane on my stage and I load in a mc from my library that has another mc nested within. I want to access that nested mc and I don’t seem to be able to:

```auto
import flash.display.MovieClip;
import fl.containers.ScrollPane;
//MyBox is the class name of the mc in my library
var myMovieClip:MyBox = new MyBox();
//
var myScrollPane:ScrollPane = new ScrollPane();
myScrollPane.name = "myScrollPane";
myScrollPane.source = myMovieClip;
addChild(myScrollPane);
trace(myScrollPane.content.nested_mc.alpha)

```

When I run this I get the following error:

[COLOR=red]1119: Access of possibly undefined property nested\_mc through a reference with static type flash.display:DisplayObject.[/COLOR]

I’ve tried to access the nested\_mc by using the content property as I’ve seen noted in one post on [actionscript.org](http://actionscript.org) like this:

```auto
 trace(MovieClip(myScrollPane.content.nested_mc).alpha)

```

but I get the same error…

What gives? What is the best way to access content within the scrollpane component?

Any advice is greatly appreciated!
