I'd look into LocalConnection.  It sounds like you're trying to figure
out how to avoid dependencies between objects, which (to me) makes
sense.  Rather than over-design and make things work in a complicated
way, you can use LocalConnection to init your child clips from your
controller:

receiving_lc = new LocalConnection;
        
receiving_lc.init = function() {
        this.c.init(); // Calls your clip's init
};

receiving_lc.connect("lc_name");                                        

In your main application:

var sending_lc2:LocalConnection = new LocalConnection();
sending_lc2.send("lc_name", "init");


hth,

Mike
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to