--- In [email protected], "Battershall, Jeff" 
<[EMAIL PROTECTED]> wrote:
>
> OK, I tried this but I get a compiler error - owner (which is a
> DisplayObjectContainer) doesn't have a property owner.

I've used code like this in the past

var myParent:*=owner

while (myParent.className!='ComboBox'){
  //pretty much everything will have either a parent or an owner
  if (!(myParent.owner==null)){
      myParent=myParent.owner;
  }else{
     myParent=myParent.parent;
  }
}

//myParent is a ComboBox if you get to this point

Note that you need to be REALLY sure this will eventually hit a 
ComboBox, or it will result in an endless loop.  You can add in a 
loop counter for safety, and exit after, say, 100 loops in case of a 
failure to find a combobox.

Possibly you could also extend ComboBox to listen to SystemManager 
and redispatch events.  

HTH;

Amy

Reply via email to