ÐÏࡱá>þÿ  þÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿRoot Entryÿÿÿÿÿÿÿÿpª|YªrσRASHÀvóMåßÀ!@Contentsÿÿÿÿ1Page 1ÿÿÿÿÿÿÿÿÿÿÿÿSymbol 3ÿÿÿÿÀýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ#ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ"þÿÿÿ$%þÿÿÿ &'()*+,-./0þÿÿÿ23456789:þÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿRoot Entryÿÿÿÿÿÿÿÿpª|YªrσRASH B¼1åßÀ!@ContentsÿÿÿÿPage 1ÿÿÿÿÿÿÿÿÿÿÿÿSymbol 3ÿÿÿÿÀÿÿÿÿÿÿÿÿýÿÿÿþÿÿÿÿÿÿÿ # þÿÿÿþÿÿÿÿÿÿÿþÿÿÿ$ÿÿÿÿþÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿSymbol 1ÿÿÿÿÿÿÿÿÿÿÿÿJSymbol 4ÿÿÿÿÿÿÿÿÿÿÿÿ>ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿCPicPageÿÿ CPicLayerÿÿ CPicFrameÿÿCPicText€€{$kÿÿÿ…Ûÿÿ�D@.ÀArialm}Œÿ"äýnextFocus=currentFocus-1 == -1? tabOrder.len €€€f$ë…Ûÿÿúÿÿ0@ÀArialÄêÿÿ"¬þcustom tab orderÿÿ CPicShape€€!&ÿÄêÿÿ{€€ÈUøÿ—`"0`ª8 Zûÿhí8ÿÿ@ü<üùøóâÄ0 Uý< €€€Symbol 1ÿÿÿÿÿÿÿÿÿÿÿÿJSymbol 4ÿÿÿÿÿÿÿÿÿÿÿÿ>ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿHùÿÿd™™™ÿÌÿÿóÏ6;˜þ0¸÷0hðHó¸÷à0H0 ùð¸÷€€€1Óê'l@¨ðArialÄêÿÿ"event handlers on an empty movie clip dictate the order in which this movie's text fields are accessed via the tab key. the clip's load handler defines an array called ðArialÌÌÌÿ"tabOrdertðArialÄêÿÿ", whose elements specify text fields to be included in the tab order. in the example below, the tab order is set to ðArialÌÌÌÿ"form1.field1ðArialÄêÿÿ", ðArialÌÌÌÿ"form2.field3ðArialÄêÿÿ", ðArialÌÌÌÿ"_level0.field4ðArialÄêÿÿ", and ðArialÌÌÌÿ"form2.field2^ðArialÄêÿÿ". press the tab and shift+tab keys to try it out. notice that text fields not included in the ðArialÌÌÌÿ"tabOrder'ðArialÄêÿÿ" array are excluded from the tab order.€€€íW H@mðArialÄêÿÿ"this button is *very* important. it traps the tab key in web browsers, allowing our keyUp event to handle it.€€€£ $@ðArialÄêÿÿ"empty clip with event handlers € €€€ÿÿöüÿÿÄêÿÿS€Y'*³€€²€€4AMÿÿ5€€Äêÿÿs€ÀPFþ0è € €€€ÿÿöèÄêÿÿS€Y'*³€€²€€4AMÿÿ5€€Äêÿÿs€À¸)Fþ0 €€™Ìÿ×(€ذ8RùÿHå0 U8üÕXÿÿÿ?ÿÿ€€bgÿÿÿÿ™3Ìÿ€€ÿÿ CPicSprite¢ŽÿÿÿÿO€ÿÿ€€ÿÿCPicPageÿÿ CPicLayerÿÿ CPicFrameÿÿ CPicShape€€ ÿ<÷=éþáAöA„?4âÿJ]|ÿ>4J¾¢AÂþƒ4¶¢"Âþ}ÿ;÷p÷€ï€î4€Î™Ã�ÿåþ4v¢„Áþ4¶A^¾>}ÿ4áVáÿ,r|þ €3{ýbs�ý€€ÿÿÿÿÌÿÿó²Nýd0œú0œú0dÿÿÿ?ÿÿ€€Layer 1ÿÿÿÿO€ÿÿ€€¢Žÿÿÿÿÿº // moock custom tab order // version 1.1.0 // Note that the code here has been revised since it was // included in ActionScript: The Definitive Guide. // The changes in this version are: // 1) when tab is pressed and no field from // the tabOrder array has focus, focus returns // to the last focussed tabOrder field. // 2) the tab order applies to all text fields in the movie, // not just a specific clip. onClipEvent (load) { // send all keystrokes to the standalone player. fscommand("trapallkeys", "true"); // Create an array with the full paths to our text fields, supplied // in the desired tab order. First field listed is the default. tabOrder = ["_level0.form1.field1", "_level0.form2.field3", "_level0.field4", "_level0.form2.field2"]; } onClipEvent (keyUp) { // If the Tab key was pressed... if (Key.getCode() == Key.TAB) { // ...then we need to determine // which (if any) field from the tabOrder array has focus. // We start by retrieving the path to the focussed field. var focussed = Selection.getFocus(); // Now we check each element of tabOrder to see if it // matches the focussed field. If no match is found, we // let currentFocus remain the same. This lets a user // unfocus a field by, say, clicking away, and then // refocus it with tab. for (var i = 0; i < tabOrder.length; i++) { if (tabOrder[i] == focussed) { // Stop when we find a match, and note which element has focus. currentFocus = i; break; } } // If no field from tabOrder has ever had focus, currentFocus // will be undefined, in which case... if (typeof(currentFocus) == "undefined") { // ...we focus the first field in the array of fields. Selection.setFocus(tabOrder[0]); } else { // Otherwise, we set the new focus to either the next // field or the previous field in tabOrder, // depending on whether the Shift key is down. // If the Shift key is down... if (Key.isDown(Key.SHIFT)) { // ...go to the previous field, // unless we're already at the beginning, in which case // wrap around to the end. nextFocus = currentFocus-1 == -1 ? tabOrder.length-1 : currentFocus-1; } else { // Shift key is not down, so go to the next field, // unless we're already at the end, in which case, // wrap around to the beginning. nextFocus = currentFocus+1 == tabOrder.length ? 0 : currentFocus+1; } // Finally, assign the new focus. Selection.setFocus(tabOrder[nextFocus]); } } } €€ÿÿÿ?ÿÿ€€text field empty clipÿÿÿÿO€ÿÿ€€€^C˜˜^Cÿÿÿÿform1€ #C˜˜ #Cÿÿÿÿform2€€€U§Ð¿@ TextField4�Arialm}Œÿform1€€€u »Ð¿@ TextField4�Arialm}Œÿform2€€ÿÿÿ?ÿÿ€€ form clipsÿÿÿÿÿÿOÿ€€ €€€ qþÿÿ™™™ÿÌÌÌÿó»&7´0(0Lî0Øú€€€eŸeŸ÷Î ¿Afield4�Arialÿfield4 on _root€€ÿÿÿ?ÿÿ€€text field on _rootÿÿÿÿÿOOÿ€€ÿÿ CPicButton€€‰êÿÿÿÿMon (keyPress "") { var x = 0; // Dummy button to trap Tab key } €€ÿÿÿ?ÿÿ€€tabcatcher buttonÿÿÿÿOÿOÿ€€ÿÿÿ?ÿÿ€€text field on _rootÿÿÿÿÿOOÿ€€ÿÿ CPicButton€€‰êÿÿÿÿ ÿÿ CDocumentPage Page 1Scene 1/„A:7š;€ Symbol 4 empty clip¿�;8–;€ Symbol 3 tabCatcherxŒ;6xŒ;€ Symbol 1tabOrder�„A:™;ø*@h…hhhh333ÿÀÀÀÿ ´Vector::Template"PublishFormatProperties::generatorÿÿÿÿÿÿÿ CColorDefÿ€ÿ€ÿ€3ÿPï€fÿPï0€™ÿPïH€ÌÿPï`€ÿÿPïx€3ÿï€33ÿ(ï€3fÿ<ï0€3™ÿCïH€3ÌÿFï`€3ÿÿHïx€fÿï0€f3ÿï0€ffÿ(ï0€f™ÿ5ïH€fÌÿ<ï`€fÿÿ@ïx€ÿ€333ÿ0€ÿ€3ÿ ï€33ÿxï€f3ÿdï0€™3ÿ]ïH€Ì3ÿZï`€ÿ3ÿXïx€33ÿÈï€333ÿ0€3f3ÿPPH€3™3ÿPx`€3Ì3ÿP�x€3ÿ3ÿPï�€f3ÿÜï0€f33ÿPH€ff3ÿ(PH€f™3ÿ<x`€fÌ3ÿC�x€fÿ3ÿFï�€ÿ€fffÿ`€ÿ€fÿ ï0€3fÿŒï0€ffÿxï0€™fÿkïH€Ìfÿdï`€ÿfÿ`ïx€3fÿ´ï0€33fÿ PH€3ffÿxPH€3™fÿdx`€3Ìfÿ]�x€3ÿfÿZï�€ffÿÈï0€f3fÿÈPH€fffÿ`€f™fÿP0x€fÌfÿPx�€fÿfÿP切ÿ€™™™ÿ�€ÿ€™ÿ ïH€3™ÿ“ïH€f™ÿ…ïH€™™ÿxïH€Ì™ÿnï`€ÿ™ÿhïx€3™ÿ­ïH€33™ÿ x`€3f™ÿŒx`€3™™ÿxx`€3Ì™ÿk�x€3ÿ™ÿdï�€f™ÿ»ïH€f3™ÿ´x`€ff™ÿ 0x€f™™ÿx0x€fÌ™ÿdx�€fÿ™ÿ]切ÿ€ÌÌÌÿÀ€ÿ€Ìÿ ï`€3Ìÿ–ï`€fÌÿŒï`€™Ìÿ‚ï`€ÌÌÿxï`€ÿÌÿpïx€3Ìÿªï`€33Ìÿ �x€3fÌÿ“�x€3™Ìÿ…�x€3ÌÌÿx�x€3ÿÌÿnï�€fÌÿ´ï`€f3Ìÿ­�x€ffÌÿ x�€f™ÌÿŒx�€fÌÌÿxx�€fÿÌÿk切ÿ€ÿÿÿÿð€ÿ€ÿÿ ïx€3ÿÿ˜ïx€fÿÿ�ïx€™ÿÿˆïx€Ìÿÿ€ïx€ÿÿÿxïx€3ÿÿ¨ïx€33ÿÿ ï�€3fÿÿ–ï�€3™ÿÿŒï�€3Ìÿÿ‚ï�€3ÿÿÿxï�€fÿÿ°ïx€f3ÿÿªï�€ffÿÿ ï¨€f™ÿÿ“切fÌÿÿ…切fÿÿÿx切ÿ€ÿÿïx€ÿ€™ÿïH€™3ÿ ïH€™fÿïH€™™ÿ(ïH€™Ìÿ2ï`€™ÿÿ8ïx€Ìÿï`€Ì3ÿ ï`€Ìfÿï`€Ì™ÿï`€ÌÌÿ(ï`€Ìÿÿ0ïx€ÿÿïx€ÿ3ÿïx€ÿfÿïx€ÿ™ÿïx€ÿÌÿ ïx€ÿÿÿ(ïx€ÿ€ÿÿPïx€ÿ€™3ÿãïH€™33ÿx`€™f3ÿx`€™™3ÿ(x`€™Ì3ÿ5�x€™ÿ3ÿ<ï�€Ì3ÿæï`€Ì33ÿ�x€Ìf3ÿ �x€Ì™3ÿ�x€ÌÌ3ÿ(�x€Ìÿ3ÿ2ï�€ÿ3ÿèïx€ÿ33ÿï�€ÿf3ÿ ï�€ÿ™3ÿï�€ÿÌ3ÿï�€ÿÿ3ÿ(ï�€ÿ€ÿÿ ïx€ÿ€™fÿÕïH€™3fÿÜx`€™ffÿ0x€™™fÿ(0x€™Ìfÿ<x�€™ÿfÿC切ÌfÿÜï`€Ì3fÿã�x€Ìffÿx�€Ì™fÿx�€ÌÌfÿ(x�€Ìÿfÿ5切ÿfÿàïx€ÿ3fÿæï�€ÿffÿ切ÿ™fÿ 切ÿÌfÿ切ÿÿfÿ(切ÿ€ÿÿÿ(ïx€ÿ€™™ÿÈïH€™3™ÿÈx`€™f™ÿÈ0x€™™™ÿ�€™Ì™ÿPP¨€™ÿ™ÿPïÀ€Ì™ÿÒï`€Ì3™ÿÕ�x€Ìf™ÿÜx�€Ì™™ÿP¨€ÌÌ™ÿ(P¨€Ìÿ™ÿ<ïÀ€ÿ™ÿØïx€ÿ3™ÿÜï�€ÿf™ÿã切ÿ™™ÿïÀ€ÿÌ™ÿïÀ€ÿÿ™ÿ(ïÀ€ÿ€ÿÿÿxïx€ÿ€™Ìÿ¾ï`€™3Ìÿ»�x€™fÌÿ´x�€™™Ìÿ P¨€™ÌÌÿxP¨€™ÿÌÿdïÀ€ÌÌÿÈï`€Ì3ÌÿÈ�x€ÌfÌÿÈx�€Ì™ÌÿÈP¨€ÌÌÌÿÀ€ÌÿÌÿPïØ€ÿÌÿÐïx€ÿ3ÌÿÒï�€ÿfÌÿÕ切ÿ™ÌÿÜïÀ€ÿÌÌÿïØ€ÿÿÌÿ(ïØ€ÿ€ÿÿÿÈïx€ÿ€™ÿÿ¸ïx€™3ÿÿ´ï�€™fÿÿ­ï¨€™™ÿÿ ïÀ€™ÌÿÿŒïÀ€™ÿÿÿxïÀ€ÌÿÿÀïx€Ì3ÿÿ¾ï�€Ìfÿÿ»ï¨€Ì™ÿÿ´ïÀ€ÌÌÿÿ ïØ€ÌÿÿÿxïØ€ÿÿÿÈïx€ÿ3ÿÿÈï�€ÿfÿÿÈ切ÿ™ÿÿÈïÀ€ÿÌÿÿÈïØ€ÿÿÿÿð€ÿ€ÿë{ÿ"ï²€Äêÿÿ†ïÔ€m}Œÿ‹v€ÿÿÿÿÿÿÿ€ÿÿÿÿÿÿÿ€ÿÿÿÿÿ€ÿÿÿÿÿ€ÿÿÿÿÿ€ÿfýÿ`ÿÿÿÿzÿÿÿÿ€™fÿªÿÌÿÿÿÿÿÿ€ÿÿÿ*ÿÿÿ]ÿÿÿÿÿªÿÿÔÿÿÿÿÿÿPW|÷ÿÿhÄêÿÿ†ïÔ€m}Œÿ‹v€ÿÿÿÿÿÿÿ€ÿÿÿÿÿÿÿ€ÿÿÿÿÿ€ÿÿÿÿÿ€ÿÿÿCPicPageÿÿ CPicLayerÿÿ CPicFrameÿÿCPicText€€{$kÿÿÿ…Ûÿÿ�D@.ÀArialm}Œÿ"äýnextFocus=currentFocus-1 == -1? tabOrder.len €€€f$ë…Ûÿÿúÿÿ0@ÀArialÄêÿÿ"¬þcustom tab orderÿÿ CPicShape€€!&ÿÄêÿÿ{€€ÈUøÿ—`"0`ª8 Zûÿhí8ÿÿ@ü<üùøóâÄ0 Uý< €€€ þÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿCPicPageÿÿ CPicLayerÿÿ CPicFrameÿÿ CPicShape€€&øÓ¡oÝÿÿÕñÿÿ™™™ÿÌÌÌÿs€€n:x0'0ˆæ0òØ€€ÿÿÿ?ÿÿ€€bgÿÿÿÿÿOOÿ€€ÿÿCPicText€€[ûÿÿ]ùÿÿ_ Afield1àArialÿ"field1 €€€[ûÿÿýÿÿ_ AfiHùÿÿd™™™ÿÌÿÿóÏ6;˜þ0¸÷0hðHó¸÷à0H0 ùð¸÷€€€1Óê'l@¨ðArialÄêÿÿ"event handlers on an empty movie clip dictate the order in which this movie's text fields are accessed via the tab key. the clip's load handler defines an array called ðArialÌÌÌÿ"tabOrdertðArialÄêÿÿ", whose elements specify text fields to be included in the tÿÿCPicPageÿÿ CPicLayerÿÿ CPicFrame€€m}ŒÿÄêÿÿÕf™+++g<ÕfÖ+š+Ä™ÕÖÖÖšÄ*™+ÖgÖ<f*ÿÿÿ?ÿÿ€€Layer 1ÿÿÿÿO€ÿÿ€€€€eld2àArialÿ"field2 €€€ZûÿÿÔ_ Afield3àArialÿ"field3€€ÿÿÿ?ÿÿ€€fieldsÿÿÿÿO€ÿÿ€€field5àArialÿ"field5€€ÿÿÿ?ÿÿ€€fieldsab order. in the example below, the tab order is set to ðArialÌÌÌÿ"form1.field1ðArialÄêÿÿ", ðArialÌÌÌÿ"form2.field3ðArialÄêÿÿ", ðArialÌÌÌÿ"_level0.field4ðArialÄêÿÿ", and ðArialÌÌÌÿ"form2.field2^ðArialÄêÿÿ". press the tab and shift+tab keys to try it out. notice that text fields not included in the ðArialÌÌÌÿ"tabOrder'ðArialÄêÿÿ" array are excluded from the tab order.€€€íW H@mðArialÄêÿÿ"this button is *very* important. it traps the tab key in web browsers, allowing our keyUp event to handle it.€€€£ $@ðArialÄêÿÿ"empty clip with event handlers € €€€ÿÿöüÿÿÄêÿÿS€Y'*³€€²€€4AMÿÿ5€€Äêÿÿs€ÀPFþ0è € €€€ÿÿöèÄêÿÿS€Y'*³€€²€€4AMÿÿ5€€Äêÿÿs€À¸)Fþ0 €€™Ìÿ×(€ذ8RùÿHå0 U8üÕXÿÿÿ?ÿÿ€€bgÿÿÿÿ™3Ìÿ€€ÿÿ CPicSprite¢Ž¢Žÿÿÿÿÿº // moock custom tab order // version 1.1.0 // Note that the code here has been revised since it was // included in ActionScript: The Definitive Guide. // The changes in this version are: // 1) when tab is pressed and no field from // the tabOrder array has focus, focus returns // to the last focussed tabOrder field. // 2) the tab order applies to all text fields in the movie, // not just a specific clip. onClipEvent (load) { // send all keystrokes to the standalone player. fscommand("trapallkeys", "true"); // Create an array with the full paths to our text fields, supplied // in the desired tab order. First field listed is the default. tabOrder = ["_level0.form1.field1", "_level0.form2.field3", "_level0.field4", "_level0.form2.field2"]; } onClipEvent (keyUp) { // If the Tab key was pressed... if (Key.getCode() == Key.TAB) { // ...then we need to determine // which (if any) field from the tabOrder array has focus. // We start by retrieving the path to the focussed field. var focussed = Selection.getFocus(); // Now we check each element of tabOrder to see if it // matches the focussed field. If no match is found, we // let currentFocus remain the same. This lets a user // unfocus a field by, say, clicking away, and then // refocus it with tab. for (var i = 0; i < tabOrder.length; i++) { if (tabOrder[i] == focussed) { // Stop when we find a match, and note which element has focus. currentFocus = i; break; } } // If no field from tabOrder has ever had focus, currentFocus // will be undefined, in which case... if (typeof(currentFocus) == "undefined") { // ...we focus the first field in the array of fields. Selection.setFocus(tabOrder[0]); } else { // Otherwise, we set the new focus to either the next // field or the previous field in tabOrder, // depending on whether the Shift key is down. // If the Shift key is down... if (Key.isDown(Key.SHIFT)) { // ...go to the previous field, // unless we're already at the beginning, in which case // wrap around to the end. nextFocus = currentFocus-1 == -1 ? tabOrder.length-1 : currentFocus-1; } else { // Shift key is not down, so go to the next field, // unless we're already at the end, in which case, // wrap around to the beginning. nextFocus = currentFocus+1 == tabOrder.length ? 0 : currentFocus+1; } // Finally, assign the new focus. Selection.setFocus(tabOrder[nextFocus]); } } } €€ÿÿÿ?ÿÿ€€text field empty clipÿÿÿÿO€ÿÿ€€€^C˜˜^Cÿÿÿÿform1€ #C˜˜ #Cÿÿÿÿform2€€€U§Ð¿@ TextField4�Arialm}Œÿform1€€€u »Ð¿@ TextField4�Arialm}Œÿform2€€ÿÿÿ?ÿÿ€€ form clipsÿÿÿÿÿÿOÿ€€ €€€ qþÿÿ™™™ÿÌÌÌÿó»&7´0(0Lî0Øú€€€eŸeŸ÷Î ¿Afield4�Arialÿfield4 on _root€€ÿÿÿ?ÿÿ€€text field on _rootÿÿÿÿÿOOÿ€€ÿÿ CPicButton€€‰êÿÿÿÿMon (keyPress "") { var x = 0; // Dummy button to trap Tab key } €€ÿÿÿ?ÿÿ€€tabcatcher buttonÿÿÿÿOÿOÿ€€ ÿÿ CDocumentPage Page 1Scene 1/„A:Cš;€ Symbol 4 empty clip¿�;8–;€ Symbol 3 tabCatcherxŒ;6xŒ;€ Symbol 1tabOrder�„A:™;ø*@h…hhhh333ÿÀÀÀÿ ´Vector::Template"PublishFormatProperties::generatorÿÿÿÿÿÿÿ CColorDefÿ€ÿ€ÿ€3ÿPï€fÿPï0€™ÿPïH€ÌÿPï`€ÿÿPïx€3ÿï€33ÿ(ï€3fÿ<ï0€3™ÿCïH€3ÌÿFï`€3ÿÿHïx€fÿï0€f3ÿï0€ffÿ(ï0€f™ÿ5ïH€fÌÿ<ï`€fÿÿ@ïx€ÿ€333ÿ0€ÿ€3ÿ ï€33ÿxï€f3ÿdï0€™3ÿ]ïH€Ì3ÿZï`€ÿ3ÿXïx€33ÿÈï€333ÿ0€3f3ÿPPH€3™3ÿPx`€3Ì3ÿP�x€3ÿ3ÿPï�€f3ÿÜï0€f33ÿPH€ff3ÿ(PH€f™3ÿ<x`€fÌ3ÿC�x€fÿ3ÿFï�€ÿ€fffÿ`€ÿ€fÿ ï0€3fÿŒï0€ffÿxï0€™fÿkïH€Ìfÿdï`€ÿfÿ`ïx€3fÿ´ï0€33fÿ PH€3ffÿxPH€3™fÿdx`€3Ìfÿ]�x€3ÿfÿZï�€ffÿÈï0€f3fÿÈPH€fffÿ`€f™fÿP0x€fÌfÿPx�€fÿfÿP切ÿ€™™™ÿ�€ÿ€™ÿ ïH€3™ÿ“ïH€f™ÿ…ïH€™™ÿxïH€Ì™ÿnï`€ÿ™ÿhïx€3™ÿ­ïH€33™ÿ x`€3f™ÿŒx`€3™™ÿxx`€3Ì™ÿk�x€3ÿ™ÿdï�€f™ÿ»ïH€f3™ÿ´x`€ff™ÿ 0x€f™™ÿx0x€fÌ™ÿdx�€fÿ™ÿ]切ÿ€ÌÌÌÿÀ€ÿ€Ìÿ ï`€3Ìÿ–ï`€fÌÿŒï`€™Ìÿ‚ï`€ÌÌÿxï`€ÿÌÿpïx€3Ìÿªï`€33Ìÿ �x€3fÌÿ“�x€3™Ìÿ…�x€3ÌÌÿx�x€3ÿÌÿnï�€fÌÿ´ï`€f3Ìÿ­�x€ffÌÿ x�€f™ÌÿŒx�€fÌÌÿxx�€fÿÌÿk切ÿ€ÿÿÿÿð€ÿ€ÿÿ ïx€3ÿÿ˜ïx€fÿÿ�ïx€™ÿÿˆïx€Ìÿÿ€ïx€ÿÿÿxïx€3ÿÿ¨ïx€33ÿÿ ï�€3fÿÿ–ï�€3™ÿÿŒï�€3Ìÿÿ‚ï�€3ÿÿÿxï�€fÿÿ°ïx€f3ÿÿªï�€ffÿÿ ï¨€f™ÿÿ“切fÌÿÿ…切fÿÿÿx切ÿ€ÿÿïx€ÿ€™ÿïH€™3ÿ ïH€™fÿïH€™™ÿ(ïH€™Ìÿ2ï`€™ÿÿ8ïx€Ìÿï`€Ì3ÿ ï`€Ìfÿï`€Ì™ÿï`€ÌÌÿ(ï`€Ìÿÿ0ïx€ÿÿïx€ÿ3ÿïx€ÿfÿïx€ÿ™ÿïx€ÿÌÿ ïx€ÿÿÿ(ïx€ÿ€ÿÿPïx€ÿ€™3ÿãïH€™33ÿx`€™f3ÿx`€™™3ÿ(x`€™Ì3ÿ5�x€™ÿ3ÿ<ï�€Ì3ÿæï`€Ì33ÿ�x€Ìf3ÿ �x€Ì™3ÿ�x€ÌÌ3ÿ(�x€Ìÿ3ÿ2ï�€ÿ3ÿèïx€ÿ33ÿï�€ÿf3ÿ ï�€ÿ™3ÿï�€ÿÌ3ÿï�€ÿÿ3ÿ(ï�€ÿ€ÿÿ ïx€ÿ€™fÿÕïH€™3fÿÜx`€™ffÿ0x€™™fÿ(0x€™Ìfÿ<x�€™ÿfÿC切ÌfÿÜï`€Ì3fÿã�x€Ìffÿx�€Ì™fÿx�€ÌÌfÿ(x�€Ìÿfÿ5切ÿfÿàïx€ÿ3fÿæï�€ÿffÿ切ÿ™fÿ 切ÿÌfÿ切ÿÿfÿ(切ÿ€ÿÿÿ(ïx€ÿ€™™ÿÈïH€™3™ÿÈx`€™f™ÿÈ0x€™™™ÿ�€™Ì™ÿPP¨€™ÿ™ÿPïÀ€Ì™ÿÒï`€Ì3™ÿÕ�x€Ìf™ÿÜx�€Ì™™ÿP¨€ÌÌ™ÿ(P¨€Ìÿ™ÿ<ïÀ€ÿ™ÿØïx€ÿ3™ÿÜï�€ÿf™ÿã切ÿ™™ÿïÀ€ÿÌ™ÿïÀ€ÿÿ™ÿ(ïÀ€ÿ€ÿÿÿxïx€ÿ€™Ìÿ¾ï`€™3Ìÿ»�x€™fÌÿ´x�€™™Ìÿ P¨€™ÌÌÿxP¨€™ÿÌÿdïÀ€ÌÌÿÈï`€Ì3ÌÿÈ�x€ÌfÌÿÈx�€Ì™ÌÿÈP¨€ÌÌÌÿÀ€ÌÿÌÿPïØ€ÿÌÿÐïx€ÿ3ÌÿÒï�€ÿfÌÿÕ切ÿ™ÌÿÜïÀ€ÿÌÌÿïØ€ÿÿÌÿ(ïØ€ÿ€ÿÿÿÈïx€ÿ€™ÿÿ¸ïx€™3ÿÿ´ï�€™fÿÿ­ï¨€™™ÿÿ ïÀ€™ÌÿÿŒïÀ€™ÿÿÿxïÀ€ÌÿÿÀïx€Ì3ÿÿ¾ï�€Ìfÿÿ»ï¨€Ì™ÿÿ´ïÀ€ÌÌÿÿ ïØ€ÌÿÿÿxïØ€ÿÿÿÈïx€ÿ3ÿÿÈï�€ÿfÿÿÈ切ÿ™ÿÿÈïÀ€ÿÌÿÿÈïØ€ÿÿÿÿð€ÿ€ÿë{ÿ"ï²€Äêÿÿ†ïÔ€m}Œÿ‹v€ÿÿÿÿÿÿÿ€ÿÿÿÿÿÿÿ€ÿÿÿÿÿ€ÿÿÿÿÿ€ÿÿÿÿÿ€ÿfýÿ`ÿÿÿÿzÿÿÿÿ€™fÿªÿÌÿÿÿÿÿÿ€ÿÿÿ*ÿÿÿ]ÿÿÿÿÿªÿÿÔÿÿÿÿÿÿPW|÷ÿÿh