A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: [F8] This is not a simple TAB-question!

  1. #1
    Junior Member
    Join Date
    May 2007
    Posts
    1

    [F8] This is not a simple TAB-question!

    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!
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center