more that I found out: var nDepth:Number = this.getNextHighestDepth(); trace (this.getNextHighestDepth()); trace (_cbCategory.getDepth()); _cbCategory.swapDepths(nDepth); trace (_cbCategory.getDepth());
this is that same onComboOpen function I posted before, with one extra trace...noticed some interesting stuff here: 1st time: 2 1 2 2nd time: 19 2 19 3rd time: 36 19 19 So getNextHighestDepth is finding the next highest depth, its just the combobox won't take that depth. Any ideas here? -----Original Message----- From: [EMAIL PROTECTED] on behalf of Randy Tinfow Sent: Thu 5/31/2007 11:56 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] combo box problem I read that article yesterday, didn't help much. I'm half way to a solution right now. private function onComboOpen(objEvent:Object) { var nDepth:Number = this.getNextHighestDepth(); trace (_cbCategory.getDepth()); _cbCategory.swapDepths(nDepth); trace (_cbCategory.getDepth()); } first off, I set _lockroot = true on my combobox instance directly, so its _cbCategory._lockroot = true. This makes its children a part of it instead of being external. Now the combobox will at least open every time. Whenever it opens, it calls the above function to make sure its at the top level. The 1st and 2nd time, it works just fine, the 3rd time, the list part of the combobox falls behind everything else on the stage, and the depth is not switching, so on the first time, the 2 traces in that function look like this: 1 2 And on the second time: 2 19 And on the third time (and fourth, fifth, sixth...as many as you want really): 19 19 Why is it no longer finding higher depths to put stuff on? RT -----Original Message----- From: [EMAIL PROTECTED] on behalf of Randy Tinfow Sent: Thu 5/31/2007 11:34 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] combo box problem >have you checked with xray if there is something in the way? >Or commented out some of the stuff that gets created in order to pinpoint >the problem? Just checked with xray, it seems that after 2 selections in that combobox, it loses its reference to the __dropdown property, which is a List object. I'm assuming this is why I can't see anything happen after 2 selections. Why would this happen? Also, the comboboxes store their __dropdown lists at the _root level instead of beside the comboboxes themselves, I don't know if this is causing any problems. I have tried using this._lockroot to prevent this, but it doesn't fix anything. RT
_______________________________________________ Flashcoders@chattyfig.figleaf.com 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