detecting input method (keyboard language)

How do I detect the currently selected input method either from ActionScript (Preffered) or from Javascript ?
i.e. - I want to know what does it say on the user's language bar - what keyboard is he using.

for those wandering why, ther reason is that I am trying to find a workaround for a bug in the combination of firefox/flash where when using wmode=transparent on the flash object the keyboard input to the flash seems to ignore the language settings (e.g. in german keyboard AltGr+Q does not produce the expected @ but shift 2 does).
LVL 15
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you could use flash.system.Capabilities and flash.system.IME to try to determine the input language.
flash.system.Capabilities.language gives you a string representing system language code:

Czech cs
Danish da
Dutch nl
English en
Finnish fi
French fr
German de
Hungarian hu
Italian it
Japanese ja
Korean ko
Norwegian no
Other/unknown xu
Polish pl
Portuguese pt
Russian ru
Simplified Chinese zh-CN
Spanish es
Swedish sv
Traditional Chinese zh-TW
Turkish tr
Other than that I don't think you can have access to what keyboard layout users has chosen.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
If I remember correctly, that specific bug has nothing to do with the language...  That happens no matter what language you have selected as long as you are using the wmode=transparent...

SnowFlakeAuthor Commented:
you are absoluely right.
I am hopeing that if there is a way to know the language from JS then maybe my flash can check it out and do some fixes based on specific keycodes it gets.
I am not looking to solve the entier bug - even though that would have been nice - just to allow people with different keybaords add @.

The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Simplest thing people normally do is to add a virtual keyboard where you can click to type...  But I don't really know if there is any work-around for this specific problem since it is due to the bug in the wmode and how the web browser is handing this...  :(

SnowFlakeAuthor Commented:
yes, I am getting the feeling that what I asked for here just does not exist.
I will probably have to give up the wmode.
If you ask me, wmode == bad...  :(

SnowFlakeAuthor Commented:
nope, actually in this case its firefox=bad ...
SnowFlakeAuthor Commented:
thank you both for your inputs, most of the points went to julianopolito for actual information given.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.