Re: [Flashcoders] Newbie question: SHIFT+TAB
that was really newbie:p Great it is fixed - Original Message - From: "Neil Gibbons" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Tuesday, November 08, 2005 10:01 AM Subject: RE: [Flashcoders] Newbie question: SHIFT+TAB Lol. The problem seemed to be with my use of the FocusManager. I was creating an instance of it and passing into "drawing" functions that were creating the TextInput1 fields: objFocusManager = new FocusManager(); Then use the nextTabIndex to set fields tabIndex: txtUsername.tabIndex = objApp.objFocusManager.nextTabIndex; txtPassword.tabIndex = objApp.objFocusManager.nextTabIndex; When I traced this out, I noticed that it always returned 1? Anyway, I removed the FocusManger and simply added 1,2,3,etc and evreything appears to be fine now. Neil [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 07 November 2005 18:23 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Newbie question: SHIFT+TAB Did you create a new focus manager you could share ? :) Grant - Original Message - From: Scott Hyndman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: 11/7/05 11:50 AM Subject: RE: [Flashcoders] Newbie question: SHIFT+TAB What I did on one project was to use __proto__ and override the FocusManager's class at runtime. It worked quite well. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Muzak Sent: Mon 11/7/2005 9:14 AM To: Flashcoders mailing list Cc: Subject: Re: [Flashcoders] Newbie question: SHIFT+TAB And what exactly is TextInput1? A custom class I suppose. Which class does it extend? For tabbing to work propertly with other v2 components, you don't have much choice other than extending UIComponent (or any of the v2 core classes). I've said it before, the FocusManager is not one of the best v2 classes out there (and I'm being nice here;-) ). regards, Muzak - Original Message - From: "Neil Gibbons" To: "Flashcoders mailing list" Sent: Monday, November 07, 2005 2:56 PM Subject: RE: [Flashcoders] Newbie question: SHIFT+TAB Yes. I've used FocusManager.nextTabIndex() to set all tabIndexes, but there the following on screen, (in preferred tab order): 1. A search box at the top 2. Username field 3. Password field 4. A "Login" button 5. A "Register" button TAB & SHIFT TAB works between the buttons, but only TAB( tabbing forward), works on the fields. All text fields are type TextInput1. If I use the standard TextInput, tabbing is fine. :( Neil ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Scanned by MailDefender - managed email security from intY - www.maildefender.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders __ NOD32 1.1278 (20051107) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Newbie question: SHIFT+TAB
Lol. The problem seemed to be with my use of the FocusManager. I was creating an instance of it and passing into "drawing" functions that were creating the TextInput1 fields: objFocusManager = new FocusManager(); Then use the nextTabIndex to set fields tabIndex: txtUsername.tabIndex = objApp.objFocusManager.nextTabIndex; txtPassword.tabIndex = objApp.objFocusManager.nextTabIndex; When I traced this out, I noticed that it always returned 1? Anyway, I removed the FocusManger and simply added 1,2,3,etc and evreything appears to be fine now. Neil [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 07 November 2005 18:23 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Newbie question: SHIFT+TAB Did you create a new focus manager you could share ? :) Grant - Original Message - From: Scott Hyndman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: 11/7/05 11:50 AM Subject: RE: [Flashcoders] Newbie question: SHIFT+TAB > What I did on one project was to use __proto__ and override the FocusManager's class at runtime. It worked quite well. > > Scott > > -Original Message- > From: [EMAIL PROTECTED] on behalf of Muzak > Sent: Mon 11/7/2005 9:14 AM > To: Flashcoders mailing list > Cc: > Subject: Re: [Flashcoders] Newbie question: SHIFT+TAB > And what exactly is TextInput1? > A custom class I suppose. Which class does it extend? > > For tabbing to work propertly with other v2 components, you don't have > much choice other than extending UIComponent (or any of the > v2 core classes). > > I've said it before, the FocusManager is not one of the best v2 classes out there (and I'm being nice here;-) ). > > regards, > Muzak > > - Original Message - > From: "Neil Gibbons" > To: "Flashcoders mailing list" > Sent: Monday, November 07, 2005 2:56 PM > Subject: RE: [Flashcoders] Newbie question: SHIFT+TAB > > > > Yes. > I've used FocusManager.nextTabIndex() to set all tabIndexes, but there > the following on screen, (in preferred tab order): > > 1. A search box at the top > 2. Username field > 3. Password field > 4. A "Login" button > 5. A "Register" button > > TAB & SHIFT TAB works between the buttons, but only TAB( tabbing > forward), works on the fields. > > All text fields are type TextInput1. If I use the standard TextInput, > tabbing is fine. > :( > > Neil > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Scanned by MailDefender - managed email security from intY - www.maildefender.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Newbie question: SHIFT+TAB
Did you create a new focus manager you could share ? :) Grant - Original Message - From: Scott Hyndman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: 11/7/05 11:50 AM Subject: RE: [Flashcoders] Newbie question: SHIFT+TAB > What I did on one project was to use __proto__ and override the > FocusManager's class at runtime. It worked quite well. > > Scott > > -Original Message- > From: [EMAIL PROTECTED] on behalf of Muzak > Sent: Mon 11/7/2005 9:14 AM > To: Flashcoders mailing list > Cc: > Subject: Re: [Flashcoders] Newbie question: SHIFT+TAB > And what exactly is TextInput1? > A custom class I suppose. Which class does it extend? > > For tabbing to work propertly with other v2 components, you don't have much > choice other than extending UIComponent (or any of the > v2 core classes). > > I've said it before, the FocusManager is not one of the best v2 classes out > there (and I'm being nice here;-) ). > > regards, > Muzak > > - Original Message - > From: "Neil Gibbons" > To: "Flashcoders mailing list" > Sent: Monday, November 07, 2005 2:56 PM > Subject: RE: [Flashcoders] Newbie question: SHIFT+TAB > > > > Yes. > I've used FocusManager.nextTabIndex() to set all tabIndexes, but there > the following on screen, (in preferred tab order): > > 1. A search box at the top > 2. Username field > 3. Password field > 4. A "Login" button > 5. A "Register" button > > TAB & SHIFT TAB works between the buttons, but only TAB( tabbing > forward), works on the fields. > > All text fields are type TextInput1. If I use the standard TextInput, > tabbing is fine. > :( > > Neil > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Newbie question: SHIFT+TAB
What I did on one project was to use __proto__ and override the FocusManager's class at runtime. It worked quite well. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Muzak Sent: Mon 11/7/2005 9:14 AM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] Newbie question: SHIFT+TAB And what exactly is TextInput1? A custom class I suppose. Which class does it extend? For tabbing to work propertly with other v2 components, you don't have much choice other than extending UIComponent (or any of the v2 core classes). I've said it before, the FocusManager is not one of the best v2 classes out there (and I'm being nice here;-) ). regards, Muzak - Original Message - From: "Neil Gibbons" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Monday, November 07, 2005 2:56 PM Subject: RE: [Flashcoders] Newbie question: SHIFT+TAB Yes. I've used FocusManager.nextTabIndex() to set all tabIndexes, but there the following on screen, (in preferred tab order): 1. A search box at the top 2. Username field 3. Password field 4. A "Login" button 5. A "Register" button TAB & SHIFT TAB works between the buttons, but only TAB( tabbing forward), works on the fields. All text fields are type TextInput1. If I use the standard TextInput, tabbing is fine. :( Neil ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Newbie question: SHIFT+TAB
TextInput1 extends UIComponent Neil N. Gibbons Senior Developer Amaze Ltd Tel: +44 (0)870 240 1700 E-Mail: [EMAIL PROTECTED] Web: http://www.amaze.com Amaze Kings Court Manor Farm Road Nr Runcorn Cheshire WA7 1HR This communication contains information which is confidential and may also be privileged. It is for the exclusive use of the addressee(s). If you are not a named addressee please note that any distribution, reproduction, copying, publication or use of this communication or the information in it is prohibited. If you have received this communication in error, please contact the sender immediately, and also delete the communication from your computer. Amaze scan all outgoing mail for virus infection. Any attachment with this message should be checked for viruses before it is opened. Amaze Ltd cannot be held responsible for any failure by the recipient to test for viruses before opening any attachments. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: 07 November 2005 14:14 To: Flashcoders mailing list Subject: Re: [Flashcoders] Newbie question: SHIFT+TAB And what exactly is TextInput1? A custom class I suppose. Which class does it extend? For tabbing to work propertly with other v2 components, you don't have much choice other than extending UIComponent (or any of the v2 core classes). I've said it before, the FocusManager is not one of the best v2 classes out there (and I'm being nice here;-) ). regards, Muzak - Original Message - From: "Neil Gibbons" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Monday, November 07, 2005 2:56 PM Subject: RE: [Flashcoders] Newbie question: SHIFT+TAB Yes. I've used FocusManager.nextTabIndex() to set all tabIndexes, but there the following on screen, (in preferred tab order): 1. A search box at the top 2. Username field 3. Password field 4. A "Login" button 5. A "Register" button TAB & SHIFT TAB works between the buttons, but only TAB( tabbing forward), works on the fields. All text fields are type TextInput1. If I use the standard TextInput, tabbing is fine. :( Neil ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Scanned by MailDefender - managed email security from intY - www.maildefender.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Newbie question: SHIFT+TAB
And what exactly is TextInput1? A custom class I suppose. Which class does it extend? For tabbing to work propertly with other v2 components, you don't have much choice other than extending UIComponent (or any of the v2 core classes). I've said it before, the FocusManager is not one of the best v2 classes out there (and I'm being nice here;-) ). regards, Muzak - Original Message - From: "Neil Gibbons" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Monday, November 07, 2005 2:56 PM Subject: RE: [Flashcoders] Newbie question: SHIFT+TAB Yes. I've used FocusManager.nextTabIndex() to set all tabIndexes, but there the following on screen, (in preferred tab order): 1. A search box at the top 2. Username field 3. Password field 4. A "Login" button 5. A "Register" button TAB & SHIFT TAB works between the buttons, but only TAB( tabbing forward), works on the fields. All text fields are type TextInput1. If I use the standard TextInput, tabbing is fine. :( Neil ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Newbie question: SHIFT+TAB
Yes. I've used FocusManager.nextTabIndex() to set all tabIndexes, but there the following on screen, (in preferred tab order): 1. A search box at the top 2. Username field 3. Password field 4. A "Login" button 5. A "Register" button TAB & SHIFT TAB works between the buttons, but only TAB( tabbing forward), works on the fields. All text fields are type TextInput1. If I use the standard TextInput, tabbing is fine. :( Neil [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thimon Sistermans [Us Media] Sent: 07 November 2005 13:43 To: Flashcoders mailing list Subject: Re: [Flashcoders] Newbie question: SHIFT+TAB >>Trie that. No difference. hehe I gave a newbe answer. anyway ... did you set the tab index? ...are there any other objects with the same name on stage wich also can have a tabIndex ? >>> The problem also appears in the browser. I've altered th onSetFocus as follows: this.onSetFocus = function(oldFocus) { trace("onSetFocus called, previous focus was: " + oldFocus); if ((txtInput.enabled) && (txtInput.editable)) { txtInput.onSetFocus(); } } Now, when I tab from one TextInput1, (txtUsername) to another, (txtPassword) I correctly see: onSetFocus called, previous focus was: _level0.login_mc.txtUsername.txtInput.label But when I SHIFT+TAB back I repeatedly see: onSetFocus called, previous focus was: _level0.login_mc.txtPassword.txtInput.label And the focus remains in the txtPassword, when it should move back up to the txtUsername. Is there some way to use the oldFocus parameter and pass the focus back to it if a SHIFT+TAB Has been pressed? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Scanned by MailDefender - managed email security from intY - www.maildefender.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Newbie question: SHIFT+TAB
Trie that. No difference. hehe I gave a newbe answer. anyway ... did you set the tab index? ...are there any other objects with the same name on stage wich also can have a tabIndex ? The problem also appears in the browser. I've altered th onSetFocus as follows: this.onSetFocus = function(oldFocus) { trace("onSetFocus called, previous focus was: " + oldFocus); if ((txtInput.enabled) && (txtInput.editable)) { txtInput.onSetFocus(); } } Now, when I tab from one TextInput1, (txtUsername) to another, (txtPassword) I correctly see: onSetFocus called, previous focus was: _level0.login_mc.txtUsername.txtInput.label But when I SHIFT+TAB back I repeatedly see: onSetFocus called, previous focus was: _level0.login_mc.txtPassword.txtInput.label And the focus remains in the txtPassword, when it should move back up to the txtUsername. Is there some way to use the oldFocus parameter and pass the focus back to it if a SHIFT+TAB Has been pressed? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Newbie question: SHIFT+TAB
Trie that. No difference. The problem also appears in the browser. I've altered th onSetFocus as follows: this.onSetFocus = function(oldFocus) { trace("onSetFocus called, previous focus was: " + oldFocus); if ((txtInput.enabled) && (txtInput.editable)) { txtInput.onSetFocus(); } } Now, when I tab from one TextInput1, (txtUsername) to another, (txtPassword) I correctly see: onSetFocus called, previous focus was: _level0.login_mc.txtUsername.txtInput.label But when I SHIFT+TAB back I repeatedly see: onSetFocus called, previous focus was: _level0.login_mc.txtPassword.txtInput.label And the focus remains in the txtPassword, when it should move back up to the txtUsername. Is there some way to use the oldFocus parameter and pass the focus back to it if a SHIFT+TAB Has been pressed? Neil [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thimon Sistermans [Us Media] Sent: 07 November 2005 12:29 To: Flashcoders mailing list Subject: Re: [Flashcoders] Newbie question: SHIFT+TAB when debugging in flash... check (for win) control/disable keyboard shortcuts - Original Message - From: "Neil Gibbons" <[EMAIL PROTECTED]> To: Sent: Monday, November 07, 2005 11:52 AM Subject: [Flashcoders] Newbie question: SHIFT+TAB Created a TextInput1 component which has an internal TextInput. We basically have some custon drawing functions to display it differently form the norm. For some reason, I can TAB forward through a small form with two of these TextInput1 boxes, but I'm unable to SHIFT+TAB backwards? Within the init() funciton we have the following: private function init() { //trace("I'm a text input"); // hide the clips bounding box boundingBox_mc._visible = false; boundingBox_mc._width = 0; boundingBox_mc._height = 0; // need to direct focus to the txtInput field this.onSetFocus = function() { trace("SETFOCUS"); if ((txtInput.enabled) && (txtInput.editable)) { txtInput.onSetFocus(); } } this.onKillFocus = function(n) { txtInput.onKillFocus(n); } this.drawFocus = function(b) { txtInput.drawFocus(b); } } Anyone any ideas? Neil [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders __ NOD32 1.1277 (20051105) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Scanned by MailDefender - managed email security from intY - www.maildefender.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Newbie question: SHIFT+TAB
when debugging in flash... check (for win) control/disable keyboard shortcuts - Original Message - From: "Neil Gibbons" <[EMAIL PROTECTED]> To: Sent: Monday, November 07, 2005 11:52 AM Subject: [Flashcoders] Newbie question: SHIFT+TAB Created a TextInput1 component which has an internal TextInput. We basically have some custon drawing functions to display it differently form the norm. For some reason, I can TAB forward through a small form with two of these TextInput1 boxes, but I'm unable to SHIFT+TAB backwards? Within the init() funciton we have the following: private function init() { //trace("I'm a text input"); // hide the clips bounding box boundingBox_mc._visible = false; boundingBox_mc._width = 0; boundingBox_mc._height = 0; // need to direct focus to the txtInput field this.onSetFocus = function() { trace("SETFOCUS"); if ((txtInput.enabled) && (txtInput.editable)) { txtInput.onSetFocus(); } } this.onKillFocus = function(n) { txtInput.onKillFocus(n); } this.drawFocus = function(b) { txtInput.drawFocus(b); } } Anyone any ideas? Neil [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders __ NOD32 1.1277 (20051105) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Newbie question: SHIFT+TAB
Created a TextInput1 component which has an internal TextInput. We basically have some custon drawing functions to display it differently form the norm. For some reason, I can TAB forward through a small form with two of these TextInput1 boxes, but I'm unable to SHIFT+TAB backwards? Within the init() funciton we have the following: private function init() { //trace("I'm a text input"); // hide the clips bounding box boundingBox_mc._visible = false; boundingBox_mc._width = 0; boundingBox_mc._height = 0; // need to direct focus to the txtInput field this.onSetFocus = function() { trace("SETFOCUS"); if ((txtInput.enabled) && (txtInput.editable)) { txtInput.onSetFocus(); } } this.onKillFocus = function(n) { txtInput.onKillFocus(n); } this.drawFocus = function(b) { txtInput.drawFocus(b); } } Anyone any ideas? Neil [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders