ok, i got it.
i had to check in rollOut if the mouse is over the hitare of the components.
i'm posting here as reference if someone else needs this.

public function toogleVisiOut():void{
 if (! (container.hitTestPoint(stage.mouseX, stage.mouseY, true) || 
myComponent.hitTestPoint(stage.mouseX, stage.mouseY, true))) {
myComponent.visible =false;
                
 }
}

Reply via email to