You may have to wait for the child clips to initialise:
Make sure your load order is set to "bottom up" in the publish settings,
then try to initialise your child clips in the "onLoad" function.
class Holder {
/**
...
*/
function onLoad() {
mc1._x = 50;
mc2._x = ...
mc3._x = ...
}
}
If that does not work, you may want to add a "register" function in the
Holder clip. And create a class for your children which calls the
register function.
class Holder {
/**
...
*/
function register(child:MovieClip) {
if(child == mc1) {
mc1._x = 50;
} else if(child == mc2) {
mc2._x = ...
} else {
mc3._x = ...
}
}
}
class Child extends MovieClip {
/**
...
*/
function onLoad() {
this._parent.register(this);
}
}
HTH
G
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com