(the following concerns only actionscript 3. Any suggestions in as3 are greatly appriciated)
hey,
I've been wondering if there is a quick and painless way to add a keyboard event handler to an entire fla, as apposed to a single element on the form.
Basically, what I'm saying is, I understand the concept of applying a listener to an object, but I'd benefit more from an event listener, listening to keyboard input, that isn't bound to an object, but is always triggered regardless of the current focus.
I might not be clear on my intentions, so I'll give an example. I have a form with a movieclip, a textfield, and a bitmap on the stage. Now i want to add an event listener to listen to keyboard input, but i don't want the listener to be added to any of the thing on the stage, ie. the movieclip, textfield... Instead I want a event listener that works on a higher level then those items, and always fires regardless of current focus.
In AS2, key.addlistener(receivingOBJ) is similar to what i want to achieve. Anyone have any advice on how to add this kind of functionality?
--there are 10 types of people in this world. those who know binary, and those who don't.--
hey,
I've been wondering if there is a quick and painless way to add a keyboard event handler to an entire fla, as apposed to a single element on the form.
Basically, what I'm saying is, I understand the concept of applying a listener to an object, but I'd benefit more from an event listener, listening to keyboard input, that isn't bound to an object, but is always triggered regardless of the current focus.
I might not be clear on my intentions, so I'll give an example. I have a form with a movieclip, a textfield, and a bitmap on the stage. Now i want to add an event listener to listen to keyboard input, but i don't want the listener to be added to any of the thing on the stage, ie. the movieclip, textfield... Instead I want a event listener that works on a higher level then those items, and always fires regardless of current focus.
In AS2, key.addlistener(receivingOBJ) is similar to what i want to achieve. Anyone have any advice on how to add this kind of functionality?
--there are 10 types of people in this world. those who know binary, and those who don't.--