PDA

View Full Version : accessing scrollPane content...


pixel8ed
07-01-2007, 06:36 PM
I'm working with the scrollPane component in flash and I have a theoretical question. I create the scrollPane on the main timeline and have the contentPath property targeting a movieclip in the library called container_mc. Right now all my other actionscript is being carried out in container_mc... but I'm thinking about how I would access properties inside container_mc from the main timeline.

Once container_mc is loaded into the scrollPane, is container_mc considered a child of the scrollPane? So would an accessor look like this: _root.my_scrollPane.container_mc[property] ? :D

tweaknee
07-27-2007, 07:15 PM
Did you ever figure this out? I'm working on a similar problem. This helped:

http://blog.kirupa.com/?p=30

except that you have to include the name of the attached movie in the path AND use _root when you attach and when you reference the movie.

pixel8ed
07-28-2007, 10:12 PM
No never got this one figured out... I just lived with putting all my script in the loaded movie. This link looks like it will help, thanks!