How do I make flex only consume mouse scroll and keyboard events when it's useful, and otherwise pass it on to the browser?

后端 未结 3 1164
夕颜
夕颜 2021-01-21 01:12

This one\'s been irking me for a while. When I\'m using the mouse scroll wheel to scroll up and down in a webpage, and a flash movie comes into the path of the cursor, the scrol

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-21 01:35

    I faced the same problem. But the solution I went for requires extensive changes if you have a complex UI already built in flex.

    Make the user interface using HTML and communicate via javascript with a hidden flex (or flash) object.

    For example, pass whatever string you want to show in flex textarea as a parameter in an ExternalInterface call. Then show that string in a regular