3 Replies Latest reply on Apr 17, 2007 6:53 AM by kglad

    Check if Flash has lost focus

    realworks Level 1
      Hi,

      I have a select form field that I have recreated in Flash to act like an html select form field. I need a way to detect that my Flash movie is no longer in focus (when clicking on the html page) and so, hiding the dropdown options.

      If you see the way an html select field works, you can click the dropdown and move the cursor around the screen without the dropdown closing. But if you click anywhere on the page, the select dropdown options will disappear again. I’ve tried different ideas but I can’t find a solution. onfocus in JavaScript isn’t well supported in Safari or Gecko and I’d prefer ActionScript to detect the focus rather than JavaScript if possible.

      Thanks in advance!