Hi!
I have problem I would like to solve.
I would like a function to run when a user clicks anywhere on stage. But this function should not run when the click is on buttons & on url:s inside a dynamic html-formated textfield. How can I detect this? I do realise that the cursor turns to a hand when you hoover over a url inside a textfield & you can set the hand to appear on buttons as well (which i always set it to do). So is there a way in realtime to detect when the cursor is & is not a hand?
I've tried the following:
Code:
btn_mc.buttonMode = true;
 
stage.addEventListener(MouseEvent.MOUSE_DOWN,down)
 
function down(E:MouseEvent)
{
    if(E.target.useHandCursor != true && E.target == stage)
	{
        trace("Hello!")
    }   
}
On the
Code:
E.target.useHandCursor
- part I've also tried
Code:
E.target.buttonMode
but I get 1069 errors.
Any ideas anyone?

Best, Niklas