Monday 6 August 2007

wmode @ key flash bug

I often encountered the problem that some of my flash files did not accept the @ symbol in forms. I had to use the US keyboard @-sign location to add it. this issue only seemed to be on PC, as macs did not have that issue.
The reason for this seems to come up as soon as you publish your movie in wmode( transparent window mode), then the movie only can accept US keyboard-key locations.

more here:
http://blog.headlondon.com/archives/no-wmode-please-were-british/


One Workasround could be:

keyPresser = new Object();
keyPresser.onChanged = function(intxt:TextField) {
if (34 == ((Key.getAscii())) || 64 == ((Key.getAscii()))) {
in
txt.text = intxt.text.slice(0,intxt.text.length-1) +”@”;
}
};
Key.addListener(keyListener);
input_txt.addListener(keyPresser);

No comments: