Target clips within scroll panes?

does anyone know if you can target a clip that’s been loaded into a scroll pane component?

i got something going here but instead of boring you with a 3 hour descriptions, i’ll describe something similar, but more basic.

i’ve got a movie clip in my library named “holder”. inside of that clip are other movie clips, let’s say they’re named “square1”, “square2”, “square3”, ect.

on my stage i’ve got a scroll pane named “scrollPane” and i’m using a “setContent” action on the _root timeline to load “holder” into it.

now let’s say i want to move the _x or _y of one of the “squares” within “holder” which is now within “scrollPane”. one would think from the _root timeline you could just do:

“scrollPane.holder.square1._x = 150”

but it won’t work. i’ve also tried variations such as:

“scrollPane.square1._x” and
“holder.square1._x”

and i’ve even tried to trace some properties of the scrollPane.holder.squares but i’m getting undefined.

is there no way to target clips within scrollpanes to move them around, change alpha, duplicate items, ect?

thanks in advance

“scrollPane.holder.square1._x = 150”

That’s what I would think to do…Sometimes when things like this don’t work out for me, I’ll put on the ‘_root’ in front of it and it does. However, I’m a bit scatterbrained at times and it could be a targeting error on my part.

i figured it out.

when a setContent action loads in a clip into a scrollPane from the library, actionscript will now refer to that clip as “tmp_mc”.

so what i’m doing on the root timeline is

scrollPane.setScrollContent(“holder”);
scrollPane.tmp_mc._name = “holder”;

now i can target the clip and all clips within it. i figured this out by putting a button on the stage that called the getScrollContent function on the scroll pane.

just wanted to share

Good deal.