Just thinking out loud... I am assuming that the event listeners for MOUSE_OVER and MOUSE_OUT are attached to the checkbox. When a MOUSE_OVER triggers you move your sprite over the checkbox. A MOUSE_OUT will never trigger on the checkbox. You would need to attach the MOUSE_OUT event listener to the sprite for it to trigger.
--- In flexcoders@yahoogroups.com, Harbs <harbs.li...@...> wrote: > > I'm trying to implement a tri-state checkbox. I found a previous > implementation which was way to complicated for my taste. I have the > implementation mostly done, but there's one issue which I'm having a hard > time with: > > I created a Sprite which draws the mid-state indicator over the checkbox > icon. Moving the mouse over the checkbox or away from the checkbox seem to > move the checkbox icon on top of my Sprite. I was able to handle the Mouse > Overs by adding an additional MOUSE_OVER event which moves the Sprite back up > to the top of the stack. For some reason this only works for MOUSE_OVER. I > added a MOUSE_OUT event listener as well, which did not do anything. The icon > still appears above the Sprite when the mouse moves away from the checkbox. > > Any ideas why? > > Thanks, > Harbs >