Yeah it sounds good. 

But I don't think it is that bad to make a direct call sometimes.
Something like onLoad(){myController.doneLoadingChild(this)}. Where
myController is a reference to the class that created the child element.
That reference was passed by the parent movie clip in the constructor. 

Really depends on what situations do you plan to reuse that child class.


On the other hand the broadcasting method is very good but just a little
more work involved that maybe is not really necessary.

Sebastian

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:bounce-fugli-
> [EMAIL PROTECTED] On Behalf Of Chris Velevitch
> Sent: Thursday, 3 March 2005 3:02 PM
> To: Flash Developers List
> Subject: [fugli] RE: Waiting for child symbols to load
> 
> That's fine, but that means coupling the child to the parent, and that
> makes the reusability of the child restrictive. Direct calls are
> probably a bad idea. Indirect calls by broadcasting an event would be
> better, as then the event be ignored if need be.
> 
> ---
> You are currently subscribed to fugli as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to fugli as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to