PDA

View Full Version : Loading siblings from inside children



doublemazaa
October 16th, 2008, 04:25 PM
I have a parent that's loading 5 external swfs. It adds the first as a child. I would like that child to use the other 4 swfs as children to itself. Is this possible? How would I go about it?

I'm trying to do something like this:

Inside the parent:

mc1 = swf1
mc2 = swf2
mc3 = swf3

addChild(mc1)

Then inside swf1,
addChild(parent.mc2)

Flash won't let me compile swf1 because it's not sure that the parent will have an mc called mc2.

Help?

Thanks.