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

Reply via email to