flash - How do I make flex only consume mouse scroll and keyboard events when it's useful, and otherwise pass it on to the browser? -
this one's been irking me while. when i'm using mouse scroll wheel scroll , down in webpage, , flash movie comes path of cursor, scroll wheel stops working. also, when flash movie has focus, can't use browser shortcuts ctrl + l or ctrl + r.
i'm writing flex application , i'd find solution, @ least users aren't plagued inconsistency of user interface behavior.
i should think there way tell flash propagate such events mouse scroll wheel , keyboard input browser unless occur in element useful, in flex textarea. can't find solutions out there though, nor talking it.
specifically, how can make that:
- when user scrolling mouse, browser scrolls unless mouse on flex container scrollbar, or component wants scroll.
- when user presses button or combination of buttons on keyboard, propagated browser unless there active keyboard listener, or cursor in text field, etc.
communication between browser , flash done via externalinterface. externalinterface allow call actionscript methods javascript , vice-versa.
good luck because experience shows it's painfull deal keyboard shortcuts , browser inconstancy
Comments
Post a Comment