Hey...
I have a logonsystem (and registerform) in my flashapplication.
To switch between inputfields I could use tabIndex but due to certain circumstances I can't... (I have many forms in my flashapplication).
Because of that I've put every button and textfield on: tabEnabled = false
To switch between fields I use this code:
Code:
function onKeyUpTextFields(p_objects:Array) {
for (var i:Number=0; i<p_objects.length; i++) {
var nextObject:Object;
if ( (i+1) < p_objects.length ) {
nextObject = p_objects[i+1]
}
else {
nextObject = p_objects[0];
}
p_objects[i].nextObject = nextObject;
p_objects[i].onKeyUp = function () {
if (Key.getCode() == Key.TAB) {
Selection.setFocus(this.nextObject);
}
}
};
delete i;
};
In the build in flashplayer in Flash it works perfect! Also in Firefox... but NOT in IE 7.
If I press TAB in IE 7 he jumps to the addressbar???
Can someone explain that and do you have a solution?
Does someone can test it with IE 6?
For an example... see attached!
Thnx!