You need to use _lockroot on the MC that loads the anim2.swf
mcContent._lockroot = true;
Thanks but I forgot to mention that I am using actionscript 3 and
_lockroot is an actionscript 2.0 feature, isn't it?
I know, it would have been a solution.
But how can I do in actionscript 3.0? Is there a similar property?
I've got a clue by reading post at
http://www.kirupa.com/forum/showthread.php?p=2123138 (Loading External Classes with ApplicationDomain )
It uses applicationDomain property of LoaderContext class. I will give it a try and let you know as soon as possible.
Oh it's different? I didn't know. Please share how to do it when you find out.
I didn't manage to find a solution by using LoaderContext class but I still believe that there is one provided by that class....
Anyway I found a workaround which is in fact easy :
in my Racine.as, I set the MovieClip var going to hold the loaded movie to a public var.
I am then able to target the children from my loaded movie clip by using Racine.as document class.