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:
On theCode:btn_mc.buttonMode = true; stage.addEventListener(MouseEvent.MOUSE_DOWN,down) function down(E:MouseEvent) { if(E.target.useHandCursor != true && E.target == stage) { trace("Hello!") } }- part I've also triedCode:E.target.useHandCursorbut I get 1069 errors.Code:E.target.buttonMode
Any ideas anyone?
Best, Niklas




Reply With Quote
