View Full Version : Input without focus
09-26-2010, 12:24 PM
How would I receive input to the flash movie without stealing focus (and thus all input) from the UE itself? I read something about using CLIK, although it didn't explain.
09-26-2010, 03:15 PM
CLIK uses a focus manager to deal with such things. a requirement is that before any input handling is initiated there must be a setFocus call. Now im doing something i dont think im supposed to do and that is use Selection.setFocus(this). It seems to work right but im not 100% on that. You only need to do this once per clip that needs handling. If there is no focus at all there is no input handler.
You dont have to use CLIK. You can create your own focus manager but lets face it. Why re-invent the wheel. My favourite coding advice.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.