I think you want to avoid using kCursor. That is a special level reserved for, you got it, the cursor. There is also another special reserved level for combobox dropdowns which is set high enough to be above all normal levels. Try creating your combobox and the movieclip using DepthManager.kTop or kTopmost.
>> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:flashcoders- >> [EMAIL PROTECTED] On Behalf Of Merrill, Jason >> Sent: Wednesday, September 06, 2006 4:33 PM >> To: Flashcoders mailing list >> Subject: RE: [Flashcoders] ComboBox,Depth,& Draw API - Bug? >> >> Hmm... I have been playing with the DepthManager class, alternatively >> trying: >> >> my_cb = DepthManager.createClassObjectAtDepth(mx.controls.ComboBox, >> DepthManager.kCursor); >> >> and setting the drawn on mc to HighestDepth >> >> or creating the ComboBox at usual depth and setting the depth of the >> movieClip being drawn on to DepthManager.kCursor and other static depths >> of the DepthManager class, with no luck. I can create the class object, >> but it still remains behind the drawn on movie clips. >> >> Any ideas? >> >> Jason Merrill >> Bank of America >> Learning & Organization Effectiveness - Technology Solutions >> >> >> >> >> >> >> >>-----Original Message----- >> >>From: [EMAIL PROTECTED] [mailto:flashcoders- >> >>[EMAIL PROTECTED] On Behalf Of Pete Miller >> >>Sent: Wednesday, September 06, 2006 3:41 PM >> >>To: Flashcoders mailing list >> >>Subject: RE: [Flashcoders] ComboBox,Depth,& Draw API - Bug? >> >> >> >>Try tracing the value that you get from getNextHighestDepth(). If the >> >>result is > 1048575, you are incorporating v2.0 components, which >> causes >> >>getNextHighestDepth() to be less than useful. Use DepthManager >> instead. >> >> >> >>This pointer isn't entirely related, but might help explaining why: >> >>http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19435 >> >> >> >>P. >> >> >> >>>> -----Original Message----- >> >>>> From: [EMAIL PROTECTED] >> [mailto:flashcoders- >> >>>> [EMAIL PROTECTED] On Behalf Of Merrill, Jason >> >>>> Sent: Wednesday, September 06, 2006 3:31 PM >> >>>> To: Flashcoders mailing list >> >>>> Subject: [Flashcoders] ComboBox,Depth,& Draw API - Bug? >> >>>> >> >>>> Is this a bug? Try the sample code out below - >> >>>> >> >>>> Why is it that if you specify an explicit depth for a movie clip >> (SEE >> >>>> LINE 2 OF THE FIRST SET OF CODE BELOW) and draw on it with the draw >> >>API, >> >>>> and a comboBox made later with a depth of getNextHighestDepth() >> will >> >>>> have a drop down which displays over the drawn portion of the movie >> >>clip >> >>>> AS EXPECTED, but when you use getNextHighestDepth() on the movie >> clip >> >>>> (SEE LINE 2 OF THE SECOND SET OF CODE BELOW), the comboBox's >> dropdown >> >>is >> >>>> BEHIND the drawn portions of the clip, even though the depth of the >> >>clip >> >>>> is greater??? >> >>>> >> >>>> So in other words, this: >> >>>> >> >>>> //CODE SAMPLE #1 >> >>>> import mx.controls.ComboBox; >> >>>> mc = this.createEmptyMovieClip("triangle", 10000); >> >>>> mc.beginFill(0x00aaFF, 100); >> >>>> mc.lineStyle(4, 0xFF0000, 100); >> >>>> mc.moveTo(0, 0); >> >>>> mc.lineTo(100, 100); >> >>>> mc.lineTo(0, 100); >> >>>> mc.lineTo(0, 0); >> >>>> this.createClassObject(mx.controls.ComboBox, "my_cb", >> >>>> this.getNextHighestDepth()); >> >>>> for (i = 0; i < 7; i++) { >> >>>> my_cb.addItem({label:i}); >> >>>> } >> >>>> trace("mc depth: "+mc.getDepth()); >> >>>> trace("my_cb. depth: "+my_cb.getDepth()); >> >>>> //cb depth is higher than "mc" as expected >> >>>> >> >>>> Vs. this: >> >>>> >> >>>> //CODE SAMPLE #2 (only diff. from CODE 1 is line 2) >> >>>> import mx.controls.ComboBox; >> >>>> mc = this.createEmptyMovieClip("triangle", >> >>this.getNextHighestDepth()); >> >>>> mc.beginFill(0x00aaFF, 100); >> >>>> mc.lineStyle(4, 0xFF0000, 100); >> >>>> mc.moveTo(0, 0); >> >>>> mc.lineTo(100, 100); >> >>>> mc.lineTo(0, 100); >> >>>> mc.lineTo(0, 0); >> >>>> this.createClassObject(mx.controls.ComboBox, "my_cb", >> >>>> this.getNextHighestDepth()); >> >>>> for (i = 0; i < 7; i++) { >> >>>> my_cb.addItem({label:i}); >> >>>> } >> >>>> trace("mc depth: "+mc.getDepth()); >> >>>> trace("my_cb. depth: "+my_cb.getDepth()); >> >>>> //cb depth is higher than "mc" as expected, >> >>>> //yet drop down is drawn BEHIND "mc"! >> >>>> >> >>>> Is this a bug with ComboBox? Is there any way to get the >> comboBox's >> >>>> dropdown in front of drawn content on "mc" while using >> >>>> getNextHighestDepth() for "mc"? >> >>>> >> >>>> Jason Merrill >> >>>> Bank of America >> >>>> Learning & Organization Effectiveness - Technology Solutions >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> _______________________________________________ >> >>>> [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 >> >>_______________________________________________ >> >>[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 >> _______________________________________________ >> [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 _______________________________________________ [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

