;

PDA

Click to See Complete Forum and Search --> : Custom Component/Event focus


chuckury
01-19-2009, 04:20 PM
I'm currently having issues with handling mouse events.
I've created a custom component that extends from UIComponent. I have 3 components of the same type being instantiated within this component. They are all made to be draggable. The issue occurs when you're dragging one over another the mouse will grab and drag both of these.

Is there a way to set focus to a component so that only it receives mouseEvents or some other way to avoid the mouse events going to the other components and just the one that was initially selected?

Sorry if I'm not clear enough if so just ask what you'd like me to specify.
Thanks guys

jweeks123
01-22-2009, 09:34 AM
Try looking up as3 z-indexing. That should help your issue.