when you load something into a scrollpane you reference it using the content property, so try something like:
myScrollPane.content.swfB_
Main Topics
Browse All TopicsI have a scrollpane that I am using in swf A that loads swf B using the contentPath attribute. In swf B I have a function that runs when the swf is loaded that attaches movie clips representing advertisements (1 rectangle for each ad) while looping over the number of ads available. This works just fine when swf B is run by itself, but when loaded into swf A, the function does not run, leaving me with a blank scrollpane.
What is the syntax to reference items in the child movie? The items I am looking to manipulate are on the main timeline of swf B, so I'm thinking it should be:
myScrollPane.swfB_text.txt
but that comes back undefined
Any ideas?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: vickerleungPosted on 2007-10-13 at 23:53:30ID: 20073054
patGRFXS,
First of all, this should be a Flash question instead of Flex.
I think your problem is that loading swfB inside swfA making the _root reference of swfB changed.
I will suggest you adding the following code to swfB first frame first line.
this._lockroot = true;
Instead of thinking about controlling swfB in swfA
Cheers
Vicker