Jun 20

Using Flex/Flash With an International Keyboard - Programming Tip

international-keyboard

Just a quick note to let any of you ActionScript developers out there using Flex/Flash that there is a bug that Adobe doesn’t call a bug with regards to International Keyboards.

The problem is that people that use an International Keyboard have a ‘\’ appear in place of an ‘@’ symbol.

There are several solutions to the problem out there but the easiest one I could come up with that didn’t take a lot of time to implement was to simply call the function below in the change event of your text control.

private function FixIntKeyboardIssue(obj as Object):void {

obj.text = obj.text.replace(”\”,”@”;

}

It probably won’t work 100% of the time on all international keyboards but it seems to get 99% of the cases I’ve found so far.

G-Man

No Responses

:mrgreen: :neutral: :twisted: :shock: :smile: :???: :cool: :evil: :grin: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad:

TrackBack URI

  G-man
 
Email Updates
Email:
     

  

View Geoffrey 
'G-Man' Faivre-Malloy's profile on LinkedIn

Links