Hi, Thanks for this solution. At least I got to know about initialization parameter in attachMovie. But this way I will be dependent on frame rate. Can there be some solution which is not dependent in frame rate?
~Dhiraj -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Laurent Oberlé Sent: Wednesday, October 26, 2005 3:01 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] attachMovie synchronization Hi, You can attach en init object to your clip X like this : init_obj = new Object(); init_obj.onEnterFrame = function() { _root.func2 (); delete(this.onEnterFrame); } attachMovie("X", "Instance1",1, init_obj); like this func1 is called before func2. Laurent -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Dhiraj Girdhar Envoyé : mercredi 26 octobre 2005 08:14 À : Flashcoders mailing list Objet : [Flashcoders] attachMovie synchronization Hello, I have a movie clip symbol, say 'X'. X has a movie clip placed inside, say 'Y'. There is code on Y i.e. onClipEvent(load) { _root.func1(); } Now when I attach X using attachMovie i.e. having following code: attachMovie("X", "Instance1",1); _root.func2(); func2 gets called before func1. Which states that attachMovie is not completely synchronized. Is there any way by which I can execute func2 after whole X has been loaded i.e. even load event of movie clips inside X has been triggered? The condition is that I cannot move call of func2 to load event of Y. Thanks in advance. Dhiraj Girdhar _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders