I believe your problem is because GetNamedChild only returns controls that are prefixed with the parent name. When creating a control you can write "$(parent)<myname>" and it will automatically prefix it with the parent control's name. Then it should work.
But for this kind of problem you should use an ZO_ObjectPool anyways. It takes care of creating and managing your virtual controls.
|