This content has been marked as final. Show 6 replies
And, I forgot, the head.swf is loading fine. It's just that I cant gotoAndStop head.swf using avatar.swf.
I just don't know what's wrong, it seems i'm forgetting something... :(
you don't have a child movieclip with instance name avatar_mc in (avatar_" + userID + ".myAvatarloader_mc.myAvatarhead_mc)
The "avatar_mc" is in the head.swf which is loaded in
avatar.swf in the movie:
(avatar_" + userID + ".myAvatarloader_mc.myAvatarhead_mc)
So tha path of avatar_mc would be:
("avatar_" + userID + ".myAvatarloader_mc.myAvatarhead_mc.avatar_mc")
Is this right? If it is, I can't control the avatar_mc using this:
eval ("avatar_" + userID + ".myAvatarloader_mc.myAvatarhead_mc.avatar_mc").gotoAndStop(3)
The avatar.swf is loading perfectly, is just that controling its avatar_mc's timeframe seems so impossible. o_0>
on the timeline that contains avatar_mc, put:
what you see in the output panel (after loading whatever) is the correct path to avatar_mc
I found the problem and I think it's the security issue in flash. I place the code below on each swf that I want to control from an external domain:
Where the IP address is the address of the parent movie that will control the child swf. I just didn't see that coming because all the external swf is loading perfectly, and it's tracing the correct path. So I just guessed that the problem would be the path of each movieclip, but I was wrong. It turns out that you would have to allow each child.swf to be controlled by their parent by placing that code on the first frame of the child.swf. Kinda giving a child an ice-cream to follow your command. heh.