Karim, In light of Joel's comments I'd like to suggest a refinement: import flash.events.* function updateCursor(){ stage.addChildAt(customCursor, stage.numChildren); } comboBox.dropdown.addEventListener(Event.ADDED_TO_STAGE, onDropdown); function onDropdown(event:Event){ updateCursor(); } Give it a try! I think it works quite well. Regards,
-Keith http://keithreinfeld.home.comcast.net > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Karim Beyrouti > Sent: Thursday, November 13, 2008 6:24 AM > To: 'Flash Coders List' > Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3 > > Yeh - this might not work - I already have a similar structure, and as the > ComboBox adds the List to the stage. I tried to find a 'lockRoot' type of > solution for AS3 - but no joy there. > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Joel > Stransky > Sent: 12 November 2008 23:03 > To: Flash Coders List > Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3 > > This might be a bit cumbersome but less processor intensive. Instead of > using MOUSE_MOVE, create two Sprites on the stage. One as a content pane > and > other as a custom cursor pane. Then add all content including the combo > box > to the content pane and the cursor to the cursor pane. I can't say for > sure > if the combo box will still display on top but may be worth a shot if > you're > big on freeing up resources. > > On Wed, Nov 12, 2008 at 5:47 PM, karim beyrouti <[EMAIL PROTECTED]> wrote: > > > Perfect - thank you ! > > > > it seems a little odd that the ComboBox adds the List to the stage and > not > > one of its own children. Maybe memory/resource managment. hmmmm..... > > > > > > > > On 12 Nov 2008, at 16:26, Keith Reinfeld wrote: > > > > Karim, > >> > >> Try adding the following line of code to your MOUSE_MOVE event listener > >> function: > >> stage.addChildAt(customCursor, stage.numChildren); > >> > >> Of course, you must substitute your custom cursor's instance name for > >> 'customCursor'. > >> > >> HTH > >> > >> Regards, > >> > >> -Keith > >> http://keithreinfeld.home.comcast.net > >> > >> > >> > >> > >> _______________________________________________ > >> Flashcoders mailing list > >> Flashcoders@chattyfig.figleaf.com > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >> > > > > _______________________________________________ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > -- > --Joel > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders