аЯрЁБс>ўџ ўџџџd}f џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџRoot Entryџџџџџџџџ&pЊ|YЊrЯƒRASH№’t†A]У@”Contentsџџџџџџџџџџџџj7Page 1џџџџџџџџџџџџ/WSymbol 3џџџџ*пb§џџџџџџџџџџџ§џџџџџџџ§џџџџџџџџџџџ &-aU43# !" $%'()7,5./012+I96ž8A=;<*T?@NBCDEFGH:JKLMYOPQRSўџџџўџџџVWX[Zўџџџ\]^_ўџџџtwyџџџџџџџџџџџџџџџџ`ijklmnopqrsўџџџўџџџuп~|§џџџ|щ„€Root Entryџџџџџџџџ&pЊ|YЊrЯƒRASHАй qqУ@”ContentsџџџџџџџџџџџџЁ7Page 1џџџџџџџџџџџџ/WSymbol 3џџџџ*пџџџџџџџџb§џџџџџџџ§џџџџџџџ§џџџw &- U43# !" $%'()7,5./012+I96ž8A=;<*T?@NBCDEFGH:JKLMYOPQRSўџџџўџџџVWX[Zўџџџ\]^_ўџџџtџџџџyu§џџџўџџџ§џџџ`ijklmnopqrsўџџџўџџџџџџџп~|џџџџ|щ„€ўџџџ     Eўџџџ !"г$A&'()*+,-./0123456789:;<=>?@ўџџџBCDIўџџџGHgJKLMNOPQRSTUVWXYZ[\]^_ўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџhiўџџџklmnopqrstuvwxyz{|}~€ўџџџџџџџ  џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџ !"г$A&'()*+,-./0123456789:;<=>?@ўџџџBCDIџџџџџџџџџџџџџџџџJKLMNOPQRSTUVWXYZ[\]^_ўџџџabcdef…џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ‚ƒ„ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџIџ‚ #initclip #include "commands.as" function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { _root.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function (newlabel) { // Set the label this.userinput_mc.input_txt.text = newlabel; return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // ////////////////////////////////////////џџџџџџџџџџџџџџџџџџџџ†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™ўџџџ›œžŸўџџџџџџџЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџSymbol 48'.џџџџь*Symbol 49џџџџџџџџџџџџyфMedia 1џџџџъ‹RSymbol 50)-џџџџ{T+€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ2_џ„ #initclip #include "commands.as" function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { _root.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function (newlabel) { // Set the label this.userinput_mc.golabel_txt.text = newlabel; return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter keџџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicShape€€ˆњџџьџџџ ѓEhџЬџw€€фўЦ;Œџ(4St4;;v0p4SŠџ4;Цvцўи4­Šџфў4ЦЦцўŒџ0ќ4­фўt€€џџџ?џџe€€€ ѓEhџЬџw€€вМўЦЦцўŒџ0ќ4­фўt4Ц;Œџ(4St4;;v0p4SŠџ4;Цvцўи4­Šџфўџџџ?џџР'€€ Layer 1џџџџO€џџ€€€3y) for the input field // //////////////////////////////////////џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ/////////////////////////////////// // Register the class Object.registerClass("FGenericWFSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€s only gets calle///////////////////////////////////// // Register the class Object.registerClass("FGenericWFSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€€€Symbol 42!%џџџџЃ”PSymbol 43џџџџџџџџџџџџŒ4Symbol 46(џџџџЮ)Symbol 47џџџџџџџџџџџџtџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџЛfџ1 #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.userbutton_mc = this.uџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџкџ8 #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.button_mc = this.useriџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџЁџо #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.button_mc = this.userinput_mc.button_mc; this.attribute_array = new array(); } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function (newlabel) { // Set the label this.userinput_mc.buttonlabel_txt.text = newlabel; // Adjust the size of the button based on the label size // Set the button to the proper size based on the text width var size = Math.max(50, this.userinput_mc.buttonlabel_txt.textWidth); this.button_mc._width = size; // Move the location of the text box to center it var newLoc = -(this.button_mc.buttonlabel_txt.textWidth / 2); this.button_mc.buttonlabel_txt._x = newLoc; return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.button_mc.gotoAndPlay("selected"); } else { this.button_mc.gotoAndPlay("normal"); } } else { thserinput_mc.button_mc; this.userbuttonlabel_txt = this.userinput_mc.label_txt; this.userinput_txt = this.userinput_mc.input_txt; this.attribute_array = new array(); } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // ///////‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂЃЄЅІЇЈЉўџџџЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхєчшщъыьэюя№ёђѓѕўџџџіїјљњћќ§ўџ  !"#$%&'()ўџџџ+,-./01ўџџџ3456789:;<=>?@ABUDEFGHIJKLMNOPQRSTўџџџlWXYZ[\]^_`abcdefghijkўџџџmnoўџџџqrstuvwxyz{|}~€//////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(but€€ actionsџџџџџOOџ€€ttings\RLinyard\Application Data\MaџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ џ! #initclip #include "commands.as" function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.button_mc = this.userinput_mc.button_mc; } GenericSearchInputClass.prototype = new MovieClip()џџCPicPageџџ CPicLayerџџ CPicFrame€€ ѓEhџЬџs€€X0§Rё4­фўt4Ц;Œџ0€4St4;;v0Ў4SŠџ4;Цvцў0€§4­Šџфў4ЦЦцўŒџ џџџ?џџnormalгS€џџ CPicShape€€ Х­ќџЬџs€€X0§Rё4­фўt4Ц;Œџ0€4St4;;v0Ў4SŠџ4;Цvцў0€§4­Šџфў4ЦЦцўŒџ€€ џџџ?џџoverЁE€€€€ьџџџ ЖњЏџЬџw€€rЬ§ЦЦцўŒџ0Rё4­фўt4Ц;Œџ0€4St4;;v0Ў4SŠџ4;Цvцў0€§4­Šџфў€€ џџџ?џџdown• €€€€ьџџџ їюˆџЬџs€€XX§Rё4­фўt4Ц;Œџ0€4St4;;v0Ў4SŠџ4;Цvцў0€§4­Šџфў4ЦЦцўŒџ€€ џџџ?џџselectedЮE€€€ їюˆџЬџїrЄ§ЦЦцўŒџ0Rё4­фўt4Ц;Œџ0€4St4;;v0Ў4SŠџ4;Цvцў0€§4­Šџфў џџџ?џџdisabledZ€€ BackgroundџџџџO€џџ€€џџCPicText€€ ќџџWџџџаRƒTahomaџ"(PLABEL label_txt€€1џџџ?џџО|€€ LabelџџџџOџOџ€€€€ џџџ?џџe;b// Have the button resize automatically if the caption is set label_txt.autoSize = true; stop(); €€€ џџџ?џџ'|stop(); €€€ џџџ?џџ*]stop(); €€€ џџџ?џџіCstop(); €€€ џџџ?џџWstop(); €€ ActionsџџџџџOOџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ €€€ їюˆџЬџw€€rЄ§ЦЦцўŒџ0Rё4­фўt4Ц;Œџ0€4St4;;v0Ў4SŠџ4;Цvцў0€§4­Šџфўџџџ?џџ !; GenericSearchInputClass.prototype.onLoad = function () { _root.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function (newlabel) { // Set the label this.userinput_mc.buttonlabel_txt.text = newlabel; // Adjust the size of the button based on the label size // Set the button to the proper size based on the text width var size = Math.max(50, this.userinput_mc.buttonlabel_txt.textWidth); this.userinput_mc._width = size; // Move the location of the text box to center it var newLoc = -(this.userinput_mc.buttonlabel_txt.textWidth / 2); this.userinput_mc.buttonlabel_txt._x = newLoc; return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.button_mc.gotoAndPlay("selected"); } else { this.button_mc.gotoAndPlay("normal"); } } else { this.button_mc.gotoAndPlay("disabled"); } return; } GenericS€€€ ќ˜ЙџЬџївМўЦЦцўŒџ0ќ4­фўt4Ц;Œџ(4St4;;v0p4SŠџ4;Цvцўи4­Šџфўџџџ?џџД€€€ ўжуџЬџѓИHўќ4­фўt4Ц;Œџ(4St4;;v0p4SŠџ4;Цvцўи4­Šџфў4ЦЦцўŒџџџџ?џџЩearchInputClass.prototype.onRollOver = function () { if (this.enabled == true) { this.button_mc.gotoAndPlay("over"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.button_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter fhgeneric_comp.onRelease(); break; } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// input_mc.button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } input_mc.button_mc.onPress = function() { fhgeneric_comp.onPress(); } input_mc.button_mc.onRelease =//////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.button_mc.gotoAndPlay("selected"); } else { this.button_mc.gotoAndPlay("normal"); } } else { this.button_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputCovie // /////////////////////////////////////////////////////////////////////////// button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } button_mc.onPress = function() { fhgeneric_comp.onPress(); } button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } // Register the class Object.registerClass("FGenericFHButton", GenericButtonClass); #endinitclip lass.prototype.onRollOver = function () { if (this.enabled == true) { this.button_mc.gotoAndPlay("over"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.button_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._paџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ@.џp #initclip #include "commands.as" function GenericButtonClass() { this.enabled = true; this.selected = false; this.userbutton_mc = this._parent.button_mc; } GenericButtonClass.prototype = new MovieClip(); // Lets the container know we are loaded. GenericButtonClass.prototype.onLoad = function () { _root.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.SetItemLabel = function (newlabel) { // Set the label this.userbutton_mc.label_txt.text = newlabel; // Adjust the size of the button based on the label size // Set the button to the proper size based on the text width var size = Math.max(50, this.userbutton_mc.label_txt.textWidth); this.userbutton_mc._width = size; // Move the location of the text box to center it var newLoc = -(this.userbutton_mc.label_txt.textWidth / 2); this.userbutton_mc.label_txt._x = newLoc; return; } GenericButtonClass.prototype.EnableItem = function () { this.enabled = true; this.userbutton_mc.useHandCursor = true; this.GotoDefaultState(); } GenericButtonClass.prototype.DisableItem = function () { this.enabled = false; this.userbutton_mc.useHandCursor = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplaySelected = function () { this.selected = true; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplayNormal = function () { this.selected = false; this.GotoDefaultState(); } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericButtonClass.prototype.onRollOver = function () { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("over"); } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, 0); } } GenericButtonClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericButtonClass.prototype.onRollOut = function() { this.GotoDefaultState(); } /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the mtonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label wis.button_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { if (this.enabled == true) { this.button_mc.gotoAndPlay("over"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.button_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner rent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter fhgeneric_comp.onRelease(); break; } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// input_mc.button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } input_mc.button_mc.onPress = function() { fhgeneric_comp.onPress(); } input_mc.button_mc.onRelease = function() function() { fhgeneric_comp.onRelease(); } input_mc.button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } input_mc.button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ}yџ #initclip #include "commands.as" function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.button_mc = this.userinput_mc.button_mc; } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { _root.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // ///////////////////////////////if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////€€ ActionsџџџџOџOџ€€€fџџџxяЈ €џ €џџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ‹Bџ #initclip #include "commands.as" function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.button_mc = this.userinput_mc.button_mc; } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { _root.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function (newlabel) { // Set the label this.userinput_mc.buttonlabel_txt.text = newlabel; // Adjust the size of the button based on the label size // Set the button to the proper size based on the text width var size = Math.max(50, this.userinput_mc.buttonlabel_txt.textWidth); this.button_mc._width = size; // Move the location of the text box to center it var newLoc = -(this.button_mc.buttonlabel_txt.textWidth / 2); this.button_mc.buttonlabel_txt._x = newLoc; return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } ///////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter fhgeneric_comp.onRelease(); break; } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// input_mc.button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } input_mc.button_mc.onPress = function() џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ™6џ“ #initclip #include "commands.as" function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value_str = value; } function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.button_mc = this.userinput_mc.button_mc; this.attribute_array = new array(); } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function (newlabel) { // Set the label this.userinput_mc.buttonlabel_txt.text = newlabel; // Adjust the size of the button based on the label size // Set the button to the proper size based on the text width var size = Math.max(50, this.userinput_mc.buttonlabel_txt.textWidth); this.button_mc._width = size; // Move the location of the text box to center it var newLoc = -(this.button_mc.buttonlabel_txt.textWidth / 2); this.button_mc.buttonlabel_txt._x = newLoc; return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enab//////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function (newlabel) { // Set the label this.userinput_mc.buttonlabel_txt.text = newlabel; // Adjust the size of the button based on the label size // Set t€€€CPicLayerџџ CPicFrameџџ CPicSprhe button to the proper size based on the text width var size = Math.max(50, this.userinput_mc.buttonlabel_txt.textWidth); this.button_mc._width = size; // Move the location of the text box to center it var newLoc = -(this.button_mc.buttonlabel_txt.textWidth / 2); this.button_mc.buttonlabel_txt._x = newLoc; return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.button_mc.gotoAndPlay("selected"); } else { this.button_mc.gotoAndPlay("normal"); } } else { this.button_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { if (this.enabled == true) { this.button_mc.gotoAndPlay("over"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.button_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter fhgeneric_comp.onRelease(); break; } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// input_mc.button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } input_mc.button_mc.onPress = function() { fhgeneric_comp.onPress(); } input_mc.button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } input_mc.button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } input_mc.button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€ch (Key.getCode()) { case 13: // enter fhgeneric_compџџCPicPageџџ CPicLayerџџ CPicFrameџџCPicText€€ §љџџ`џџџаRATahomaџ"(Psearch input_txt€€џџџ?џџ­L€€ Input fieldџџџџO€џџ€€џџ CPicSpriteО ^C9ŽОdџ ^ button_mc€€џџџ?џџO1€€ Buttonџџџџ™3Ьџ€€€€џџџ?џџАXidth this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter fhgeneric_comp.onRelease(); break; } } Key.addListener(GenericSearchInputClassled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib = 0; iAttrib < attribute_array.length; iAttrib++) { if (attribute_array[iAttrib].attribute_str == attribute) { value = attribute_array[iAttrib].value_str; break; } } return value; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.button_mc.gotoAndPlay("selected"); } else { this.button_mc.gotoAndPlay("normal"); } } else { this.button_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { if (this.enabled == true) { this.button_mc.gotoAndPlay("over"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.button_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter fhgeneric_comp.onRelease(); break; } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// input_mc.button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } input_mc.button_mc.onPress = function() { fhgeneric_comp.onPress(); } input_mc.button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } input_mc.button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } input_mc.button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€fџџяx €™џџˆяx €Ьџџ€яx €џџџxяx €3џџЈяx €33џџ я €3fџџ–я €3™џџŒя €3Ьџџ‚я{ fhgeneric_comp.onPress(); } input_mc.button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } input_mc.button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } input_mc.button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€Pageџџ CPicLayerџџ CPicFrameџџ CPicSprnput_mc.button_mc; this.attribute_array = new array(); } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function (newlabel) { // Set the label this.userinput_mc.buttonlabel_txt.text = newlabel; // Adjust the size of the button based on the label size // Set the button to the proper size based on the text width var size = Math.max(50, this.userinput_mc.buttonlabel_txt.textWidth); this.button_mc._width = size; // Move the location of the text box to center it var newLoc = -(this.button_mc.buttonlabel_txt.textWidth / 2); this.button_mc.buttonlabel_txt._x = newLoc; return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.button_mc.gotoAndPlay("selected"); } else { this.button_mc.gotoAndPlay("normal"); } } else { th); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// input_mc.button_mc.onRollOver = function() { trace("rollover"); fhgeneric_comp.onRollOver(); } input_mc.button_mc.onPress = function() { fhgeneric_comp.onPress(); } input_mc.button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } input_mc.button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } input_mc.button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€lover"); fhgeneric_comp.onRollOver(); } input_mc.button_mc.onPress = function() { fhgeneric_comp.onPress(); } input_mc.button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } input_mc.button_mc.onDragOut = functionis.button_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { if (this.enabled == true) { if (this.selected == true) { this.button_mc.gotoAndPlay("selected"); } else { this.button_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.button_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter fhgeneric_comp.onRelease(); break; } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// input_mc.button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } input_mc.button_mc.onPress = function() { fhgeneric_comp.onPress(); } input_mc.button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } input_mc.button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } input_mc.button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€ut_mc.button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } input_mc.button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€e.onPress = function() { if (this.enabled == true) { this.џџCPicPageџџ CPicLayerџџ CPicFrameџџCPicTexSymbol 36 џџџџЖдSymbol 37џџџџџџџџџџџџxSymbol 38џџџџС&Symbol 39џџџџџџџџџџџџО*&Symbol 48'.џџџџь*Symbol 49џџџџџџџџџџџџyфMedia 1џџџџъ‹RSymbol 50)-џџџџ{T+Symbol 1*џџџџџџџџm Symbol 5џџџџџџџџC{Symbol 4џџџџџџџџџџџџ$]Symbol 6 џџџџVoўџџџўџџџ     ўџџџўџџџўџџџ ўџџџ"#$%&ўџџџ()*+,-.ўџџџ0123456789:;<=>?@ABCDEFGHIJKLMNOPўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџƒ‚ŒŽ…†‡‹™ŠАЙš‘’“”•–—˜ўџџџ ›œЁŸ‚ЉЂЅЄІЕЇЈЊЏЋЌ­ПyЎБВГДўџџџК`М  cНХжРТУФЦŒЧШЩЪЫЬЭЮЯабвгдеўџџџзийклмнопрстуфхцчшўџџџgыэюя№ёђѓєѕіїјљњћќ§ўџўџџџSymbol 59џџџџџџџџџџџџ%6Symbol 6046џџџџ#І8Symbol 61џџџџџџџџџџџџЗЖ8џџџџџџџџџџџџƒЛx†џџџџ‡ˆ‰Š‹ŽЎЋ‘’“”ЌЉ—˜™š›œžŸ ЁЂЃЄЅІЇЈўџџџЊНМ­ЏЙАБВГДЕЖЗИўџџџКЛраОПРСТУФХЦЧШЩЪЫЬЭЮЯўџџџбвдšежзийклмнўџџџџџџџeстуфхцчшіџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџїјљњћќ§ўџSymbol 32џџџџџџџџhSymbol 33џџџџ+Symbol 34џџџџџџџџџџџџ”ШSymbol 35џџџџџџџџ‚џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџђMџ& #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.userbutton_mc = this._parent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userinput_txt = this.userinput_mc.input_txt; this.attribute_array = new array(); this.setFocusIntervalID = -1; } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(buttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter fhgeneric_comp.onRelease(); break; } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } button_mc.onPress = function() { fhgeneric_comp.onPress(); } button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } button_mc.onDragOver = function() { fhgeneric_comp.onDragOver(); } button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } input_mc.input_txt.onSetFocus = function() { fhgeneric_comp.onSetFocus(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€FHSearchInput\..\..\Application Data\Macromedia\Flash MX\Configuration\Components\FlashHelp Components.flaGeneric FH Search InputЊ-Є>Uy_>3ќІ>LabelLABELlabel“ТJџїsEžЋ (JячSymbol 40"џџџџь*&Symbol 41џџџџџџџџџџџџ!pSymbol 44$#џџџџW'Symbol 45џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџўџџџ     ўџџџўџџџўџџџ ўџџџ"#$%&ўџџџ()*+,-.ўџџџ0123456789:;<=>?@ABCDEFGHIJKLMNOPўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџSymbol 54џџџџџџџџџџџџ'эSymbol 51џџџџџџџџџџџџ’Symbol 52+1џџџџћ^Symbol 53џџџџ,џџџџ‡^џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџCџ( #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.userbutton_mc = this._Symbol 7џџџџ џџџџ2qSymbol 8џџџџџџџџџџџџЊSymbol 9џџџџџџџџp]Symbol 18џџџџџџџџџџџџ5ƒ‚ŒŽ…†‡‹™ŠАЙš‘’“”•–—˜ўџџџ ›œЁŸ‚ЉЂЅЄІЕЇЈЊЏЋЌ­ПyЎБВГДўџџџКџџџџМ  vНХжРТУФЦŒЧШЩЪЫЬЭЮЯабвгдеўџџџзийклмнопрстуфхцчшўџџџgыэюя№ёђѓєѕіїјљњћќ§ўџўџџџџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџБџg* #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.userbutton_mc = this._parent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userTextField_txt = this._parent.textfield_txt; this.userTextField_txt.autoSize = true; this.userinput_txt = this.userinput_mc.input_txt; this.attribute_array = new array(); this.bHasFocus = false; this.setFocusIntervalID = -1; // variables to store the inital position of each item this.inputYPos = this.userinput_mc._y; this.inputXPos = this.userinput_mc._x; this.inputWidth = this.userinput_mc._width; this.buttonYPos =Symbol 15џџџџџџџџЫSymbol 16 џџџџџџџџ%Symbol 17 џџџџSymbol 19џџџџџџџџ‰parent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userinput_txt = this.userinput_mc.input_txt; this.attribute_array = new array(); this.bHasFocus = false; this.setFocusIntervalID = -1; } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџJDџџ) #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.userbutton_mc = this._parent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userTextField_txt = this._parent.textfield_txt; this.userTextField_txt.autoSize = true; this.userinput_txt = this.userinput_mc.input_txt; this.attribute_array = new array(); this.bHasFocus = false; this.setFocusIntervalID = -1; // variables to store the inital position of each item this.inputYPos = this.userinput_mc._y; this.inputXPos = this.userinput_mc._x; this.inputWidth = this.userinput_mc._width; this.buttonYPos = this.userbutton_mc._y; this.buttonXPos = this.userbutton_mc._x; this.buttonlabelYPos = this.userbuttonlabel_txt._y; this.buttonlabelXPos = this.userbuttonlabel_txt._x; this.textFieldYPos = this.userTextField_txt._y; this.textFieldXPos = this.userTextField_txt._x; // should the button and textfield be displayed? this.bDisplayButton = true; this.bDisplayTextField = false; // Should we send the contents of the input field everytime a key is pressed this.bKeystroke = false; this.PositionItems(); } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Used to position the items based on what is to be displayed // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.PositionItems = function () { if (this.use this.userbutton_mc._y; this.buttonXPos = this.userbutton_mc._x; this.buttonlabelYPos = this.userbuttonlabel_txt._y; this.buttonlabelXPos = this.userbuttonlabel_txt._x; this.textFieldYPos = this.userTextField_txt._y; this.textFieldXPos = this.userTextField_txt._x; // should the button and textfield be displayed? this.bDisplayButton = true; this.bDisplayTextField = false; // Should we send the contents of the input field everytime a key is pressed this.bKeystroke = false; this.PositionItemscalls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(buttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefџџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSymbol џџџџ€€џџџ?џџ-€€ џdџ€€ џџџ?џџШM€€ џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ^0џ1 #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.userbutton_mc = this.userinput_mc.button_mc; this.userbuttonlabel_txt = this.userinput_mc.label_txt; this.userinput_txt = this.userinput_mc.input_txt; this.attribute_array = new array(); } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // ///////aultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbuttorTextField_txt != undefined && !this.bDisplayTextField) { _parent.debug_trace("Hide Text field"); this.userinput_mc._y = this.userTextField_txt._y; var deltaY = this.userinput_mc._y - this.inputYPos; this.userbutton_mc._y = this.buttonYPos + deltaY; this.userbuttonlabel_txt._y = this.buttonlabelYPos + deltaY; this.userTextField_txt._visible = false; } else { _parent.debug_trace("Show Text Field"); this.userinput_mc._y = this.inputYPos; this.userbutton_mc._y = this.buttonYPos; this.usn_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prot(); } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Used to position the items based on what is to be displayed // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.PositionItems = function () { if (this.useerbuttonlabel_txt._y = this.buttonlabelYPos; this.userTextField_txt._visible = true; } if (!this.bDisplayButton) { this.userbutton_mc._visible = false; this.userbuttonlabel_txt._visible = false; } else { this.userbutton_mc._visible = true; this.userbuttonlabel_txt._visible = true; } } /////////////////////////////////////////////////////////////////////////// // // These commands are used to disable or enable certain aspects of the search input // ///////////////////////////////////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(buttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter fhgeneric_comp.onRelease(); break; } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// input_mc.button_mc.onRollOver = function() { trace("rollover"); fhgeneric_comp.onRollOver(); } input_mc.button_mc.onPress = function() { fhgeneric_comp.onPress(); } input_mc.button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } input_mc.button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } input_mc.button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€operties::PaletteOption"PublishPNGProperties::DitherOptionPublishJpegProperties::Quality80$PublishRNWKProperties::realVideoRate100000$PublishRNWKProperties::speedDualISDN0-PublishFormatProperties::projectorWinFileNameteџџџџ€€џџџ?џџCd€€ Text Backgroundџџџџ€€€џ€€€(( ((џџџџ€€џџџ?џџЛf€€(( ((мVџ€€////////////////////////////////////// GenericSearchInputClass.prototype.SetTextFieldVisible = function (bVisible) { this.bDisplayTextField = bVisible; this.PositionItems(); } GenericSearchInputClass.prototype.SetButtonVisible = function (bVisible) { this.bDisplayButton = bVisible; this.PositionItems(); } /////////////////////////////////////////////////////////////////////////// // // Used to change the width of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetWidth = function (nWidth) { if (this.bDisplayButton && this.userbutton_mc != undefined) { this.userbutton_mc._x = (this.userinput_mc._x + nWidth) - this.userbutton_mc._width; this.userbuttonlabel_txt._x = this.userbutton_mc._x + (this.buttonlabelXPos - this.buttonXPos); var nSpace = this.buttonXPos - (this.inputXPos + this.inputWidth); this.userinput_mc._width = this.userbutton_mc._x - (this.userinput_mc._x+nSpace); } else { this.userinput_mc._width = nWidth; } } /////////////////////////////////////////////////////////////////////////// // // Used to set the focus of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetFocus = function () { Selection.setFocus(this.userinput_txt); Selection.setSelection(0,0); } /////////////////////////////////////////////////////////////////////////// // // Used to check to see if we hav focus // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.HasFocus = function () { return this.bHasFocus; } /////////////////////////////////////////////////////////////////////////// // // Used to change the decription in the textfield // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetDescriptionText = function(newText) { this.userTextField_txt.text = newText; } ////////////////////////////////////////////////// { fhgeneric_comp.onRelease(); } input_mc.button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } input_mc.button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€e.onPress = function() { if (this.enabled == true) { this.џџCPicPageџџ CPicLayerџџ CPicFrame€€ џѓЏю ўфџ?Ь€ц€Їч л€У€л0Їќœм €У€$чП$ч€X0єЯ3X№$€<%0Y›#№џ€<лdЯл€Јџџџ?џџќk€€ BGџџџџO€џџ€€€€ џџџџз‡ЬџYаш€Ўщ“оШ€о0рќѓо€Ч€!Ѕшй!€ш€Q0Ь%Џ/€Qsі!€8"0 !іџ8оЬЏоЏ04ўџџџ?џџщ€€ FGџџџџ џџџ?џџІ&€€(( ((џџџџ€€џџџ?џџp€€ Text ForegroundџџџџOџџџ€€€€џџџ?џџ]€€€///////////////////////// // // Make the search send a command on every keystroke // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SendReplyOnEveryKey = function(bKeystroke) { this.bKeystroke = bKeystroke; } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.GetSearchInputText = function() { return this.userinput_txt.text; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(bџџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicShape€€$)ѕ(№§џџŽўџџ џџшё§џџ”за?р ИџџEEљџџџ=§џƒg €џџ˜џџџ%іјџ…g €џџ˜џџџ›ƒќџџ В№Зl ‰џџEEљџџџ@љџџсќџџkЋџџеœ Иџџccџџџџ §џџIњџџ;уŠџџœ/ Ÿџџccџџџџџџ‡ ™ ЈџџПџџџџџ# ˜ ЈџџПџџџ4џџџќџџФњƒЬџџsS ‰џџ Ѕџџџџћџџфњп2u ‰џџИџџџЂќџџџџњџџџІu ‰џџŸџг !,z№Ў№`–ўајї0Ўќкќѓ№џИўџpќ ьг№џИўgа ѓўџRќ№џФёўgVћtћњџ0Д§V№Tг–§\ № Tާг `§n&ѓ~ќьџюўўџц № |ўџ№Ъќ№џѓ ‚Єў@љ№ ўџа ўћ№ PњАќёѕѕ”ќѓ Кў^^ѓ О2њ\ТёЪјѓˆѕџЎА€€џџџ?џџЌc€€€€$)ѕ(№§џџuttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra labelŽўџџ'џџHџџџјš2џџ4gџџc ŠџџІџџџк§џџ$ќџџАпƒƒџџ<Г vvџџџџџџџџџ џџџ>Q5џџ cџџY€ xџџ”џџџщўџџЗц'џџТvџџPŸ xџџ”џџџЬЌќџџьјЧ;ZŽ ƒƒџџџџџџџџџЛPќџџћм1<А @@еџџ  џџџџџџ% – ŸџџЛџџџџџ# – ŸџџЛџџџКшќџџƒпа|е ”џџ@@еџџџЂќџџѓџЫ‚ “џџ@@еџџџdџџџВd?џџ_Wџџ–R ŠџџІџџџњ§џџeџџџ_IО џџE2jџџŠџџџnќџџHњџџ"йfxџџты “џџƒƒџџџџ§џџZўџџЃ{зџџе dџџ{џџџ§њџџњЫ4  “џџƒƒџџгŠ!\ћњј§0рўвџ№<>№ ў§§ѓФўpўџШў№№ќрќ№Xѓ P ўюўюџ№ \№ Юја џєѓ юўюџТќr№ >ъѓФќfѕќџxѓ >Шќгžј§їј0Шўаџє№t˜гŒћhћї0њ§:џ№ŽBгЮ§pіѕ№,§ќџ№Ра ѓ АўRђќЊќ ў№`юџѓ ˜lPЎќѓ Ићјџ ѓ˜zШџ0ўџљѓЎћHЮ§p№ pz№ @љиџѓ<˜ќИћdћ€€џџџ?џџРo€€€€$)ѕ(№§џџŽўџџ%џџ-џџџГ# џџSЕџџЉЫ ˆџџџџџ›iўџџA…•к\§ HHвџџввџџџџuўџџрoџџђ†џџЕэ  џџЙџџџfўџџЇс$џџЂ{џџБо  џџЙџџџ(еџџџxмџa> ’џџHHвџџџLBўџџЅšЬe+ џџHHвџџџџџF” šџџЗџџџџџlF” šџџЗџџџ Œ§џџгФВЃЯЃ vџџџџџёb§ џџџ?џџZzstop();€€€џџџ?џџ}vstop();€€ Actionsџџџџ™3Ьџ€€€€ џџџ?џџnormal E€€€ џџџ?џџfocus8џџ“Э˜Ш˜ vџџџџџџџџŸ1џџѕЋџџЃЦ ˆџџџџџOќџџЎћџџЈТМYџџ O wџџ џџџ‹r§џџС• ЯяР ŠџџввџџџџKўџџ3љџџGј›СџџФ™ uџџ–џџџуš§џџ&ЩYž…Ъ ŠџџHHвџѓ "Ъ>Фјёа љ№ Д§ђџ№ vѓ ІџvѕZѓ ІџьќІ"гћИќў00*ѓЌ§Њт№ Ќˆў№T§Цќ№ўџагєџв№Рў ћ№Њ§кџ№ˆvѓжњо§ЂЌ§ѓV&>~ѓЪњА*"ѓ2§`№Ђќzћг^† №Ъ’§ѓ$§Pѓ јўFš§Аќ§№:ђџѓ ˆЎњКџљўѓ М§ЊќL№ јўFѓЪ№ј*ћ0М§,№ Šћpќѓ Ъ’§Ќў€€џџџ?џџрE€€€€$)T)№§џџŒўџџ" џџXЮ§џџџЎйКез ›џџЌџџџІўџџ.v џџБџџQA Мџџ оџџџЧсўџџПˆjи  џџžџџџфѓўџџ?|гп'V Žџџ›џџџџџg’ —џџДџџџїЂўџџQ’вит €џџŽџџџ*ђќџџ8я([Єv €џџŽџџџфџџџ%)џџїџџЯс ЈџџХџџџЬўџџ1~џџ›Ѕџџ‰ф ЈџџХџџџDќџџНќџџwЈ??џџ/˜ lџџ  џџџџ—ћџџŠЮ@—/ „џџЇџџџoџџџ­јџџ:џ&ьџџš… iџџMMиџџџхћџџVфПsЃb „џџ›џѓ А!2Œў№ @№ 4ўаќгаќ6лаќ0 ѓŒўVўфќјѕгК§<§0&гЖќ>ї0Ц§г Dvњ0ъўZ№ оš№ Dўќљбўі №˜ћѓМ§ђџ2P ѓКќъ§Fгтў~љё№ў§№ѓVџ<ЊФќѓVџ<€ўЌќ ѓ .@ќT0Мќ№xќЂџѓ ЬZњМ€ўѓ§Ьц§Šћѓ .@Žјѓ Рќюџ„€€џџџ?џџ%€€€€$)T)№§џџŒўџџ! џџ,5aџџы рк ГџџРџџџФтџџџх'пќ\ ˆџџ™џџџ^џџџЉZџџdнџџ ^ Щџџшџџџляџџџz-џ‡P tџџˆџџџЦщџџџЈFў‚O tџџˆџџџГџџџЬELі`VvџџˆџџџЋœ€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicShape€€ЌўџџLњџџџџџџs€H!x`с0№ћ0 0€€џџџ?џџЬH€€ Layer 1џџџџO€џџ€€€€€џџџ?џџ%;€€ LabelsџџџџOџOџ€€ џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicShape€€џs€@АРр0Pћ0@0А€€џџџ?џџ€@otype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); this.bHasFocus = true; } GenericSearchInputClass.prototype.onKillFocus = function() { this.bHasFocus = false; } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter if (fhgeneric_comp.bHasFocus) { fhgeneric_comp.onRelease(); } break; } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } button_mc.onPress = function() { fhgeneric_comp.onPress(); } button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } button_mc.onDragOver = function() { fhgeneric_comp.onDragOver(); } button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } input_mc.input_txt.onSetFocus = function() { fhgeneric_comp.onSetFocus(); } input_mc.input_txt.onKillFocus = function() { fhgeneric_comp.onKillFocus(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€ PublishQTProperties::AlphaOption PublishQTProperties::LayerOptionPublishHtmlProperties::Units0$PublishPNGProperties::OptimizeColors1PublishQTProperties::Width160&PublishRNWKProperties::singleRateAudio0&PublishRNWKProperties::speedSingleISDN0%PublishFormatProperties::projectorMac0&PublishFormatProperties::flashFileNametestskin_search_input.swfVector::Compress Movie1PublishGifProperties::Smooth1#PublishRNWKProperties::flashBitRate1200%PublishRNWKProperties::mediaCopyright width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) {џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџз?џ 5 #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinputbg_mc = this._parent.inputbg_mc; this.userbutton_mc = thџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ`џЩ7 #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function MakeLindowsTextVisible(textfield_txt) { // This is a hack for Lindows, Lindows will not display a // textfield unless thџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ.bџg* #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.userbutton_mc = this._rTextField_txt != undefined && !this.bDisplayTextField) { _parent.debug_trace("Hide Text field"); this.userinput_mc._y = this.userTextField_txt._y; var deltaY = this.userinput_mc._y - this.inputYPos; this.userbutton_mc._y = this.buttonYPos + deltaY; this.userbuttonlabel_txt._y = this.buttonlabelYPos + deltaY; this.userTextField_txt._visible = false; } else { _parent.debug_trace("Show Text Field"); this.userinput_mc._y = this.inputYPos; this.userbutton_mc._y = this.buttonYPos; this.usis._parent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userTextField_txt = this._parent.textfield_txt; this.userTextField_txt.autoSize = true; this.userinput_txt = this._parent.input_txt; this.attribute_array = new array(); this.bHasFocus = false; this.setFocusIntervalID = -1; // variables to store the inital position of each item if (this.userinputbg_mc) { this.inputYPos = this.userinputbg_mc._y; this.inputXPos = this.userinputbg_mc._x; this.inputWidth = this.useriўџџџ‚ƒ„…†ўџџџˆ‰Š‹АœŽ‘’“ўџџџ•–—˜™š›БžŸўџџџЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏўџџџВГДЕьЗшЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклўџџџнопрсўџџџуфхцчўџџџщъыэюя№ёђѓєѕіїјљњўџџџќ§ўџparent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userTextField_txt = this._parent.textfield_txt; this.userTextField_txt.autoSize = true; this.userinput_txt = this.userinput_mc.input_txt; this.attribute_array = new array(); this.bHasFocus = false; this.setFocusIntervalID = -1; // variables to store the inital position of each item this.inputYPos = this.userinput_mc._y; this.inputXPos = this.userinput_mc._x; this.inputWidth = this.userinput_mc._width; this.buttonYPos = this.userbutton_mc._y; this.buttonXPos = this.userbutton_mc._x; this.buttonlabelYPos = this.userbuttonlabel_txt._y; this.buttonlabelXPos = this.userbuttonlabel_txt._x; this.textFieldYPos = this.userTextField_txt._y; this.textFieldXPos = this.userTextField_txt._x; // should the button and textfield be displayed? this.bDisplayButton = true; this.bDisplayTextField = false; // Should we send the contents of the input field everytime a key is pressed this.bKeystroke = false; this.PositionItemsџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџSWџ=% #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.userbutton_mc = this._џџџK:Fљ†Pvџџ™џџџ”ЁŽ$џџгƒ К ДџџгџџџЮЫ§џџєZLям Yџџ%%Ђџџџџџb‘ —џџВџџџІщџџџ $s§z† lџџxџџџЋџџџљJЦєвlџџxџџџWSјџџОџl 1~ Yџџ%%Ђџѓ"ZPџаќ№фќ.№ ЬѓPџаќ\ќђџџ №Š$гvџмќ№d№Аўгvџ §Ѕџџ№ИXб і№њўђ§№Њj№\И§ѓHџ”ћАџ4 г Њjа № фˆ№vџњг ЄџVЊѕ№ x>№ 6фќб ЉяVг цАљг цў”џ 0h№ Ь†ј№ r02ќё љ’ј€€џџџ?џџ‰0€€€€$)T)№§џџŒўџџ"џџ<џџџтџџџх'!џџ%\ ˆџџ™џџџs;qџџC Щџџ эџџџДўџџ.ЕџџЌСџџ^{ Ьџџ эџџџ%џџџяџџџzгџџЄP tџџˆџџџ:џџџщџџџЈКџџЉO tџџˆџџџѕџџџDџџVќџџSн ГџџгџџџRћџџ”x„џџЧџџ+џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџDџ% #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.userbutton_mc = this._parent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userTextField_txt = this._parent.textfield_txt; this.userinput_txt = this.userinput_mc.input_txt; this.attribute_array = new array(); this.bHasFocus = false; this.setFocusIntervalID = -1; // variables to store the inital position of each item this.inputYPos = this.userinput_mc._y; this.buttonYPos = this.userbutton_mc._y; this.buttonlabelYPos = this.userbuttonlabel_txt._y; this.textFieldYPos = this.userTextField_txt._y; // should the button and textfield be displayed? this.bDisplayButton = true; this.bDisplayTextField = false; // Should we send the contents of the input field everytime a key is pressed this.bKeystroke = false; this.PositionItems(); } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Used to position the items based on what is to be displayed // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.PositionItems = function () { if (this.userTextField_txt != undefined && !this.bDisplayTextField) { _parent.debug_trace("Hide Text field"); this.userinput_mc._y = this.userTextField_txt._y; var deltaY = this.userinput_mc._y - this.inputYPos; this.userbutton_mc._y += deltaY; this.userbuttonlabel_txt._(); } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Used to position the items based on what is to be displayed // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.PositionItems = function () { if (this.usey += deltaY; this.userTextField_txt._visible = false; } else { _parent.debug_trace("Show Text Field"); this.userinput_mc._y = this.inputYPos; this.userbutton_mc._y = this.buttonYPos; this.userbuttonlabel_txt._y = this.buttonlabelYPos; this.userTextField_txt._visible = true; } if (!this.bDisplayButton) { this.userbutton_mc._visible = false; this.userbuttonlabel_txt._visible = false; } else { this.userbutton_mc._visible = true; this.userbuttonlabel_txt._visible = true; } } /////////////////////////////////////////////////////////////////////////// // // These commands are used to disable or enable certain aspects of the search input // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetTextFieldVisible = function (bVisible) { this.bDisplayTextField = bVisible; this.PositionItems(); } GenericSearchInputClass.prototype.SetButtonVisible = function (bVisible) { this.bDisplayButton = bVisible; this.PositionItems(); } /////////////////////////////////////////////////////////////////////////// // // Used to change the width of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetWidth = function (nWidth) { var oldXPos = this.userbutton_mc._x; if (this.bDisplayButton && this.userbutton_mc != undefined) { this.userbutton_mc._x = (this.userinput_mc._x + nWidth) - this.userbutton_mc._width; var deltaX = this.userbutton_mc._x - oldXPos; this.userbuttonlabel_txt._x += deltaX; this.userinput_txt._width += deltaX; } else { this.userinput_txt._width = nWidth; } } /////////////////////////////////////////////////////////////////////////// // // Used to change the decription in the textfield // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetDescriptionText = function(newText) { this.userTextField_txt.text = newText; } /////////////////////////////////////////////////////////////////////////// // // Make the search send a command on every keystroke // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SendReplyOnEveryKey = function(bKeystroke) { this.bKeystroke = bKeystroke; } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(buttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); this.bHasFocus = true; } GenericSearchInputClass.prototype.onKillFocus = function() { this.bHasFocus = false; } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter if (fhgeneric_comp.bHasFocus) { fhgeneric_comp.onRelease(); } break; } } GenericSearchInputClass.onKeyUp = function () { if (fhgeneric_comp.bKeystroke) { fhgeneric_comp.onRelease(); } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } button_mc.onPress = function() { fhgeneric_comp.onPress(); } button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } button_mc.onDragOver = function() { fhgeneric_comp.onDragOver(); } button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } input_mc.input_txt.onSetFocus = function() { fhgeneric_comp.onSetFocus(); } input_mc.input_txt.onKillFocus = function() { fhgeneric_comp.onKillFocus(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€parent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userTextField_txt = this._parent.textfield_txt; this.userinput_txt = this.userinput_mc.input_txt; this.attribute_array = new array(); this.bHasFocus = false; this.setFocusIntervalID = -1; // variables to store the inital position of each item this.inputYPos = this.userinput_mc._y; this.buttonYPos = this.userbutton_mc._y; this.buttonlabelYPos = this.userbuttonlabel_txt._y; this.textFieldYPos = this.userTextField_txt._y; // should the button and textfield be displayed? this.bDisplayButton = true; this.bDisplayTextField = false; // Should we send the contents of the input field everytime a key is pressed this.bKeystroke = false; this.PositionItems(); } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Used to position the items based on what is to be displayed // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.PositionItems = function () { if (this.userTextField_txt != undefined && !this.bDisplayTextField) { _parent.debug_trace("Hide Text field"); this.userinput_mc._y = this.userTextField_txt._y; var deltaY = this.userinput_mc._y - this.inputYPos; this.userbutton_mc._y = this.buttonYPos + deltaY; this.userbuttonlabel_txt._y = this.buttonlabelYPos + deltaY; this.userTextField_txt._visible = false; } else { _parent.debug_trace("Show Text Field"); this.userinput_mc._y = this.inputYPos; this.userbutton_mc._y = this.buttonYPos; this.userbuttonlabel_txt._y = this.buttonlabelYPos; this.userTextField_txt._visible = true; } if (!this.bDisplayButton) { this.userbutton_mc._visible = false; this.userbuttonlabel_txt._visible = false; } else { this.userbutton_mc._visible = true; this.userbuttonlabel_txt._visible = true; } } /////////////////////////////////////////////////////////////////////////// // // These commands are used to disable or enable certain aspects of the search input // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetTextFieldVisible = function (bVisible) { this.bDisplayTextField = bVisible; this.PositionItems(); } GenericSearchInputClass.prototype.SetButtonVisible = function (bVisible) { this.bDisplayButton = bVisible; this.PositionItems(); } /////////////////////////////////////////////////////////////////////////// // // Used to change the width of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetWidth = function (nWidth) { var oldXPos = this.userbutton_mc._x; if (this.bDisplayButton && this.userbutton_mc != undefined) { this.userbutton_mc._x = (this.userinput_mc._x + nWidth) - this.userbutton_mc._width; var deltaX = this.userbutton_mc._x - oldXPos; this.userbuttonlabel_txt._x += deltaX; this.userinput_txt._width += deltaX; } else { this.userinput_txt._width = nWidth; } } /////////////////////////////////////////////////////////////////////////// // // Used to change the decription in the textfield // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetDescriptionText = function(newText) { this.userTextField_txt.text = newText; } /////////////////////////////////////////////////////////////////////////// // // Make the search send a command on every keystroke // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SendReplyOnEveryKey = function(bKeystroke) { this.bKeystroke = bKeystroke; } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(buttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); this.bHasFocus = true; } GenericSearchInputClass.prototype.onKillFocus = function() { this.bHasFocus = false; } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter if (fhgeneric_comp.bHasFocus) { fhgeneric_comp.onRelease(); } break; } } GenericSearchInputClass.onKeyUp = function () { if (fhgeneric_comp.bKeystroke) { fhgeneric_comp.onRelease(); } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } button_mc.onPress = function() { fhgeneric_comp.onPress(); } button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } button_mc.onDragOver = function() { fhgeneric_comp.onDragOver(); } button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } input_mc.input_txt.onSetFocus = function() { fhgeneric_comp.onSetFocus(); } input_mc.input_txt.onKillFocus = function() { fhgeneric_comp.onKillFocus(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€Symbol 21џџџџobSymbol 31џџџџџџџџџџџџтPSymbol 30џџџџмPSymbol 28џџџџџџџџџџџџИф8lpxэ}wXзк§Сc4НЧ4M3՘511іо;VT,((в{o" вAь{зи[zЙп=…о-iїћ§љ[kЯlŽIЂЙз8<Яћь™9‡sЮ^kЭšwП{Я9ƒўЇ# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #а8i}џƒоyЇЋCП~##mmчэtw ;ИњRhPЪЅDP " й*’А__X?OпПЛ?ƒI}Xѓ˜еk+rюШ!Й$Їф–“ыЦЉB–ŽРЭ<мКu›‘яМл}Хд) OzЙЏИМЦф—eєёЬ0К/K5.sK1.uM2:Л$—,]m\тТH4.^ВкшT‰иО9ј=nѕaЌSИ жфFpЎШЙ#‡ф’œ‚[rLЎЩ9ЙЇnV†~DGрfž{шЁЧœ sие5цJH`ЖбkY†qЩтdуќ‰Ц™ГVЇL7Nœgck9)к8|bŒqиFДq(c|ДqBiЃФіА Qx\‰ЁhѕИ§H|йџ!уё.Ш 9"WфŒм‘CrINЩ-9&зрœмSд5qГRє#:CЛ–­ZЯљДїауюqЦ@Ÿ5F—%)ЦЙі‰FлЉ+ЃЦ-7cь58ви}`„ё§ўЁЦЮ}‚ђћŽ-žК0НТ5(Ї:2aџѕД 'оКыв/Л|§лс“џњэи™џБŠџ§эшiMœСіŸ эkќщэџСgЙЁщЯŸ§,ўц§Žaпя#ЇўѕыўcпўВcџW7жm;{meњ‘JпЈЅѓ–­+9=СдmP˜р’œ’[rLЎЩ9ЙЇ j‚к FєsEG€4AєшаЁг6'Їchа:уR—tуœй‰ЦqтŒ Ѓад;НCЏї 4ОќЁўC#Ъьнж]_ЕцјЏy‡Оўїёѓ?ўПs_™џwц гџўмјЇ.^љП“З>G'/рєИ%ZЬ‹399ѓЙёџ§вєџЮe&GП8ёУЯыЖ_Јій]4мnЕщџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџьQџ=% #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.userbutton_mc = this._parent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userTextField_txt = this._parent.textfield_txt; this.userinput_txt = this.userinput_mc.input_txt; this.attribute_array = new array(); this.bHasFocus = false; this.setFocusIntervalID = -1; // variables to store the inital position of each item this.inputYPos = this.userinput_mc._y; this.buttonYPos = this.userbutton_mc._y; this.buttonlabelYPos = this.userbuttonlabel_txt._y; this.textFieldYPos = this.userTextField_txt._y; // should the button and textfield be displayed? this.bDisplayButton = true; this.bDisplayTextField = false; // Should we send the contents of the input field everytime a key is pressed this.bKeystroke = false; this.PositionItems(); } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Used to position the items based on what is to be displayed // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.PositionItems = function () { if (this.userTextField_txt != undefined && !this.bDisplayTextField) { _parent.debug_trace("Hide Text field"); this.userinput_mc._y = this.userTextField_txt._y; var deltaY = this.userinput_mc._y - this.inputYPos; this.userbutton_mc._y = this.buttonYPos + deltaY; this.userbuttonlabel_txt._y = this.buttonlabelYPos + deltaY; this.userTextField_txt._visible = false; } else { _parent.debug_trace("Show Text Field"); this.userinput_mc._y = this.inputYPos; this.userbutton_mc._y = this.buttonYPos; this.userbuttonlabel_txt._y = this.buttonlabelYPos; this.userTextField_txt._visible = true; } if (!this.bDisplayButton) { this.userbutton_mc._visible = false; this.userbuttonlabel_txt._visible = false; } else { this.userbutton_mc._visible = true; this.userbuttonlabel_txt._visible = true; } } /////////////////////////////////////////////////////////////////////////// // // These commands are used to disable or enable certain aspects of the search input // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetTextFieldVisible = function (bVisible) { this.bDisplayTextField = bVisible; this.PositionItems(); } GenericSearchInputClass.prototype.SetButtonVisible = function (bVisible) { this.bDisplayButton = bVisible; this.PositionItems(); } /////////////////////////////////////////////////////////////////////////// // // Used to change the width of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetWidth = function (nWidth) { var oldXPos = this.userbutton_mc._x; if (this.bDisplayButton && this.userbutton_mc != undefined) { this.userbutton_mc._x = (this.userinput_mc._x + nWidth) - this.userbutton_mc._width; var deltaX = this.userbutton_mc._x - oldXPos; this.userbuttonlabel_txt._x += deltaX; this.userinput_txt._width += deltaX; } else { this.userinput_txt._width = nWidth; } } /////////////////////////////////////////////////////////////////////////// // // Used to change the decription in the textfield // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetDescriptionText = function(newText) { this.userTextField_txt.text = newText; } /////////////////////////////////////////////////////////////////////////// // // Make the search send a command on every keystroke // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SendReplyOnEveryKey = function(bKeystroke) { this.bKeystroke = bKeystroke; } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(buttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); this.bHasFocus = true; } GenericSearchInputClass.prototype.onKillFocus = function() { this.bHasFocus = false; } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter if (fhgeneric_comp.bHasFocus) { fhgeneric_comp.onRelease(); } break; } } GenericSearchInputClass.onKeyUp = function () { if (fhgeneric_comp.bKeystroke) { fhgeneric_comp.onRelease(); } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } button_mc.onPress = function() { fhgeneric_comp.onPress(); } button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } button_mc.onDragOver = function() { fhgeneric_comp.onDragOver(); } button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } input_mc.input_txt.onSetFocus = function() { fhgeneric_comp.onSetFocus(); } input_mc.input_txt.onKillFocus = function() { fhgeneric_comp.onKillFocus(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€OƒЧфšœ“{j€Z &  j„ZЁfєП{Іƒ}яОУП Ю0њxg8Є'иЎ2іkьк7ТјzЏ`у‹ŸюъSаuxL•kиŽ_6эњќпO§ыпћOќыЗ}ЧПџmїбoлuфЛпvўіЗМCпќ–wј›пv ­ ЭОxœЯ9єЭЏл}­Ч_Ч@С\СД^ЬЩ9QАWИкuфлпі§юпћ>ћ\ўЖїиї7жž,Д(ЫдсуС9ЙЇЈj‚к€FЈj†кЙwЯœ{ЗчЬ9C&лЮ3FGlF}, улdуа1+=D_џ8ФиО{€ё‰Ў>І'Лљ–vШќ)iУщ_s|ѕыцН_ќВ.яв/k;/§’wQ ЙЭVnѓ1Й_лfэЈ{œћzќ1 $Ў7Й_лjy‘|ШVyŒќ‘Ы Л>џuЫО/нВїЫkЋ|0*–м P дЕAP+а ЕЃ[ю-џxДѕ§m“чЯї0F…oFšeœ6#йиФ уЛ}ЂŒ/}b|ВЋПщсw}ЭрWaчОщчд-gNнzіЇФ ЇD$ ]%тфOм–!—­<ЎЗЕ§нXH.иjп{冓 ‡ы•у||ѕЦг?gцœП—uЂdрЬг#]|ЉЁ jƒЁVЈh‡Ђ–ю­ var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled „љ€%хуК0аўзчЙ­ј&ї€№ё эђ€еђ0L№џџџ?џџ1M€€ Layer 1џџџџO€џџ€€ §q€€€юєs€€ќџ §є1џ §s€€еџє §џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSymbol џџџџ#€€ џџџ?џџ`== true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); this.bHasFocus = true; } GenericSearchInputClass.prototype.onKillFocus = function() { this.bHasFocus = false; } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter if (fhgeneric_comp.bHasFocus) { fhgeneric_comp.onRelease(); } break; } } GenericSearchInputClass.onKeyUp = function () { if (fhgeneric_comp.bKeystroke) { if (fhgeneric_comp.bHasFocus) { switch (Key.getCode()) { case 33: //PageUp case 34: //PageDown case 35: //End case 36: //Home case 38: //Up case 40: //Down break; default: fhgeneric_comp.onRelease(); break; } } } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } button_mc.onPress = function() { fhgeneric_comp.onPress(); } button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } button_mc.onDragOver = function() { fhgeneric_comp.onDragOver(); } button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } input_mc.input_txt.onSetFocus = function() { fhgeneric_comp.onSetFocus(); } input_mc.input_txt.onKillFocus = function() { fhgeneric_comp.onKillFocus(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€€€џџџ?џџover}r€€€nputbg_mc._width; } else { this.inputYPos = this.userinput_txt._y; this.inputXPos = this.userinput_txt._x; this.inputWidth = this.userinput_txt._width; } this.buttonYPos = this.userbutton_mc._y; this.buttonXPos = this.userbutton_mc._x; this.buttonlabelYPos = this.userbuttonlabel_txt._y; this.buttonlabelXPos = this.userbuttonlabel_txt._x; this.textFieldYPos = this.userTextField_txt._y; this.textFieldXPos = this.userTextField_txt._x; // should the button and textfield be displayed? this.bDiserbuttonlabel_txt._y = this.buttonlabelYPos; this.userTextField_txt._visible = true; } if (!this.bDisplayButton) { this.userbutton_mc._visible = false; this.userbuttonlabel_txt._visible = false; } else { this.userbutton_mc._visible = true; this.userbuttonlabel_txt._visible = true; } } /////////////////////////////////////////////////////////////////////////// // // These commands are used to disable or enable certain aspects of the search input // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetTextFieldVisible = function (bVisible) { this.bDisplayTextField = bVisible; this.PositionItems(); } GenericSearchInputClass.prototype.SetButtonVisible = function (bVisible) { this.bDisplayButton = bVisible; this.PositionItems(); } /////////////////////////////////////////////////////////////////////////// // // Used to change the width of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetWidth = function (nWidth) { if (this.bDisplayButton && this.userbutton_mc != undefined) { this.userbutton_mc._x = (this.userinput_mc._x + nWidth) - this.userbutton_mc._width; this.userbuttonlabel_txt._x = this.userbutton_mc._x + (this.buttonlabelXPos - this.buttonXPos); var nSpace = this.buttonXPos - (this.inputXPos + this.inputWidth); this.userinput_mc._width = this.userbutton_mc._x - (this.userinput_mc._x+nSpace); } else { this.userinput_mc._width = nWidth; } } /////////////////////////////////////////////////////////////////////////// // // Used to set the focus of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetFocus = function () { Selection.setFocus(this.userinput_txt); Selection.setSelection(0,0); } /////////////////////////////////////////////////////////////////////////// // // Used to check to see if we hav focus // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.HasFocus = function () { return this.bHasFocus; } /////////////////////////////////////////////////////////////////////////// // // Used to change the decription in the textfield // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetDescriptionText = function(newText) { this.userTextField_txt.text = newText; } /////////////////////////////////////////////////////////////////////////// // // Make the search send a command on every keystroke // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SendReplyOnEveryKey = function(bKeystroke) { this.bKeystroke = bKeystroke; } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(buttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // SavБ ГџџгџџџNќџџаќџџ3Ї%>џџ> ˜ \џџ%%Ђџџџ$џџџјџџMў‘тџџи Yџџ €џџџUўџџœџџџK:КџџЅPvџџ™џџџэўџџГџџџЬEД џџЫVvџџˆџџџџџоџџџл’ ™џџВџџџZџџџщџџџ $џџu-lџџxџџџъўџџЋџџџљJ: џџYlџџxџгА dY№T2џ№Xџjа Uќ№ Šџ>аџ 0фўh№ 6ќјџ№„ј№Ажќ0ІаѓўџdЖАћџјаЈV№ќџДгœћXѓІњўа  № \Hѓ ЂџЄ§rџŒў№ `№ Œ(њѓpџxўŽжќ№Њћ&№Шг –ШЋ а џ№ 6г Ьџиќљг џА№ѓ цŠќџ–ѓ ўџ€ј8ќx€€џџџ?џџi€€€€$)T)№§џџŒўџџ"џџЈ§џџЮ§џџџЎ'EџџVз ›џџЌџџџ)џџјѓЮ ЈџџНџџџЗƒЬ џџ"FЊ ЈџџХџџџ|…§џџ†i=щЬЛ iџџ  џџџџplјџџ‘џй‰ u iџџ  џџџџiќџџћџџŠЮРhџџ(/ џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџŸZџс( #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.userbutton_mc = this._parent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userTextField_txt = this._parent.textfield_txt; this.userTextField_txt.autoSize = true; this.userinput_txt = this.userinput_mc.input_txt; this.attribute_array = new array(); this.bHasFocus = false; this.setFocusIntervalID = -1; // variables to store the inital position of each item this.inputYPos = this.userinput_mc._y; this.inputXPos = this.userinput_mc._x; this.inputWidth = this.userinput_mc._width; this.buttonYPos = this.userbutton_mc._y; this.buttonXPos = this.userbutton_mc._x; this.buttonlabelYPos = this.userbuttonlabel_txt._y; this.buttonlabelXPos = this.userbuttonlabel_txt._x; this.textFieldYPos = this.userTextField_txt._y; this.textFieldXPos = this.userTextField_txt._x; // should the button and textfield be displayed? this.bDisplayButton = true; this.bDisplayTextField = false; // Should we send the contents of the input field everytime a key is pressed this.bKeystroke = false; this.PositionItems(); } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Used to position the items based on what is to be displayed // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.PositionItems = function () { if (this.userTextField_txt != undefined && !this.bDisplayTextField) { _parent.debug_trace("Hide Text field"); this.userinput_mc._y = this.userTextField_txt._y; var deltaY = this.userinput_mc._y - this.inputYPos; this.userbutton_mc._y = this.buttonYPos + deltaY; this.userbuttonlabel_txt._y = this.buttonlabelYPos + deltaY; this.userTextField_txt._visible = false; } else { _parent.debug_trace("Show Text Field"); this.userinput_mc._y = this.inputYPos; this.userbutton_mc._y = this.buttonYPos; this.userbuttonlabel_txt._y = this.buttonlabelYPos; this.userTextField_txt._visible = true; } if (!this.bDisplayButton) { this.userbutton_mc._visible = false; this.userbuttonlabel_txt._visible = false; } else { this.userbutton_mc._visible = true; this.userbuttonlabel_txt._visible = true; } } /////////////////////////////////////////////////////////////////////////// // // These commands are used to disable or enable certain aspects of the search input // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetTextFieldVisible = function (bVisible) { this.bDisplayTextField = bVisible; this.PositionItems(); } GenericSearchInputClass.prototype.SetButtonVisible = function (bVisible) { this.bDisplayButton = bVisible; this.PositionItems(); } /////////////////////////////////////////////////////////////////////////// // // Used to change the width of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetWidth = function (nWidth) { if (this.bDisplayButton && this.userbutton_mc != undefined) { this.userbutton_mc._x = (this.userinput_mc._x + nWidth) - this.userbutton_mc._width; this.userbuttonlabel_txt._x = this.userbutton_mc._x + (this.buttonlabelXPos - this.buttonXPos); var nSpace = this.buttonXPos - (this.inputXPos + this.inputWidth); this.userinput_mc._width = this.userbutton_mc._x - (this.userinput_mc._x+nSpace); } else { this.userinput_mc._width = nWidth; } } /////////////////////////////////////////////////////////////////////////// // // Used to set the focus of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetFocus = function () { Selection.setFocus(this.userinput_txt); Selection.setSelection(0,0); } /////////////////////////////////////////////////////////////////////////// // // Used to change the decription in the textfield // ///////////////////„џџЇџџџы§џџхћџџVфAŒџџˆb „џџ›џџџ"ЦџџwXЬћ МџџгџџџLа~џџkaн Уџџ оџџџ9ўџџсўџџПˆ–'џџ! џџžџџџўџџѓўџџ?|- џџV Žџџ›џџџџџВџџџ —џџЋџџџџџеџџџ’” ŸџџДџџџ ўџџЂўџџQ’№-џџSт €џџŽџџџжўџџђќџџ8яиЄџџ‡v €џџŽџгмh§й№Fў<№Рz№ \§№<ў№>єџа 0<№ ф§|№ ша а0~ўR№vќ`№Фќфџ№ќџ ј№акќ0*шџѓ & ьўЊ§њі№@ў№рfќѓ рўђњ>0ў№ Т§t№ Lа§ѓДїИ@ўџг №Цќ№ №ќџг ўќ № шџѓ№§Њ:ѓ0ўІѕћ>ѓ@|‚ј№Фќb€€џџџ?џџyl€€€€S)T)э§џџ‹ўџџ(џџињџџеџџџx$џџЪ> ’џџHHвџџџМЎ"џџЇ€TЄ  џџБџџџыœ џџ}…› ЉџџЙџџџe§џџiўџџA…k%џџЯ§ HHвџџввџџџџД§џџBўџџЅšў3џџЦ+ џџHHвџџџЈЕ џџ†LxЄ ˆџџ˜џџџДt џџфQЄŽ Œџџџџџо|ћџџЎЉЛ1+ uџџ џџџuќџџr§џџС•`0џџ< Р ŠџџввџџџџџџМџџџх šџџЉџџџѕ§џџŒ§џџгФN\џџ\Ѓ vџџџџџўџџb§џџ“Эqgџџc˜ vџџџџџџџСџџџ— ЇџџЗџџџўџџš§џџ&ЩЇaџџІ Ъ ŠџџHHвџџџœјџџ7њ6a p uџџ џг€"D 0˜<№žќŒ№ ба€M€g€а 0–§Vа љ0ŒњF№Д§вџ№Цја§№žфќ0Jмџ№ Ю№8‚ў0Vиџб§ќгfќиџ§0^§4№ Вp№6ў№шўѓћxHњџѓЈРќћ@ѓ Ь)ўа ј № Pюџг Рќћѓ ј`ќўЮќћї№ ŒћŽѓьЪїФњ8№Фpѓ ŒћŽўџ’ј№Ж§@ѓ ќ0њP§ўѓАњŠ€ћ№xќЖ€€џџџ?џџѓb€€€€S)T)э§џџ‹ўџџ(џџ&$ќџџАп}|я Г vvџџџџџџџџџauУ:џџ1Ѓ†B Šџџ—џџџbyп8џџс ѕ г “џџІџџџЎџв,џџГСq xџџˆџџџ4џџџЌќџџьј9ФџџбŽ ƒƒџџџџџџџџџЅфС0џџG–iP €џџ”џџџqџџџЛ3Зњx dџџŠџџџ’Hњџџ"йš‡Iы “џџƒƒџџџџ рќџџšš Ьф v dџџŠџџџEџџџPќџџћ$ЮџџяА @@еџџ  џџџџџџмџџџ›” ŸџџВџџџFўџџшќџџƒп0ƒџџV ”џџ@@еџџџџџмџџџ}˜ ЈџџЛџџџђўџџ§њџџњ5Ыџџ!  “џџƒƒџџџџяџџџЂќџџѓџюњџџ` ‚ “џџ@@еџг|"4ћ№šћŒ№ Д§№№§М§јќѓ’ћ`аќ0PаџѓPї*юќ0,Юџ№zгюџ’ќњгДћRљёјюџ№0Ьќ№аћ8гќџџ№ >№@њ№РќŽўгBzџ|б„рѓ Оќ"юўЪџі№љѓ ’Рііџ0Dа 0юќZ№@љ(ї “~ќ Aг Жћ ї№ NTћѓ ЂћОNPѓ ВўАќ!іџ№ яќјџѓ$љœћ”ѓ Ќћ˜ љѓ>rˆќ№ Ю§Ž§€€џџџ?џџV&€€€€S)T)э§џџ‹ўџџ џџьџџџ+џџЋ* ˆџџ˜џџџ§џџё§џџ”)/џџь р ИџџEEљџџџeќџџƒќџџ ВHџџ l ‰џџEEљџџџЂќџџџџ…u ‰џџŸџџџЬќџџФњ}3ИS ‰џџ Ѕџџџџџ‚џџџ˜ ЈџџПџџџџџнџџџЮ˜ ЊџџПџџџїIњџџ;учu/ ŸџџccџџџџРсќџџkUшVœ ИџџccџџџџэџџџЯџџЋg €џџџџџџџџћџџфњ!ЭџџЖ  ‰џџИџѓ h$zЖ§Ќ§ћџ0PћŽа ѕ№ Ќ§гњјдў„іщ№œ№ ЧгŽќі0Pиќѓ œќџ №Ђќ–ў№ўџ6№ `4њё ђўџœќѓ @ђLњZ№њџ№ЊўЦќљѓѓIьџKўџ №šќVѓVЊќќюџєРЙ›џчўўџєає №Кўџбјѓ ђј§Trё ѕЎPћ€€џџџ?џџю,€€€€S)T)э§џџ‹ўџџ(џџzџџџŸA<џџ[џџK †џџЁџџџЦўџџ5§џџ^ъ™џџ†€ iiџџџййџџџџфўџџДџџџ0BЕџџЛT ”џџџџџйўџџБџџџ0BЕџџЙ џџЉџџџfићџџ›ђЖQФZ ƒƒџџџџџџџџџї„љџџјєUJY   џџŽŽџџџџїўџџ1ћџџBњЪџџ™ џџƒƒџџџџ„џџџ‰ЖBџџІSџџF †џџЁџџџHџџџўўџџ^аHkџџV\ 2џџ:џџџЋўџџ'§џџзчq“џџ/ч ;;аџџƒƒџџџџ џџџ ўџџРхџџд 1џџ6џџџE]ќџџLџѕэ V џџ;;аџџџ^џџџеўџџђрЫ…џџы 2џџ6џџџmџџџџџџэз|vџџ 3џџ8џџџџџџџџš ЊџџХџџџџџнџџџš ЊџџХџџџВўџџ–ќџџ яšЄџџнv •џџ;;аџг œ$†љ№ šћ–а№Bаќ№ ъќ*0№ў6№ Tљмџ№юјаѕ0 жќа00№.№ZŠќ№4№(2б †ѓz ё†ѓЬўш§ѓ№ўТџDVѓ.љb4ОўѓЬўЂќ №2ћѓЮўpцќ ўѓ NвЎњ@гк Дќ №ЦќP№ Ўќб‘ђ№zћњџ№ Zdа љѓАќРќцџѓ >jћ|њЊ№ ьџѓљTNњѓ вž§.љb№ 4r№ ž,ћ€€џџџ?џџR€€€€S)T)э§џџ‹ўџџ*џџ џџџХ”џџlŽџџ џџЃџџџ•ќџџ—Ѕ:Уsl ""Ўџџџџџџџџѕ§џџЅўџџ—Й*џџп џџ›џџџўџџжўџџя"џџЮ  ˜џџ Љџџџй§џџјИњАМ ћ –џџ]]љџџџэЪўџџ†Kšєх sџџ""ЎџџџГIћџџdЩ žђ  sџџ""Ўџџџџџџ  $џџ|џџ„ џџЃџџџџџџhќџџЮїРПџџўЗ :џџGџџџПќџџ)ЃDХjЁ %%Ѕџџџџџџџџоџџџkћџџуџ}јџџ1w :џџEџџџјџћџџХјf<C 2 sџџ%%Ѕџ*џџџ џџJ ЋџџЩџџџ џџЌџџџJ ЋџџЩџџџ_W§џџŽžќШЄЈ ‚џџ``йџг ~$zќ№ "ќЊ№Юа ќќ0N§$0р§0№ rњОџ№љањ0ˆаќаџ0(№К№Ќђ§а џ0.№ю@ѓ ь§шџѓь§шџ&и§ѓц§дџєTѓ2њn.L§ѓўџFўд§n№lћѓr§<ŽXг иpћї02ўЂ§№p§–№ hкќ№ &hа ћ0ЪЎќаі№8ќ№џа ёѓц >ўрџ№ њ§ѓ дўѓ 6ћўљО№ і"ћ№ 2њn€€џџџ?џџQL€€€€S)T)э§џџ‹ўџџ!џџ? №џџџRv ˜џџ((ЫџџџЎ§џџФўџџ:x§џџ2рkkџџџџџџџџџЖўџџw–Я? ”џџЇџџџЪ|§џџГ4е]† џџ˜џџџлћџџн"ю џџ˜џџџ\2џџц Зš ›џџ­џџџ†џџџcџџЇЭџџЌ џџ­џџџ­ЯљџџѕъЂeЅ :џџGџџџ+аќџџy›aЫа ’џџ((ЫџџџюџџџIћџџјџ ќџџєn :џџGџџџ"џџЅџџџrŸ ЎџџЫџџџ~ §џџрУгЄ• †џџ ›џџџуJќџџ1фtф : џџ’џ*џџџ"џџrŸ ЎџџЫџѓа \№ŽўК§№rў0г”ўА§ч)№r§v№ ,ˆ§№”ўА§ѓ@§>6ў8№ЪR№vћѓ PєРўЎ§јє№:ў€№ ъќѓ> љ„§цџїѓ :ў цT№ 0џ–ќб џёѓаjњмџ0Рќє№§№ №§Vг "ˆќїѓшђџ*§ьџѓ ъџ,ћ$§т№ м4ћ№ §О№ ,§ № Тѓњ0ќвѓ€иѕ§рџ€€џџџ?џџОD€€€€$)T)№§џџŒўџџ#џџRZ`џџХ":š Њџџ Кџџџўўџџoiц4 ‡џџІџџџћџџєџвzF ППџџџџџџџџџ|Гџџџ№2сњa­ џџ’џџџбЌџџџ˜-шћv oџџ‡џџџ™џџџž[ яЈп oџџ‡џџџЦGЊ џџƒRž ЎџџЦџџџђДќџџ(|рпEЧ 1џџ:џџџеџўџџ”UEё~Z …џџЃџџџфzњџџЗќр(9 1џџ:џџџџџ•„Ÿ ВџџЮџџџ!џџЫџџџ„  ВџџЮџџџ@~ўџџŸŽ—д№ {џџŒџџџˆwћџџпв|Ÿ. 2џџ8џџџy“ўџџъРн У oџџ…џџџЋўћџџќ&*(P 2џџ8џѓм!ЬH№ dўа№ ˜№оўF0zќ№ ўžџає№`љає0оьќ№Nіџа о№ ѓ (§@ц§|а  0žP№ rћѓц§|џВўѓ0ЪќДў„ѓb8ћИL№иР§ѓ ћBzг |№ орџ№ žќ № tѓ іўP Аќѓ Œўъџjfѓ–џšќtўг юђќ ѓ œ0ћъњкѓ „Žјџ№XћXѓюў4њџRѓў2јЄ€€џџџ?џџey€€€€S)T)э§џџ‹ўџџџџGџџ†™ ЊџџВџџџџџџџ  Зџџбџ:џѓ>XИ§0Р0J№цџка №юџH0Hќ0юџЖќа ђ№фџ"ћѓо"ќќџѓњмѓћ>ќк№Ј€€џџџ?џџ€€€€S)T)э§џџ‹ўџџ'џџ§џџўџџo—џџї ‡џџІџџџыџџџŽћџџєџ.ћџџK ЬЬџџџџџџџџџэўџџХћџџ!јСџџrW ППџџџџџџџџџЫџџџЊЬџџгыџџјЎ ЊџџЦџџџ№§џџЄR!џџЗџџ‚ь ЊџџЦџџџоќџџќџџНрSџџп Л 2џџ:џџџ—ўџџћџџі3Йџџ a 1џџ6џџџ+§џџџўџџ”UЛџџ­Z …џџЃџџџg§џџџџџž[ѕџџƒп oџџ‡џџџ„ўџџГџџџ№2џџЪ­ џџ’џџџ/ўџџЌџџџ˜-џџЕ oџџ‡џџџџџ Їž ВџџЪџџџЋўџџЭќџџ@ьhџџ{ 3џџ8џџџџџˆџџџcЁ ИџџЮџџџР§џџ~ўџџŸŽi+џџž№ {џџŒџџџ‡§џџ“ўџџъ@"џџ‹У oџџ…џџџ=џџџ ќџџЖљœЧџџ§x 2џџ6џг  №Nа 0и№ ўџœа № ўb№|ќьџ№ жўМќ№  шџ№`ў,ћ№ЬФ§ќ0ˆјџѓtv№N№ ‚ћ№џ0ѓ жњџT№ фHѓа§4і\6ѓвўа^ќѓ *0xЦќ№ €ќіџа яѓ Єіvўќќ№”џfг lšќњўај№Єў№ Nг `–ќ ё0žМ§№т§‚§№lрѓ”ў ћў§к№ ^№ $ћѓ:ШјЄћLѓЂњџКК§€€џџџ?џџУ€€€€S)T)э§џџ‹ўџџ'џџ§ћџџ? №џџџџйv ˜џџ((ЫџџџЛ/џџџз6њT3 88хџџџџџџџџЙ@ќџџ­Е\ДSw 88хџџџџџџџџЮџџџВАџџKэџџmЏ ›џџЊџџџQ џџЖ'Ž… ›џџ­џџџ8ўџџзњџџїёhЌџџGL :џџGџџџ)ћџџјџѕО` :џџEџџџећџџаќџџy›Ÿ4џџ'а ’џџ((Ыџџџ%§џџћџџну~џџ ю џџ˜џџџJ§џџўџџw–у0џџ? ”џџЇџџџ6ќџџ|§џџГЬ*џџЮ† џџ˜џџџўџџJќџџ1фј‹џџG: џџ’џџџџџЙ› ЎџџТџџџџџОџџџ2Ђ ЙџџЫџџџ‚§џџ §џџрУ-[џџ*• †џџ ›џ*џѓ А!кв ў№ 2ўаќ№ ќџ№ЄўŒ§№жўј§афз№–ўR№(|ѓЄўŒ§`ф§№v§ёфз §0ŠўB№l §ѓ–ўRўќ№юФ№.ћѓ (§цФьџг*§ бїє020і$№№§Дќ№§шџг о№а ў 0ќTѓ ь˜џшќўќ№ ,џjг д–ќљ0BЊ§гŠўbа№ § ћѓ (§цŠјџ№ :§єџѓ Fљѓ .ў`ЬZѓЬќ§<§ €€џџџ?џџp.€€€€S)T)э§џџ‹ўџџ+џџkћџџќџџ—ЅЦ<џџИl ""Ўџџџџџџџџ€эхџџшyW џџ™џџџ…ђщџџФ{A —џџЃџџџ'ќџџЁѕ H*™ :џџGџџџ#Aћџџуџƒъe :џџGџџџAћџџќџџ)ЃМ:џџСЁ %%ЅџџџџџџџџKuќџџЛMЎœ… џџ Љџџџ]ЮўџџСU5ёЁ џџ Љџџџ'§џџ§џџјИOџџoћ –џџ]]љџџџќџџЪўџџ†Kf џџ+х sџџ""Ўџџџџџс™ ЋџџЛџ*џџџџџџџћџџХјšУџџш2 sџџ%%ЅџџџMќџџIћџџdЩіaџџ9 sџџ""ЎџџџЁќџџW§џџŽž7џџ‡Ј ‚џџ``йџџџџџэ Ё КџџЩџг` 0XЌ№ ўџpћ№Іўкѓ Z&§”4№ ђ№ nњB№ ъ§дџ06§Тќ џаzџ№ мђџаќќ№ ќVћ№№Р§0иџаџ0Ј №Fў0&оџѓ ”4n§\№ †|гDћЖїYpгŒћDџ№іи№ж§№0њŽ§№№§№˜§№ўLѓ іўшџѓ Шl2§Ќќгмшџ№ h&г |ћжќє№<ќѓ њўцџЪѓ ў№џё жўhѓџ|ќ4ўDћ€€џџџ?џџ8€€€€S)T)э§џџ‹ўџџ+џџšўџџићџџ›ђJЎџџgZ ƒƒџџџџџџџџџ›џџџs1-ћЊN ”џџЉџџџ‡џџџЪVж№Ы- ”џџЉџџџ:5§џџ^ъќfЅ € iiџџџййџџџџ ўџџ„љџџјєЋЕџџв  џџŽŽџџџџYdђ@џџdЊ < †џџ—џџџXeˆ>џџЅЇє \ џџЁџџџэмўџџЭЦHЁTJ 1џџ:џџџU'§џџзчlќч ;;аџџƒƒџџџџ# §џџяЋ[bж 1џџ:џџџџџR˜ ЊџџНџџџџџ6о  БџџХџџџУтўџџpгRЄю 2џџ8џџџб_ўџџТфщrЇЭ 2џџ8џџџN–ќџџ яf[Nv •џџ;;аџџџ 1ћџџBњъ5’ џџƒƒџџџџЛџџџ]ќџџLџ эџџ>V џџ;;аџг„!,ў№’№žў№тќРќѓЮў`вќ00ЮџгџЄпо№˜ќ’ќ№Ф§L№ жdаˆѓьlќџ”г (њЊўљјаˆ№d№ šќdћб‡њѓ,˜§рќ^№$Ю§~ъѓ Nоў№ ˜ќ а №8J№^ ќа ѓўѓ ќў№џг ъўкџ г Šћx ё €6їЃўг"20 0ѓ @Œќчќ№ ћѓ Ъў*м§№ќё я"2гО№ьјѓ Ањдjћ:ћѓ8&ЎрџѓАњРќL4№цќZњ№ Ю§r€€џџџ?џџ}q€€ Layer 3џџџџOџOџ€€2џџ8џџџб_ўџџТфщrЇЭ 2џџ8џџџN–ќџџ яf[Nv •џџ;;аџџџ 1ћџџBњъ5’ џџƒƒџџџџЛџџџ]ќџџLџ эџџ>V џџ;;аџг„!,ў№’№žў№тќРќѓЮў`вќ00ЮџгџЄпо№˜ќ’ќ№Ф§L№ жdаˆѓьlќџ”г (њЊўљјаˆ№d№ šќdћб‡њѓ,˜§рќ^№$Ю§~ъѓ N//////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetDescriptionText = function(newText) { this.userTextField_txt.text = newText; } /////////////////////////////////////////////////////////////////////////// // // Make the search send a command on every keystroke // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SendReplyOnEveryKey = function(bKeystroke) { this.bKeystroke = bKeystroke; } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(buttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); this.bHasFocus = true; } GenericSearchInputClass.prototype.onKillFocus = function() { this.bHasFocus = false; } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter if (fhgeneric_comp.bHasFocus) { fhgeneric_comp.onRelease(); } break; } } GenericSearchInputClass.onKeyUp = function () { if (fhgeneric_comp.bKeystroke) { if (fhgeneric_comp.bHasFocus) { switch (Key.getCode()) { case 33: //PageUp case 34: //PageDown case 35: //End case 36: //Home case 38: //Up case 40: //Down break; default: fhgeneric_comp.onRelease(); break; } } } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } button_mc.onPress = function() { fhgeneric_comp.onPress(); } button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } button_mc.onDragOver = function() { fhgeneric_comp.onDragOver(); } button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } input_mc.input_txt.onSetFocus = function() { fhgeneric_comp.onSetFocus(); } input_mc.input_txt.onKillFocus = function() { fhgeneric_comp.onKillFocus(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€€3Ь™џkx€3џ™џdя€f™џЛяH€fГчоьmЛ­ZЇ,\ш…kЦVувЅYFлщЩЦ>#Wпюajп-ФєhSЛЮ>цЛј”OXœ}#&ѓјЈєЃзCS]M>t=,эа№д#""аFЄН‘†@™qLmБЯэ ЅхqFT^ ЏЇ<І‹LG+ЃцyъcbџИј_љїF[лч(бo‰[ЏХИ[‰{С†ЩЙSy$ЇзУSЫ чзУ’b›@-˜ƒ&  jDh…šЁv !j‰šК7ЯІ{Ѓз- 6MCЇMw0ЦХц—-[kœj—fь;|•щЭОQІі=BLНчojгйлtп;ХLXqЭgхОk>ёћЎzХэЙъЗћšчђ=з<уі\ѓРЖзŠ=ˆНъsдvе~ь#”№M8pMDтСkО‰Ўљ%Мц—x№КoBУч\з†ђмјŸ{)ъb@<~31Б%ЦОФZХ]ђ 8мЯНзМфЮ’Wх‚лЋhзрћšяЊ§WнЂwt.4!МVЈЁjZЂІЈ­{у,КЗzЩ:жмƒFW'ф}|7gЭЫ4 ЗкдЙ_Ќщ…aІЧК˜штkКЏГЛљсМ+ІК­Џ^‘WН(l;"ЗzQhnЕ#Ж‹сy"œ#ѓЊЃvVЛ0ЂwU/о}е5ГэžЋnV!уу8.З—b›ЁлЋЖЪўR<ЗОџ{ЗЗѕѕЧ,ъbR‹“ŠБŠЁ|Оkёџф f79м8Gэ\-g‚ПАh>Щ-9^ˆ@[Е0$Їк%bgйH‡Lѓя{ mP#д 5эPCBKаЕЅзJџYž"цZ_~хЭoWЏкj нjZр”m>%едup<ъчЈ}šкЁІбњИП‹gA‡AЁ•vо›*gћlBЛБr[ŸЭ•Г|7WЮілZ5Чkе\џmUssЊццTЮ ЪЉZВНЪAEayеŽсЛЊ"v"vU/ŽDЈ-їEˆc;qЯ‰T‚л‹Б­ О†#Ž9тљJШ§ПвЪзК]э_љ,ђk?‹‚Юm-ж8‰}K`JМk1&юxн№]UрЂЪ!t‡рUЮ _ wsЖ‘KpКEpk'јV8яUГ}7WLїиџ|пЁ j„ZЁfЈjZЂІЈ­а˜>GћЯёŽ‡[оз&зЧ7жЛ<ЯфтОб4iVІщуб‰ІзњФšžыjzИ[€Љ]7s›М^EЧЦVL^ЖО|мв5х\ГЫ'Й­­˜ьЖЁbŠЧ†ŠЉž+ІСSІ{oЉœсГЕвЮokХLп-h+чРCьƒ•˜œ[97x{е|x cAШŽЊд/bДМ л" kj;lg•C8Zm№x8пƒ!њnpX/тЈ`)0%ЎРXХ›иWЮ(|€›ŠYўлW3сџ3|З’Cr)8тОЏ'з‚ѓёр~МKvХ$зѕEoŽ6ЗщъM˜VžCЮё:ДC QKдДEQkџœ3чоэI3Ўбш?xŒ)9yЗЩ/p›iЖУZг`лTS—С+M/ѕBЎёQљ‘~ц{јšлugјН=6Іlє’ЌВŽ™e#ВЪF;Џ)ыВІlмвlhj}љdїѕхS<6–OѕмT1КЃoЬєSТ.p[…]Рж ;hQ9+ Їr6ќdЎsаnеœРэUєЦМрjфЁE„0 }Ёnѓys­#ЧіЗ ќŸНѕџr_§џПмZН6пKФ->WЭћZ§ПР$ˆ^[‹1и# nG{x=›k`.ёWИ‚№4ƒ9„Яfr'8œьБžœ–_š]6<^ВІlфb…ћaŽeЃœ2Ё‡хцvаЧCаЧЃ=s|,ДC QKдЕQkдмН{Ц§3zў|Л‡Ÿ8“eŠŠЭ3-YЖЩ4оЙ֘$гkbMэ? 3?й+ФќXЯѓ#=§Э#§иЏ№‘‘ЅƒЄ—]˜^:Ь1НlјbњGfй(ч,xЧšВ‰nйe—­+›фБЁlВ7ќƒсГЉ|4)єщ и*"ЖƒrБЯМЄоРЙ aЁЯмђмЙлкњњТcЂJПТE`fOьЌ№$ЦozЧLјЙ№лBnЪЇњТ+М7‘3pЗТ/мж–ЇЃ]Вр™eУœ2K‡-Ъ(тV:h~ZщрљЉoŒˆ2?ђ1Есo~ьуѓSНBLЯ} Х@KЋ…ІЈ-hŒZЃцўgЯНй дИ›,1zŠ))yЩ7$Ч4лiƒi№”tг{#W™; ˆ2Зяf~ъг`xG љЩOН-Oї ЪyHxIП9ЩЅЄ–0†,J+ъ˜Q2bqVщH—ьвБак87е7Мр xЧ4пM3˜w@Ћvhga 3+`›2~сКžKп@оСкШМ \ѓбŠЦО6дЧХѓдуџ QЂЮsЕџw—lЫ~А­щK=}цcтЙ*N7`H,џ ‡`[ŒGЖ ьЩЙ'Т3O^Ыl=сюЪ&ИЏ/уКЖtЄsv Ў %C2зфМџќд’~іЉ%}ц$ta~Њ7ќтгЁ“ЇЁ™чњ…QCаrhŠкЂЦ 5jŽкЛ7ЯКЛЗз’АЇ[З}јhDT†)fХN“‹я6гЄykЭŸNH5П5<^јЦѓ§CЭЯє 6?г/ШђЬ€ ЫsˆчY^Vд}кЪтўѓ“‹8Є– Z”^2и)Гd˜ГъЎйЅ—­љ4X>Eњ†ЯЦђОе14jmЈЙБю6‡о€1 ъpГY‹ @mЕ9{lГ6‡:]5jЋе№•jh_iе§šуAЙuŽ‹чЪџљЧДJkћ\'V3bG<‰Ѕ‚щЖJД жРиKШ ђAХлЇР3&{Ў'wЅ–­- пэпp^#8Д0МЇїї}ц&vŸoyaPАаЦ3‚ЭЯі 2?г'иLэ№кC-ASд–аДFЭQ{<ƒЄяоГщојфф‰бЬ`c3ОлG§Œ)iћLсyІљЎ›ЬЃь2Э=Ц&›_gю0$ЪќТРpЫ B-/ ГМ0$4џЅЁсљ‡GцП6:кђц„˜ТžГVї™—VмпОс˜Y2о1jIVщh\ŸЦ.Э.‡Б sнIюыЪm1NFЭЃbŠъl^›*ЇaўeКЯжоЊPƒЋš‰yъЇ"fљчT!ЊgћчVЯi fрБ{4DпТХ?—и‰xJ|еzЇЈ[Oѓо .'Ђ–a‹qх$їѕe–­+чЖVpHЯэЌp;xQfqПщфМш“9I…=g'М5>6ПуАpjNЈ•Ёц"ЈЅc“Ј-jŒZЃцЈ=jPъёо8ћюЮ^JŽиЖ64iž0oЁ—).aЩ=pЛy†гzѓРщцїСё#–›;‹ЖМ4$ЪђђK‡aˆ‘цWFEš;‰ЖМ5!ЮђюЄ8Ы{SVц0-!џCЛФ‚^Г“ ћи'і›—R4Р!Нx№Ђєт!Žщ%Ј•ŒpЬ(…zыЇc\ВЫЧ.][1оu}Хз ]7VNZЖЉb’лЦЪЩЫЖ(сОЅвжсОЅЪж}k•­ЧжЊ)žj`Šv_9^9Хs‹6ЊІтјTМЦЭ >їяˆF}~vіAл'nзт ё ФDн'VРŒи 'ЃUqk`.Арb9!7фЈdЦ"рŒм‘УЂi…Ш/Ш-9з љLOАМgoщ<9ŽZ &ЬЏŽŽВtiщ0лЬ“ж™{OM7w“hykTœхеБ–Ž#Ђ-ЏŒˆЪutŒљѕБ1ц7ЧЧšп™ДТќод•–nаЮ‡vЋѓ?–њBS§Є`ЬR8Ш1НhЈSzбpЇŒтK2q­BюšЧxWЬп-лP>qцѓwиbЎeŠ'Ю!œгМлЊfxчTЭ№aф"ЩЉЖѓЭ­ЖѓAАEЬђCы—‹М$Їzї­ЯХА>ўчіЋь|sd4і5хѓй6іn§М†ћ%А& 6шЇ3bЈт‰ж;‡ Ќ9БЏАѕиD.Ш Й!GфŠœ\’U4|qЙ,Д(м’уќ>s“ѓ‘kX>œ™ $šпŸКвмšxs42&šZЁf,‡ГЕМ92ŽšкЂЦЈ5hŽкЃЕšќчŸw_ЕќpЭяшЮ]?НМrѕГ_xžyОћѓ˜yйц^Sв,яб7FЧ[^—џњшхˆXs'ЬГН=qЙЙЫфxЫћгЬнgЎЖ|<;ЩвъKПX˜V0xQZ!ъf…#gtЮ*Ц5ЌdЬвЕ%у]з•NtлP>йcЦ*Ь‹ЗbMРVЌэШЉœ ]Яєп^eЇЦ,џэwф!vVЯ дїеАи…cЇrПІE]dgџgњ­єЗІ7ї˜H|цpЛvФ3c–Zœ9Б'ф‚œrDЎJ&ИЎƒЌ-ўсМІз€Т!‹г 9Т?ІцїuH%їд€а5бХ6оќжDцqљЏ1FЧZ^Чѕ‡ZzoЬjjKhŒZƒцЈ=jZдjѓю;ГўЙŸXђТuОŒћК9Э›АЯь’gžƒкЦ0ћ5–ІЄ[оŸАкђіИ•љo"оŸџЮј–w&Ч›п›ВЪ„ы‹щУYЋMŸи'›њЮO6ї_˜bш˜ž?Ф)#ј’ŒЬУТ/ŠрХунж—L\ЖБtВћfдчЗ”AŸхг}sQ‹лŽyПэXcДk ђPыuЛ1ЧИЛz^ˆѓCїTЯн­ЦžъЁ{k#loЕw`Ћж‹эЙ9ТЌŽqџїЂОзИЧ~яНыћЌ7ПЗьЏвƒш 6иЎ‹[ žФ–KМ+gх‘С8)Ÿю“KŽЪ0*ьБЙdЂћFrX„qLсчьфљУ–d€ыtpžFюM}ц%›>ž“lBоiњ`Мcъ*KчIB3љoOˆЯk\<Д” 4mQcBkдДG R‹R—RЇџм3ёющ™ф‚мpН Ѓ­ЁiЋшёг›Утї˜— ЖсВб2dnЖЅчєtKЗ)IљяNJЬяŒxwrBў{SРћŒDsїYIІžs’Нц&ћс;Z,J5 v‚–d˜G8gXFЛЌЩчВЖ`ДFЭMім\ŒыXЩTŸmЅг}sЪS”Я ЬЋ˜ИГbN№.ЌUм]9/dж4юХЙ\ УїV;FьЧш§UŽ‘ћЊaл)т@M,Цvн8ˆ§ƒU‹#ї#T-ŽВ ЛЃо~ьg_еЈ‹ƒ#bFьˆ!БЌZОЏЦРœи“rANШ 9"WЅг|З‘Лb[ЯЭфœЎЫGўaэœeО‡.Ю їFфЦОаТЇsSЈ jФђўЬDj&џ]лEC“0ž™ВZh Ѓж„ц =jZ”КЄFЅ^яž3ьŸїI%в3šƒц…šЕо>п5в€кЦџ\ЫT—M–СѓВ-Ньвѓ?œž‚Zgr~зщ)нfЄфwŸ™lљhVŠЙзМcя)Цў гЎ vLП‚Мѕ r гЈЅYц1Ўй–ёажDїM“<7Nёо\4е{[ё4пœЛ€эЅГ‚ђЪ ЯђЙ!{Ъч‡ьЉ€OTBЫ•‹ш Њœ"2ЊGЊZuїXЊvFИФ0WЛФЎТvŽ#W-eФдDѕви#5ћЎ1GЊъ‰JќЯm WМN}q›^ПОЯ.ŽЉ§­гWq X ёŠ^Ф лC`FL‰­Š31'іф€\rSfМ‹\‘3rs mН6€з|фŽј‡yЬвlpžyз‹+Ш=Ў ž…ыHЕAX>š-4Sаm&tD-MOЮџpZЊЅзЬtЁ1hšЃіЈAj‘šЄ6щКwќч}ˆОaэфш1Cѓ6g\RЭž‘y'ПэлЅ›,CцЏЭя='3ПЇ]Zў‡3вђ{ЬN+ш9'-џ“Йi–оѓгM}ЁŠ_\Ж8уђHчЬ+Ѓ—Ў1Ž]Жж4о}ƒы„ђ'{o.˜тЛЕpš_NбЬ€мbЛ Ѕдтм]eШЅЫЉS\ +#їW.Ž:XЙ$њ ќš‡/№мw[~”QН,юXЕћŠclЋдЈvЧіŠуUюŒ8ЅѕРЖЖ=ерЖv_G[щЙќXЅgмy,?VгЭg}віKєг `Ѓ`Є`VCз*зиЃk`NьЩЙ 'ф†‘+rFюШaсtПrš?йkГkHMу—­чйфўђчLjзфŸiІО …Vђ?ž эиCGГ3гђ{" -jLh šЃіЈAj‘šЌЯ;ўѓgаНї ъЫ5Z‚ŸVЊ™ж!Г пТЌќўŽYІA‹3Џ uЩК<1ЪuЭejgœЧК+<6'ym4лњlБLѕлV0=`{!4WlК БЛtAиОR\лЪE(ЇNЁY—иЃ•аpЅЮe7шм=ч;Тs%bеguТkе‰*яU'k#сdЅзЪ•оЋDTљ`_нЎєС15*|VžЈ7|qМQŽчмŽhЬ{‰ч4№yeD[_ŸE•w‚`EЬЌq$ЖФXs=9ф„мЃв…сћЩЙ#‡…Г‚ЖLgNъЗ•ƒыMфќЪXuд€аТpj#г4hIf~?Ї,jFh‡њФ>ƒšк‚ЦЈ5Ё9hЄЉIjSЯ9ўѓ>U_ЎСчЬŸ5Д|шk—рlЫ’а\‹ƒNОэВ­љ#жчY˜Й6§bбšТўNйƒœГѓ‡,]kюКж8 :V~DŽqyМчњЫН6\™фНб„ы‘yšџVЫŒРм|Лр…а[бќА=ХИ†•:F,]}ЈŒк\Кќh…ыŠcЫт?Ћє`@ѓ^єшчПЇЊ|O+Бњt•Ж§ gаžЉє_}КN`?pѕщ џФS"NЃQpЊ‘qЯ;]ШHQ†зК!_OМ6пC‰F}.йЕ=Х>ВЏ•ьГФFХHСЬиI}N l…Пg`NьЩЙ 'ф†•:E"gфŽк‡э*˜МУ2# —›l§Ж\™ьНщђЏѕаР:Ё…1nйд†y˜лZj…šк† њ9dASkЈ-Ё1hšЃіЈAj‘šЄ6ѕœу?ыжЙљ Ї“Ÿ6†І-ŸЃo8ЌБ8чZцУ7ІylЫуВ1ФтuƒЏ-И8ЛpѓКТЁЎы G`ќ1ЪsНyŒћњ+у<з]яЕўЧ о~œрГёђdпWІјm6NиfžДн2+$Џ`nиюТ{‹Ђі;F,Y -КФ)[КтxљВ•ŸUИуzяЙъdЕыxКв‡оtЖв/ КO:ЧЈ @p;0љ|e ЖеЈL:[ФH>[\7ЪƒVŸŒVВ еЇЫ‚g№М:QœxК&‚А§GBѓПжЏЋюпњsсГЫ~ˆVэŸuПФиHœи ьT,kp%ЦФ˜{r И'ф†•:Ч)]{Ии1ц 9,œБЗР>l7Й%ЧЦiлŒSќЗ\žьГёЧ‰>ыяНўђ8/hУЕїѕдJсpѕB;аЕDMQ[Bcа5GэQƒд"5ImRЃдЊ^чјћ§Ѓ>Я`ЈzF‹v†fїЕ7Дzјы…~йЇэљs§sѓЇ{nЫŸрЖЙ`єв УрУ\7ŽpлX8вkcбŸMу}6[&њl6N„WLђнјП№‹ЫЖў[ЎLѕпvez`Žz2Э ЫГЬиUА r_сЂшE‹cCЅ.+Ž•-[yМЬ}е‰rЯ„Sд+Ў…№ zХйЪ€dш=љ\UPЪљЪ јD0к`Жˆ” ŒŠ”ѓЁj„Ѕž/M9‡`ЋDіEЄž+ M9[_”†%Ÿ) K9ЫЖ1Q–tК&BБ§GBѓПy/эgЋяГѓXyXЊкGЋО‹ `RƒА’ИерHL­РX ЬUќЩ9!7фˆ\‘Гт%Ы-Ž9D. Ђі‘[гЌаSzЎ"зЧ јD0|"DxХХЪАŒ‹•с+jуREDцЅŠШкРЙrЉ<*у"Ѓ,2ѓB|CDTЦ…RxХM…cQЖщчKЂвЮЉэTЋHуу"ŠёМ†#е џ|]Ѕ­ї}Хч’ŸГц3згЇ2єЕІпР@тAlДX ьТqLХ“и ŒCбs`Oр„м#rEЮШ]БыЪc…ЗSЫЂи§цб{Mѓ"w]™‘wй.lЛаРдр­—дFСєэдJё”h'Їh"цж %jŠкƒжЈ9jЄЉIjг*чЈ3/ћїAїо;е7FЁЫ\ƒsхOZД}\­ш=Ц)п!х`нfжbЮ-ЗажwЎр=0ЗxjpnёєаэХ3Уѓ gFюАиEюИb– ПШљб.|ћex†q^є.г‚˜=fxFОcмЁчј#EМVЙ'/ё\}Вд'щT™4щŸzЖ< э\y`кљ њѕ– ŸШМXБЦЪ#ВpdС#25Ёь—с˜Y—J#3/–Fн%№•†Ђ8*§‚ˆhДˆ"xЩŸ‰ЦМЖxŽњyњМ<^_йїВЈ, ‰S]ЬˆЁЊїТ‡жФи“rAN7рˆ\‘3rGЩ%8=œяwШМpљ~pНзˆыФћШдЕpAm"ŠgFфO нAэPCд’аДEQkдЕG R‹д$ЕisшuŽПЧУЄooЮi1з`šu'њљЃ№uЮ{НhИяQпЎ§gфЯо^А tWСœр…Xw\83о[4ќЂxzиŽbЛЈ%ГЃ1'ГЛ`NЬ.гœ˜МЫГЃрQ;/Яоue~ЬnЃCь>ГcмСќ%+,]uДhєц‘јY‰WвЉRПфгe~Ÿ#Ч€>QЋHПTš~Љ2ZfPЫ‘k>WЎ•ЊЮЃз|^ŽsB Б]s$СVн.E[Љ†ВѓьRMрБтшŒ‹JЄЃеD Же(‚ќ!пWДкЯ$Ж•Я[‚Я^гєIщgнўZуA\ĘqЛXj§C`Э<и Р9!7фЈЬ5 pFюŠ=O€ЫЯШiОѓЪ#ЇЫї‘sr/40;j5Q`‹yїхЛ…VfFюЄv !ф\‚ Ж 1jšЃіЈAj‘šЄ6еœЃ%5KэЪyYЉыПч,КїоХjŒR3‡B—ЙчН^6쿘эsz_БїлZ€{@ ц…ю.До]8;dgЁ]№іЂ™И^и…чЯŽоU2;vw‰§ŠНХѓтїЬлmžЛ|зeћш—эcv]žЛыŠCмуЂИ§цХё‡,.Ћ,K8ZфБњxБwвЩп”SЅўЉgЪ‘gcL‚ы[(sgњ=y†№ j•ЅјEєšKхЕёЙє qžа;Ѕ"ръvILцХ:› _ШИ€sСVїe(ХЄŸWуZDšкrћЏFзяSћ™фчЈя3f\(Aъє }”§-QњЎХDњАћ\ƒŸ№b[kbOШ8!7хС+rFюШ!Й$Ї—„Уц%ё‡LŽ+і_qXОмУ;b ƒшдDСМ{Јj…šЁvЈ!jЉШ.d‡а4F­Qsд5H-R“кœЃЁЙ•{яŒОѓ=–žЬZ}šѕP5зРJгV№ѓ6єuŽ'_1Д~Ђk‹‡_>?qqjС\фœЇsѕсЛŠf‹иYlоэсsуі–Ь_ЙПФ!ё@б‚„}–љё{ѓуv_žЗыђ‚Л уїWю79Џ:˜яšxЄ`йъЃ…^IЧ‹}“O•јІž. H;[„š^j˜aаЇsSГu<у‹ŠЈь/pmќB\/ЅgРЪcж\*‹…WЈQ{оР;pЌцМт9‹kЕШ!иŠmGЄ_lŒFЇ/Œi0.рБп‹њџЏй˜їV>{/‘§}гњћЎХBтУ–˜•;‰Ѓ’w(GЎљЂЦ?ШA8ž NШ 9\ІŸ+ёK=MЩeћъЃфжьМъб|ƒspПчђќЛЈj‚к(qH8 ДЭP;дєД“š*ДG@cд5GэQƒд"5ЉцmЈUж9Ды9єњшѓmЎ!Ч(єэ0FaНњqCѓž1Д|yсы†ћŸzл№РГЉ=GЛЬСјsєXsяˆиS4/bјоS<7vOЩ<\;ЌмWК0с`™Sђ‘ЧЄУ…‹šVюЛтПчЪBxˆуЊ§ЦХЋі›YшIЧ Н’OљЄœ,СuЋзЏВр е70Чѕ­œyr„Иў}Q‰ЙќB ^+ГnЮ1xžp\‚ѓЁ-ќ1 Bёщuл"фѕE!rŒ†ЃAпЈпіѕљ ПW}ŸЧ~ЏOВпb#Мјдф 8F,ЫЃ4јk`яј‚ СIъFє pEЮШ9$—ф”м’crMЮЩ=УМpе~j‚к FЈj†кЁ†Ј%jŠкR5Ж—šЃіЈAj‘šЄ6ЉQj•š•sВrЌ"НуЮAїц+k}CЮН{ŽQXЏ~ЕЇч ­ъ`h§ј›†6Яt1Д}оОУ{У-г}ЖЮ Ї‘ИfDэ+BГx~ьотq{JФуВъ@ЉcвЁВХ)GJХKRP#[}кйwХqео+N ћŒЮ LЎ‰‡ЭnИ.y&+єN9Yф›zЊи?эLIPњйвјFhцEЁЯphљБтдГŒlцж"jtЯs@уЅИŽ20іљЛ2іШФ9ЦPќЂ(>!CѕŒТhœЗЗˆ‚шдsJЄЁeШ§Пкж}Н[}>^у%Вheџ”ОŠў^ЙАИˆќЃџИ–GуМu\ј99"WфŒм‘CrIN-Ш#MK›\’sroDK-PЅKRŽ@+д ЕC QKE1{Ј-jŒZЃцЈ=jZЄ&ЉMj”ZЅfѕБЪпуcв7ДcЮЃЈcQ•c”w <їЁн‹=›?њъ‰ѓW‰кжk-ˆн_Œy‘т…qћŠЎиWВp%<#‘Йж‰Ї)sN;Zъ’qЌШ%ѕˆХ9њIмwyq"|9ˆыъ#fїЄЃhЌР'ѕdЁ|# ОqЎz, …„б3cl]Ћ_UЫЃ”С7jЃьћ&ћЉД˜35xсФŠ˜Џ:љ‡тЩвЇ5ўA.Р Й!GфЊ$8§Й+ђO;M.ЩЉмš\“ŽWМВ$9fт~j€Z &Ј Ё‘ХЩXЇŽќкЁ†-ХюЇЖрћЈ5jŽкЃЉEЋБЪ§д,Е[пXхя9›юwЉЯ78NdšїЪ1Ъk†ћŸ|заЖ}Уƒ>2<ибяѕЇЮєлQ8OјЦтEЫ;Ц(q\‰м3с`Љr ^K\вŽ–Лf|Vю–uВд-ыDбвєcfч”CW\’і#˜м’Žš=’ZМ’јТ7ќгNІŸ. Ю€od]( ЫКX†ыКQНb ЎЬ‘ˆmскыЇ˜Wрм‚—`~DѕЖŠOа+2/мtЊухFЮciчђЃгрˆ˜zуŽk"л эџˆэ›__}ппћl5c(ЋdZ–|Dё”уљ~Љ' PW+ Ь8[”qЖуцвph’кD[†ueИЮ)Оm^Хѕ2[‡d]d CЉeа3”ыЊіГьlыжWыц 'zGM(Ипвј§ƒXs,CЯ&рBЫ Й"gфŽ‚Ы“яХ7РБрœКС3 jAh‚ўP+д ЕC QKдЕEQkдЕG R‹д$ЕIRЋzуЮњ…|u­oАЖ!зˆЪљWŽЙžЗЃZлшЪ1ŠсЁŽ§ tъoxД“WЧ'Э№л^47|_ё"ЌwЇgЌ: ў•qывДc"зX–uВТcнЉJЏ gЪН6`ŽосžyЬф–vФфž‚|#х˜Х;ѕИХ'ѕГПДгап™"Ž•C1fЦ:ЃЌ7оМИš-EоQ §*ы0шЌ]Я@§^}kЦѕkъбч БІSžKкЖцм‹I=Ѓ&“+4Ю+’с'ѕХ­}І1ŸAћ™ХЖZgбіБf“ѓХW•:R;вƒя 3ˆe the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); this.bHasFocus = true; } GenericSearchInputClass.prototype.onKillFocus = function() { this.bHasFocus = false; } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter if (fhgeneric_comp.bHasFocus) { fhgeneric_comp.onRelease(); } break; } } GenericSearchInputClass.onKeyUp = function () { if (fhgeneric_comp.bKeystroke) { if (fhgeneric_comp.bHasFocus) { switch (Key.getCode()) { case 33: //PageUp case 34: //PageDown case 35: //End case 36: //Home case 38: //Up case 40: //Down break; default: fhgeneric_comp.onRelease(); break; } } } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } button_mc.onPress = function() { fhgeneric_comp.onPress(); } button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } button_mc.onDragOver = function() { fhgeneric_comp.onDragOver(); } button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } input_mc.input_txt.onSetFocus = function() { fhgeneric_comp.onSetFocus(); } input_mc.input_txt.onKillFocus = function() { fhgeneric_comp.onKillFocus(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€€€  flf{f—<ДЭќџ#€€ џџџ?џџ™t€€  џџџџб€€Фб0``Є€ћ€EE0$џџ0йў€КО€ў€€Y€ €Ђџџџџ?џџАD€€ Layer 1џџџџO€џџ€€:€€erџџ CPicFrameџџ CPicSymюјќџ#€€џџџ?џџ:€€ backџџџџO€џџ€€€€ џџџ?џџа^stop();џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicShape€€‰џfџs€FСўs0Q§0§0ЏџџCPicText€€ ‹џџџxџџџы№ Wingdings 3џџџџ( ш€€џџџ?џџЩ€€€ џџџ?џџ0fstop();€€€џџџ?џџ0stop();џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџйџ 5 #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinputbg_mc = this._parent.inputbg_mc; this.userbutton_mc = this._parent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userTextField_txt = this._parent.textfield_txt; this.userTextField_txt.autoSize = true; this.userinput_txt = this._parent.input_txt; this.attribute_array = new array(); this.bHasFocus = false; this.setFocusIntervalID = -1; // variables to store the inital position of each item if (this.userinputbg_mc) { this.inputYPos = this.userinputbg_mc._y; this.inputXPos = this.userinputbg_mc._x; this.inputWidth = this.useriSymbol 11 џџџџцSymbol 12џџџџџџџџ2Symbol 13џџџџџџџџ>€Symbol 14џџџџџџџџџџџџ 3Ew ўџџџ  m9 !"#$%&'()*+,-./012345678ўџџџ:;<=>?@ABCDўџџџFGHIJKLMNOPQRSTUVkXYZ[\]^_`abcdefghijўџџџl–nopqrstuvўџџџ€ˆ{~}§џџџ„nputbg_mc._width; } else { this.inputYPos = this.userinput_txt._y; this.inputXPos = this.userinput_txt._x; this.inputWidth = this.userinput_txt._width; } this.buttonYPos = this.userbutton_mc._y; this.buttonXPos = this.userbutton_mc._x; this.buttonlabelYPos = this.userbuttonlabel_txt._y; this.buttonlabelXPos = this.userbuttonlabel_txt._x; this.textFieldYPos = this.userTextField_txt._y; this.textFieldXPos = this.userTextField_txt._x; // should the button and textfield be displayed? this.bDisplayButton = true; this.bDisplayTextField = false; // Should we send the contents of the input field everytime a key is pressed this.bKeystroke = false; this.PositionItems(); // text format this.m_cTextFormat = undefined; } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } ///////////////////////////////////////////////////////////////////////џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSprited …МЛddџПo textbg_mc€€џџџ?џџЁS€€ Text BGџџџџOџџџ€€џџCPicText:  (аRTahomaџ"(PSearch input_txt€€      !"#ўџџџ%&'()*+,-./01ўџџџ3456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnўџџџpqrstuvwxўџџџz{|}~€џOOџ€€џџџ?џџџџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicShape€€ џџ@ 6 6 7љџџўџџџџ@ 6 6 §џџўџџїлџуиЇиљЯўsџ4ЙЙrџЊў4ŽЌў4X@ЈП1sџд €џ€€џ4dVŽ4GGŽV4crџT4ЙGЊўŽ і€э€џѓ<ќФ€€џџџ?џџt+€€ Layer 1џџџџџ?џџvF€€ Input TextџџџџO€џџ€€€˜P ˜Pdџ_ button_mc€€џџџ?џџ€€ ButtonџџџџџOOџ€€€€//// // // Used to position the items based on what is to be displayed // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.PositionItems = function () { var oldTxtOffset = this.userinput_txt._y - this.userinputbg_mc._y; if (this.userTextField_txt != undefined && !this.bDisplayTextField) { var deltaY = 0; if (this.userinputbg_mc) { this.userinputbg_mc._y = this.userTextField_txt._y; this.userinput_txt._y = this.userinputbg_mc._y + olSymbol 59џџџџџџџџџџџџ%6Symbol 6046џџџџ#І8Symbol 61џџџџџџџџџџџџщЖ8џџџџџџџџџџџџdTxtOffset; deltaY = this.userinputbg_mc._y - this.inputYPos; } else { this.userinput_txt._y = this.userTextField_txt._y; deltaY = this.userinput_txt._y - this.inputYPos; } this.userbutton_mc._y = this.buttonYPos + deltaY; this.userbuttonlabel_txt._y = this.buttonlabelYPos + deltaY; this.userTextField_txt._visible = false; } else { if (this.userinputbg_mc) { this.userinputbg_mc._y = this.inputYPos; this.userinput_txt._y = this.userinputbg_mc._y + oldTxtOffset; } else { this.userinput_txt._y = this.inputYPos; } this.userbutton_mc._y = this.buttonYPos; this.userbuttonlabel_txt._y = this.buttonlabelYPos; this.userTextField_txt._visible = true; } if (!this.bDisplayButton) { this.userbutton_mc._visible = false; this.userbuttonlabel_txt._visible = false; } else { this.userbutton_mc._visible = true; this.userbuttonlabel_txt._visible = true; } } /////////////////////////////////////////////////////////////////////////// // // These commands are used to disable or enable certain aspects of the search input // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetTextFieldVisible = function (bVisible) { this.bDisplayTextField = bVisible; this.PositionItems(); } GenericSearchInputClass.prototype.SetButtonVisible = function (bVisible) { this.bDisplayButton = bVisible; this.PositionItems(); } /////////////////////////////////////////////////////////////////////////// // // Used to change the width of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetWidth = function (nWidth) { // Calculate the current size and location of the input_txt field as a // percentage of it's background var percentWidth = this.userinput_txt._width / this.userinputbg_mc._width; var percentX = (this.userinput_txt._x - this.userinputbg_mc._x) / this.userinputbg_mc._width; if (this.bDisplayButton && this.userbutton_mc != undefined) { this.userbutton_mc._x = (this.userinputbg_mc._x + nWidth) - this.userbutton_mc._width; this.userbuttonlabel_txt._x = this.userbutton_mc._x + (this.buttonlabelXPos - this.buttonXPos); var nSpace = this.buttonXPos - (this.inputXPos + this.inputWidth); var nInputWidth = this.userbutton_mc._x - (this.userinputbg_mc._x + nSpace); // Resize the background if (this.userinputbg_mc) { this.userinputbg_mc._width = nInputWidth; // Resize the input field to take the same percentage space and set it's location this.userinput_txt._width = nInputWidth * percentWidth; this.userinput_txt._x = this.userinputbg_mc._x + (nInputWidth * percentX); } else { this.userinput_txt._width = nInputWidth; } } else { // Resize the background to take up the full space if (this.userinputbg_mc) { this.userinputbg_mc._width = nWidth; // Resize the input field to take the same percentage space and set it's location this.userinput_txt._width = nWidth * percentWidth; this.userinput_txt._xrTextField_txt != undefined && !this.bDisplayTextField) { _parent.debug_trace("Hide Text field"); this.userinput_mc._y = this.userTextField_txt._y; var deltaY = this.userinput_mc._y - this.inputYPos; this.userbutton_mc._y = this.buttonYPos + deltaY; this.userbuttonlabel_txt._y = this.buttonlabelYPos + deltaY; this.userTextField_txt._visible = false; } else { _parent.debug_trace("Show Text Field"); this.userinput_mc._y = this.inputYPos; this.userbutton_mc._y = this.buttonYPos; this.usplayButton = true; this.bDisplayTextField = false; // Should we send the contents of the input field everytime a key is pressed this.bKeystroke = false; this.PositionItems(); // text format this.m_cTextFormat = undefined; } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////// = this.userinputbg_mc._x + (nWidth * percentX); } else { this.userinput_txt._width = nWidth; } } } /////////////////////////////////////////////////////////////////////////// // // Used to set the focus of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetFocus = function () { Selection.setFocus(this.userinput_txt); Selection.setSelection(0,0); } /////////////////////////////////////////////////////////////////////////// // // Used to check to see if we hav focus // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.HasFocus = function () { return this.bHasFocus; } /////////////////////////////////////////////////////////////////////////// // // Used to change the decription in the textfield // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetDescriptionText = function(newText) { this.erbuttonlabel_txt._y = this.buttonlabelYPos; this.userTextField_txt._visible = true; } if (!this.bDisplayButton) { this.userbutton_mc._visible = false; this.userbuttonlabel_txt._visible = false; } else { this.userbutton_mc._visible = true; this.userbuttonlabel_txt._visible = true; } } /////////////////////////////////////////////////////////////////////////// // // These commands are used to disable or enable certain aspects of the search input // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetTextFieldVisible = function (bVisible) { this.bDisplayTextField = bVisible; this.PositionItems(); } GenericSearchInputClass.prototype.SetButtonVisible = function (bVisible) { this.bDisplayButton = bVisible; this.PositionItems(); } /////////////////////////////////////////////////////////////////////////// // // Used to change the width of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetWidth = function (nWidth) { if (this.bDisplayButton && this.userbutton_mc != undefined) { this.userbutton_mc._x = (this.userinput_mc._x + nWidth) - this.userbutton_mc._width; this.userbuttonlabel_txt._x = this.userbutton_mc._x + (this.buttonlabelXPos - this.buttonXPos); var nSpace = this.buttonXPos - (this.inputXPos + this.inputWidth); this.userinput_mc._width = this.userbutton_mc._x - (this.userinput_mc._x+nSpace); } else { this.userinput_mc._width = nWidth; } } /////////////////////////////////////////////////////////////////////////// // // Used to set the focus of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetFocus = function () { Selection.setFocus(this.userinput_txt); Selection.setSelection(0,0); } /////////////////////////////////////////////////////////////////////////// // // Used to check to see if we hav focus // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.HasFocus = function () { return this.bHasFocus; } /////////////////////////////////////////////////////////////////////////// // // Used to change the decription in the textfield // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetDescriptionText = function(newText) { this.userTextField_txt.text = newText; } //////////////////////////////////////////////////џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџдJџg* #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinput_mc = this._parent.input_mc; this.userbutton_mc = this._9Б'ф~NnШЙ"gфŽцћІž ЇфVpМ,§(9/ёZ‹{6œІЈ‰Šek”œZa­ƒкЁ†Ј%jŠкЂЦЈ5jŽкЃЉEж8ЈMj”Z•kРdm”šжЎ“КзлП†€ЕoД24kD9N”5QYлx q\љ‰сЁW€Л†ЧоиьёЗї ˜‰яiйY<9Ч r~Єд9 ѕŒдЃe“”Лeт^жlм?ЙўTЅїЦ3ˆГх>NC?žYŸ™нгрЉЇЄ}–я›v"9n!rнЂрЬГE!ч„w„g^(‰@‰qKдš‹ЅШ›KАў“Z.С\a їQчЋ­[d`,Т:ЇRї”c§šѓFфщчES‡Ÿh(Їhœ/дžџцЈф3%ўшћеы+єZџ5[eLV›[I\ˆБтОCb*АЦ жФœоБц"Йœ€срŠœ‘Лд7Ш%9%Зф˜\“sr_щГёl‚š 6Јj…š)uN>J aœr˜šЂЖЈ1jšЃіЈAj‘š”5Y•5jYїПц §ЗЦ7ъмЧІжDХК Ўч}еањIжЁКкНм œ 4<њц(У]Цžxoк#Џєў|џlБ]0цQ–У7V‚ћ$мW|ЌЬ5їРgžЈ№Ш>UщЙї`oР§и›ЯUњm>[юЗёL‰ЯZднГ Џєуoј†OкIњFA@кщТ xGђо0xGxцyЁб(hыУkƒžСЕЕ5NQПPЯžuЯx…ЈgЪ|"э|эX ЖО Œ7ъsмк’Ю˜Ђ’Nџ•0G%нвwъї~f9О‘§с8GдqkrЈккЊєэ\Lн1 Б%ЦТŸыb/|ƒм‡!зWфŒм п—ф”м’cr Юq/ѓцГд}Ѓвk§ijƒЁVЪ\’Ё›ЄудЕDMQ[дЕFЭQ{д ЕHMR›дЈv‡і>7ф5їЙ5tшЧџв7ф\ яIiЃЮЅАЮєДКЖќ5е7PzЙЗссз}k”сё.“ Oukxђ}ПM)œъ•S2+s)ќ†DњЦё2ЗДхЪЅТ›љ†те›ЯWњoЦ=QЯ•њ­У|жЉŸє“~щЇ ќгOQu}#у|qЦ,ИЦЁ…w`L‚(ŽB‚qIm§BЮЉтк‰9ШBм›VШБ‰Јrm…є4њ‡ˆК5Ь†kuќ"љDaŠN>};ЂЁзЧ5љLCўaн/й_Е='ъЇjо%0VЪИEЩбjѓј1&жwr pqО8џo—О!Мƒ<2|2N’[rLЎЩ9ЙзhšЈ№dн+ы$ЕBЭP;дЕDMQ[дЕFЭQ{д ЕHп 6YЅVЉY^ѓЈскћcmtпјcЖpЫgKпр9ВNДIKb_w.Ѕѕ“С‘єСрn4ќŸ\ЮАyІч›'пOyoЈsЩŸ%Г#і—.\ЙЕеŸ•ЙЅ ў•‰1 ЦБоы”|УгYjчjрж UˆŠ€ИЗa§ЙbПьгEў™Ї 2рєSJО‘yЎ(Џ+ж~^К"БіЃ$юц(ŽЫОЈФДuЃ(.ыBCQИ<ы|aм МvCяЫужŸSйWњQ_eџ‰E0Љƒ0“ј ,‰)qV0V0W9\€С 9"WрŒм‘CrINЩ­р\“srO P дЕAP+eГТP;лzŒїЃ–Ј)jk†ЭГ2пЈЧ7И†Cї[žьЗё ѕјытољк|уО:љrФз‘+"пxМЫDuœТk‚8^dѓBПЭкœеeИ[Щ$Џэev!{Ыч-?Rю”xЂТ-ѕtЅGій*яѕчЊ§6œ9GъaЙ_мˆШљђzDю—з#sПК•ѓеЕЈœ/ЏХ –ч~umyЮззтЖ}sm".чыыё9п^пЦјюкЊœoE$lc‹}KШљюъЊ­п^ХБЋ‰9J‹эъ„­пдU [ОЖŽЪ„Э_е‰8^OT$lњђND}я%Ž5№љЌћС§њњЬc-FРŒи ‰Ѕ‚ЉР—X+˜op p>Ш 9"WрŒм СЅрмђњp\“srO P дЕAP+д ЕC QKд”Ь7Ј5jŽкЃыцЪ}*ЕљFŽSєљ”лшк—’Обp]ДЅјЮ ц‚ЌAiъв7>˜fxњCr;пІ}'›ћ/БyiрЌ&э?‰щјщœG9Џ+›ДЋм>ъPХТј.ЉЇ*=ВрkЯC?ЎlМp-p rŽm_мЇwьјъFдіЏoDяјњF ZЦђпмˆлёэˆјэˆпўД*яЛ иOиёнOЋѓОgмX§е;ОЛ‘Шиўн$Дˆы8v}ѕv%’Жw лзVч~ЋЮеЙмЧЏтИ№n'еъе9пдIл”уIxœлЗ%дї’Џ]Я{[О:Ÿ]єQєUэŸшЋкoр,jp!n*^;bШcРД_`MЬір@pANШ 9’|‘;rH.С)Й%ЧWЯИ@юЉjš 6Јj…šЁvЈ!j‰šЂЖЈ1јЦпЈЇ.кRЏ‹jOю;И-}ƒsU ЪяјjxіС—?5<$цSFw‚сIсГmžћ„;кМ |УЭІУаEM^ъяёxчБЧњЬŒ+ŸьНЋbfшўŠyбG+%œЈZšzІк3ыќU_x‡џЦKз7q=DxЧW?ElџцЇHш3 Г§лŸbЫБ—їнЯ+ђ~јiМbeоw?%Р/jbчї?%b?'b{ѕЮяo$Т[„‡§гW№—Єšѓ…ч}%ЏN\УљRлБ}ыИšД§›kIxžмGР{ўPмєyoх9ЕŸйК?uМОI р"qfФN`(А$ЦиЏСћФ.Р‰р†‘+rFюР!<у+rJnЩ1Й&чфž Ј jƒЁVЈj‡ОA-QSд}ƒZЃц8ŸB vWчSєyи;h Мєяљз}=ehYѓНoк<лЭаю%Й~c8oxВыTp n{ЭГiп›Йхb›.mђђрeM: ukкqЈcЋŽƒ_щЛш›!S|їTЮ 9P5/њX•уЊе.)gЎzdœПцГітuhыFрц/ лњеOслО§92їлŸЃ1;п§МО—ї=єњ§Яё;?ќМ2O‰UЛ~јyіWэќзЯ Œ]lј9qчаНт%мfЌоЅёс/№Дj\ЧЙЃќЅf[ƒЧрЋ/ЎёИЕџр76ъћџњоЋі˜ќ\В­§ЬВ?Ђ…Їо€ŸвK…/‰}VХJ`І`ї/ЅРиJœ‰9Б'ф‚œrDЎРЙ#‡ф’œ’лЋючЋ—Іœ!чфž Ј jƒЁVЈj‡Ђ–Ј)j‹ЃжЈ9Й~ƒZЄ&хК/j•šх5O_ПбР ›k|CЬУrѕ=єкuцякО№БсЁWИжw˜сБwЦžшjkxК‡ЭГЯЕyЎ7ЧЃШ/8лМ4Ш poвq˜WгWGК6}eшВ:Ь|s№вЏ‡:dTB3U3ƒTлG­vˆ§ьъ’•ЇЎЙ&ŸНюž~ў†WЦХŸќВПј)`§—?nјъ—_§КљЋ_ТЖ|ѓK"rЫЗПFm§юзшmп§Гэћ_—#bsмЮ§сз88—ѓУЏ+ЖЫјўзЙьЧoџс—Йп!Оџћšјў—јэѕЧJџј9~ћwJфЊ­f%ާ^Фзѓ?ъы§о{ŠЧњМ+№yыє}Э§Ž}W0X(xbGЬTќˆ%1%ЖԘXs`Oф„м€#rEЮШ9$—ф”м^uˆ=AЎЩ9Йџ~A-Pд5B­P3д5D-QSд5F­Qsд5H-ZЏ3Џ{/Н^пИM6qгЫh}ƒ5y ПџD§~Рšћк:iюkыkxфЁ˜уОЩ†ЇКO7<ѓ‘НЭsbN…œ3Яфuƒ:№hђЪpЏІЏŒєnњк(fЏtППгЈUЏє[t чд(ќVшЦŠщў{ЎЮ 9xmnфсkбЧЏ;ХКБdхщŸ\Юўф–xюgїфѓПxІ^ќХ+ѕтЏОi—~ѕKџтЗ€Œ/ѓЯњтЗРЌ/ \ѓеПƒж|§яЦZФКЏџКю›‡fѓя0ДaыОVZn#Т7|ѓяЦFЦЗjЋlGbПОˆТsoxMэsЂё?$ДџeѕZuг|–њ>+YїKєЏЩО LT,jАQ1#vФP` L-1Xs`OШ9!7фˆ\‘3rGЩ%9%Зф˜\“srO P дЕAP+дŒZл ЬЅ<ї)ЕEQkдЕ'яkЃ&ЕїЕQГњwїмtšпіє щжО!Пы‹псјю9фї+ЉkП:pнœSбд8zЭ7ДяНацyŽUИЈОБ зІЏŽР5e„OГзGћ6{cŒoѓNcМZtхзін Ћ_ъЗ(Зы„Р#}этОЕxMСЏм2;џнхГіVиэЏœrАjAиЁъ…с‡Ћ#Ž\uŠ>zuIЬБkЮБЧŸ]_wтКkќЩыЫV тOоp?uУ}хЉ"NЃ=}УсЕ ‘pњ†7к:Сc‰ЇoјАЕ oDрwoмЩhЬgрsnњќjпФqЋ~ bBlˆ‘ vРX L‰-0&жФœи“rANШ 9Њ˜ДŸœ‘;rH.Щ)Й%Чфšœ“{j€Z &Ј j„ОAЭP;дЕФ1ŠЌmXеD;P‹д$ЕI6є_ђћОЈs§яі! ѕк5ЃЕпПё4ЦЕїЈДСїіД}Q­qМ5м№Xчqw2œixІч\БŽЃ=Ц*/Xх‡{6}оёкHщ~Э;ѕoўцИ€ohёіxџ–яŒїoеy|Р}]&Ж~oRPыї'ппе6фўІ„нп}jx›юг"јpzфЮŒjћбЬшv=gХДћxVlЛ^Гcь5gљƒŸŠXё`яЙ+ъ#"ўсОѓтъSš§•ї/F ,Ф1ьKмˆЁФ“иcbMЬ‰=9 ф„м#rEЮШ9$—ф”м’crMЮk=уЕ‘д„G“ŽVЙЦ Ш5кcŒвўSjJЃ<й•ZCmу-j|ЧаІцоjДvЖўяН}gŒўJD@њ†\k^;ЇвЌцžXЕЦёЧ“ќооЧмOЋМ#з1Ÿ”ѓБ2чpЖyQд9DЮ}pыньЕQŠwtC4k|`ЫЗ'Е|gbpЋw'…Дъ29єОїlУю{JxыЎS#юџ`Zф§нЇGнпcFt›эbјШ.іžГ–?№ёьИЖЯ‰kћЩœэzйЧЗћtюЪvНч‰xАЯМUі™_}ч'<дwС­ЃžѓOŠ[їyеƒ}58ѕ™ПиI‰)Б%ЦФš˜{r@.Ш Й!GфŠœ‘;rH.Щ)Й%ЧŠgty5@-а3dЎA­дфъќ+5ЅЎ/я‚1Ъ;дЕG ЊЕ'ф=єJMД™uMдFцњй~{ЈЯ7dmTћVcопі:kлœc­{ŠІ>ЪБЉRчPцV˜ƒВюЅŽWЌМуЭБМY{Е'Му>xGkzG7щ3cк(о!ќЃэ'№ъКWФЗы=—!ѕ/Ю…›МDы+Vлс\К›ЃŽgZѕMѓ˜ФEт$qЋѕ‹^Т——cb-<иУ3f*žбm:Й GфŠœнфржЏљ›Ш3Ќ<уY Uъ/rЭ†ЈkШz(5EmQcдšfНW1Šў[ЗзѓjЊoИ†Cж8”ћлъŒUфX…s^œћъЊЬЋШœCдGy]рѕѓэœ?cЮa]#uoњŠъЈ‰еЩ;рšМ#ЈeчšмzДЅ.ЉЯкмЃ;s™2їўkсђЖЬAш!J"ѓžЕч„•ЇШхi­qPАQђŠкмт“9ФRцТ/”~бН&Чаx†&Чш<БnžaэЏфѕƒZАЎ…R3ъмы'2зѕPц˜GСїѕД}AЮПR“ЃˆћйДпЈљэ%о +rъЦœ њs}ЃОœC§nbёЛАєs~o4kзќnЖwq?Оџр%ЎПсu@ЎхрXtЦЄЪxхљ>Еу•—ЩљїІ‡[ч>Эо-Ч,JюёЦ-ЕоQ3niШ?p МйC>0QЦ2ЬGДСsЄўјДу =џПёxУ}аb lЋc`EМЌН‚Й’_дыVу’Ю—М3AдЌдБ ЙхИДfl"<ЃЖІСyзкёЩѓb}(5D-iзl(kНкНDэе~?`+ёЛKъКћЌжmдŒQЈo§яі# ѕ ™spЌ"CEоЋЂЭ98ŽљА}1^ЂоЏТЙЎбa=‹ѓВr )t1њЈѕцЏŒ№D”zRr7FГжЮœV;niœ іqџ‡3EЂzˆжGb@§T­‰№МЈ yЎ№к*B=wjŽпэћV§ві]­UHldNAмЄWSm C“_мф59†—€Kz†ф—\“smžЁzFЭкPj†кЁ†Ј%ЮЁP[дЕFЭis yяМўНЂЗпѓŠв7XC’ѕQŽU”œЃЖ>ЊЩ9ФœЌ\?Ъяnуšц”ЏpюЬЮ№ьЧЪšŽіт~7ŒYФtz‡k“—‡,kкqsO\М0—яеьuјцiUя№oёж8F@‹wPћшб9ХћЖ Х+КР+0Gя&ф‚œrDЎШ™7ИЃ_x‚KrJnЩ1Й&чф^ЎэЂ&˜“R#дŠє jHЎ)ЇЖЈ19‡BэЉu 1їjkh}CŸќ5OhЬc}ƒcЙ–C­sШп—ыG1З"ю­—5RЮёЛTxЯП;–МsŸШ;АNXzЧBш„ї+‰qK“—1nщ0ФzтН nЈ“Й7}u8ƒšљGѓ7FQ‡ТCЈMХCЦљЕ|{œXPу!ЬEо|_а9ДNНCї­Лژ‚э:жkCюЁАюПК/№‘x;‰Ѓє щФœиУ+Ц‘ †є №„мBё Щ#9%Зф˜\;ƒsrO P в3И–œZЁfЯxLмПFM)п]ЎŒOx_6Е'ї€ѓ}ђ~™kPЛдАдscДЏ?чЯ# qжŒUjжуw˜Фwr№7Іхo#t0мї8sFо_Яя–ц=\<ky­ЋцЋRЌ•r~Z‘s-‹›М4p ‚з с!Њ,ƒоУн›Н:œы‘НЈIс!F{Зш4кЇЎm-оуЫkuЌњHЭкБVШEМ‹ін їu™(#овp`Нйя>ў{џћпіияїEтС–)Ёр&зlеј№%жФœи“яцFK^Ф§рŠœ‘;њ…+И$Ї"ПЧфšљ&ЙЇЈj‚к F86ЁfЈjˆZЂІфoГQkдœ\ЏA-Ъяіb-Žљ1ЎuТ3фј„šжџю<в;Д9‡\ЦпT‘kЯхx…П]Ск6Чтћщ…wШМƒ:˜hxВчсё]o1ЅV8зЦ5JўётЇ&/ X‚kЎGƒK›v‚Ъ{ž\›сžИfЏЃ‡И7}„GѓзGz4ёњHOx‰'ж.c§2ќфЭбо-Ёi„OKh\ФлhпыKнЫhѕЮ8п:Ч4ћ~šmэёЛiћц>дэЃш‹Ф-1RBСMтHL‰-1&жZьЩ9!7фˆ\‘3r'y$ЇфжQјыЯї%їдЕ@MPдˆтJžAЯ –45ЇЉ59>‘kЪЉIэŠžkмyhшш2чs+r=ыOœѓТМЌјz9ПТћ‹8?&НCŽYИ6x4jтœO›lxК˘kСwОIџр5‡ZrhђBПEM^ьЯ€ЮxmДИщЫ—4…—4э0˜свДуЅа'УUj­[Гз†3–AЧ2м›П1BD‹7FК#љ>чц…и<ѓсtфЊд“Эs+вОП‹v.t'Ђ єзф…>ѓЁEЦ‚&/і]аєЅ~ 56}ЉџТІ/ї_и њm-7ы0РБYG„lЙнqря…SѓWжFGlпЭQл—пыГњXЌˆ1$–S`+q–И“ЩЙ™ Ž$_фnŽMћ^ф’œ’[r<\“srO P дЕAP+д ЕУqo'C‘g№ЗQЄgPsдžМWžšЄ6хјDж5nЅo§ё;ƒ€uЮA^ШsBŽ'e­CжIЕyыМW‘ktИІ”9'Џ#œ‡че?ФoНё^Zс!6OwЗЕyКЧ›ЇUyЖч ›чzЮ„юv6э?aЬbрћ'Г›<п‹1Їщ ŸжіM_ь­ЙM_ьЃЧЭh1тv}Xђ˜Ф[тO.$/’'rЦяЇOKr:мЊ^б•k2˜_Pд5!Ч%д 5CэPCЬaЕyЕЦњšЌiXЯŸHЯаs;у }U™sШёŠЖжбwАоСњППнЩ\“9'Ў#ЙvGњЧБМПqИсqц ]ј{:ќM.ХGžњ`ЂЭSн&й<нšЃіlmžЇˆјэ‡S›<ћ‘ŒiMžћШ*zbП&І7mпѓцxЧтБg4}ОžhcwcммєѓcЅЏuњ-ћ/Z-fъv\%оlЩ‚щфŒмMРw“KrJnЏxМ39'їв/Ј jCŽKЈjGж@5yЦMža]гОбX}ыЯЛ3hsщВжЁЭ;˜7ЊЕвЖЌ[сwЈцz>~_,kœЇхš~gѓPцМЏ‘5sшчMъˆПЅƒ1ngњчсFтЗYј;ЃmžxoДЭ“я1ˆxЌЭSяГyЊы8›'loŽёMžў`Мšэ MžюІЧЭд‡1Ќ[-іфМ0GфŠœ‘;rH.Щ)ЙUНтMrNюЉjš 6Јj…šЁvЈ!Ек–кЂЦДy†:чZSгžЁчwЦ ўшЋJяЙ‡Џ7щkJярќп—ыб9.эˆљvЎеQќЃъэ^фя)p=єѓъЇXиЧ№ШыМп‘ум№Ц УcoQoœЫgPCmЇ6лУmžшмPŒАyђнšh‚m6OдчsфёjЋХ}зіSѓXC8ђИ‚Л‚Йф€œH~Ш9“ќ‘KrJnЩ1Й&чфžљ…тm„_P#д 5CэPCд’є jŒ9.5'=ƒZдњ…юєьОѓЯ—ОAžЌНCжJЙnыїИuo^/ИF‡плМѓ щ\cЪК—’ƒ(ђ!Ў=дзљ№ZдЫ№А№ъыŒyЂўŠО6ОбзцлњЃŸЭЃjу1Э6[яkŸ{Зo[ї­ю~Cxi1mw'7фˆ\1Ш9$—ф”мjН‚мSМ–(~бњ j„ZЁfЈjHЎ•5ањAЎЕ^СБЌЈ~!ђ jGЎчвфњифя=ЭяШЛIя`Ћё:5S+џhЉŒ_šЕтм‹ЌP;ЌёКƒ\Е-uХ ЦЄЇаWЬiѕјяУ@ђУVђ&y$Їф–“kщдsQjBцв/n•cPsњпн€Е(у–кќCЛ4aў!жЈsЬЪ„z‘ущ#Я0ЄО˜—Ш юjRПƒzy<Б•ќI>y>AЮUЏh!ыд_TыЭ‘УЪq‰VcwїйЂzk$ЗкмCёe}:5ЁxHэFжQЅдz ы"uт>ъNџ^ 8їaХ™ЈUSkŸ якмBыдŒє jIъЪZoњў?ЩБlЩЛдЖў!зœђ#Ч2дѕ$ƒз"m0—•Й ЗѕјЏР@p$Йбђ%y”!}B›WPšњE_H§ШіŸs†4Ў'џ|5!parent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userTextField_txt = this._parent.textfield_txt; this.userTextField_txt.autoSize = true; this.userinput_txt = this.userinput_mc.input_txt; this.attribute_array = new array(); this.bHasFocus = false; this.setFocusIntervalID = -1; // variables to store the inital position of each item this.inputYPos = this.userinput_mc._y; this.inputXPos = this.userinput_mc._x; this.inputWidth = this.userinput_mc._width; this.buttonYPos = this.userbutton_mc._y; this.buttonXPos = this.userbutton_mc._x; this.buttonlabelYPos = this.userbuttonlabel_txt._y; this.buttonlabelXPos = this.userbuttonlabel_txt._x; this.textFieldYPos = this.userTextField_txt._y; this.textFieldXPos = this.userTextField_txt._x; // should the button and textfield be displayed? this.bDisplayButton = true; this.bDisplayTextField = false; // Should we send the contents of the input field everytime a key is pressed this.bKeystroke = false; this.PositionItemsuserTextField_txt.text = newText; } /////////////////////////////////////////////////////////////////////////// // // Make the search send a command on every keystroke // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SendReplyOnEveryKey = function(bKeystroke) { this.bKeystroke = bKeystroke; } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////// // // Make the search send a command on every keystroke // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SendReplyOnEveryKey = function(bKeystroke) { this.bKeystroke = bKeystroke; } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.GetSearchInputText = function() { return this.userinput_txt.text; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(b//// // // Used to position the items based on what is to be displayed // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.PositionItems = function () { var oldTxtOffset = this.userinput_txt._y - this.userinputbg_mc._y; if (this.userTextField_txt != undefined && !this.bDisplayTextField) { var deltaY = 0; if (this.userinputbg_mc) { this.userinputbg_mc._y = this.userTextField_txt._y; this.userinput_txt._y = this.userinputbg_mc._y + oluttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); this.bHasFocus = true; } GenericSearchInputClass.prototype.onKillFocus = function() { this.bHasFocus = false; } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter if (fhgeneric_comp.bHasFocus) { fhgeneric_comp.onRelease(); } break; } } GenericSearchInputClass.onKeyUp = function () { if (fhgeneric_comp.bKeystroke) { if (fhgeneric_comp.bHasFocus) { switch (Key.getCode()) { case 33: //PageUp case 34: //PageDown case 35: //End case 36: //Home case 38: //Up case 40: //Down break; default: fhgeneric_comp.onRelease(); break; } } } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } button_mc.onPress = function() { fhgeneric_comp.onPress(); } button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } button_mc.onDragOver = function() { fhgeneric_comp.onDragOver(); } button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } input_mc.input_txt.onSetFocus = function() { fhgeneric_comp.onSetFocus(); } input_mc.input_txt.onKillFocus = function() { fhgeneric_comp.onKillFocus(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€hhhџџџџРРРџ Дz PublishRNWKProperties::speed256K0!PublishGifProperties::PaletteName"PublishHtmlProperties::StartPaused0%PublishFormatProdTxtOffset; deltaY = this.userinputbg_mc._y - this.inputYPos; } else { this.userinput_txt._y = this.userTextField_txt._y; deltaY = this.userinput_txt._y - this.inputYPos; } this.userbutton_mc._y = this.buttonYPos + deltaY; this.userbuttonlabel_txt._y = this.buttonlabelYPos + deltaY; this.userTextField_txt._visible = false; } else { if (this.userinputbg_mc) { this.userinputbg_mc._y = this.inputYPos; this.userinput_txt._y = this.userinputbg_mc._y + oldTxtOffset; } else { this.userinput_txt._y = this.inputYPos; } this.userbutton_mc._y = this.buttonYPos; this.userbuttonlabel_txt._y = this.buttonlabelYPos; this.userTextField_txt._visible = true; } if (!this.bDisplayButton) { this.userbutton_mc._visible = false; this.userbuttonlabel_txt._visible = false; } else { this.userbutton_mc._visible = true; this.userbuttonlabel_txt._visible = true; } } /////////////////////////////////////////////////////////////////////////// // // These commands are used to disable or enable certain aspects of the search input // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetTextFieldVisible = function (bVisible) { this.bDisplayTextField = bVisible; this.PositionItems(); } GenericSearchInputClass.prototype.SetButtonVisible = function (bVisible) { this.bDisplayButton = bVisible; this.PositionItems(); } /////////////////////////////////////////////////////////////////////////// // // Used to change the wi///////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.GetSearchInputText = function() { return this.useri(); } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Used to position the items based on what is to be displayed // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.PositionItems = function () { if (this.userTextField_txt != undefined && !this.bDisplayTextField) { _parent.debug_trace("Hide Text field"); this.userinput_mc._y = this.userTextField_txt._y; var deltaY = this.userinput_mc._y - this.inputYPos; this.userbutton_mc._y = this.buttonYPos + deltaY; this.userbuttonlabel_txt._y = this.buttonlabelYPos + deltaY; this.userTextField_txt._visible = false; } else { _parent.debug_trace("Show Text Field"); this.userinput_mc._y = this.inputYPos; this.userbutton_mc._y = this.buttonYPos; this.userbuttonlabel_txt._y = this.buttonlabelYPos; this.userTextField_txt._visible = true; } if (!this.bDisplayButton) { this.userbutton_mc._visible = false; this.userbuttonlabel_txt._visible = false; } else { this.userbutton_mc._visible = true; this.userbuttonlabel_txt._visible = true; } } /////////////////////////////////////////////////////////////////////////// // // These commands are used to disable or enable certain aspects of the search input // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetTextFieldVisible = function (bVisible) { this.bDisplayTextField = bVisible; this.PositionItems(); } GenericSearchInputClass.prototype.SetButtonVisible = function (bVisible) { this.bDisplayButton = bVisible; this.PositionItems(); } /////////////////////////////////////////////////////////////////////////// // // Used to change the width of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetWidth = function (nWidth) { if (this.bDisplayButton && this.userbutton_mc != undefined) { this.userbutton_mc._x = (this.userinput_mc._x + nWidth) - this.userbutton_mc._width; this.userbuttonlabel_txt._x = this.userbutton_mc._x + (this.buttonlabelXPos - this.buttonXPos); var nSpace = this.buttonXPos - (this.inputXPos + this.inputWidth); this.userinput_mc._width = this.userbutton_mc._x - (this.userinput_mc._x+nSpace); } else { this.userinput_mc._width = nWidth; } } /////////////////////////////////////////////////////////////////////////// // // Used to set the focus of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetFocus = function () { Selection.setFocus(this.userinput_txt); Selection.setSelection(0,0); } /////////////////////////////////////////////////////////////////////////// // // Used to check to see if we hav focus // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.HasFocus = function () { return this.bHasFocus; } /////////////////////////////////////////////////////////////////////////// // // Used to change the decription in the textfield // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetDescriptionText = function(newText) { this.userTextField_txt.text = newText; } /////////////////////////////////////////////////////////////////////////// // // Make the search send a command on every keystroke // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SendReplyOnEveryKey = function(bKeystroke) { this.bKeystroke = bKeystroke; } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.GetSearchInputText = function() { return this.userinput_txt.text; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(buttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_mc.input_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); this.bHasFocus = true; } GenericSearchInputClass.prototype.onKillFocus = function() { this.bHasFocus = false; } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter if (fhgeneric_comp.bHasFocus) { fhgeneric_comp.onRelease(); } break; } } GenericSearchInputClass.onKeyUp = function () { if (fhgeneric_comp.bKeystroke) { if (fhgeneric_comp.bHasFocus) { switch (Key.getCode()) { case 33: //PageUp case 34: //PageDown case 35: //End case 36: //Home case 38: //Up case 40: //Down break; default: fhgeneric_comp.onRelease(); break; } } } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } button_mc.onPress = function() { fhgeneric_comp.onPress(); } button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } button_mc.onDragOver = function() { fhgeneric_comp.onDragOver(); } button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } input_mc.input_txt.onSetFocus = function() { fhgeneric_comp.onSetFocus(); } input_mc.input_txt.onKillFocus = function() { fhgeneric_comp.onKillFocus(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€n0"PublishQTProperties::PausedAtStart0џџџџќџџ CColorDefџ€џ€џ€3џPя€fџPя0€™џPяH€ЬџPя`nput_txt.text; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(buttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } // set the text format to search input box GenericSearchInputClass.prototype.SetTextFormat = function (cTextFormat) { this.m_cTextFormat = this.userinput_txt.getTextFormat(); for( cItem in cTextFormat ) { €€extField BackџџџџOџOџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€ƒ–ВџW€ŽЎўѕьфлббб0єшО/б/бq0vB/q//q/0 BqбсюлѕнД0Šў жэДџџџ?џџ€€ Layer 1џџџџO€џџ€€џџCPicPageџџ CPicLayerџџ CPicFrame€€ if(cTextFormat[cItem]!=undefined) this.m_cTextFormat[cItem]=cTextFormat[cItem]; } // try to keep the orignal width but change the height according the text format var nTxtWidth = this.userinput_txt._width; var nTxtHeight = this.userinput_txt._height; var nTxtTop = this.userinput_txt._y; var nTxtLeft = this.userinput_txt._x; var cAutoSize = this.userinput_txt.autoSize; this.userinput_txt.setTextFormat(this.m_cTextFormat); this.userinput_txt.setNewTextFormat(this.m_cTextFormat); this.userinput_txt.autoSize = "left"; this.userinput_txt.autoSize = cAutoSize; this.userinput_txt._width = nTxtWidth; this.userinput_txt._height = this.m_cTextFormat.size + 6; this.userinput_txt._x = nTxtLeft; // Vertically enter the textfield relative to where it was before this.userinput_txt._y = nTxtTop + ((nTxtHeight - this.userinput_txt._height) / 2); // Adjust the background to match the changes in the text field this.userinputbg_mc._height += this.userinput_txt._height - nTxtHeight; this.userinputbg_mc._y += this.userinput_txt._y - nTxtTop; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); this.bHasFocus = true; } GenericSearchInputClass.prototype.onKillFocus = function() { this.bHasFocus = false; } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter if (fhgeneric_comp.bHasFocus) { fhgeneric_comp.onRelease(); } break; } } GenericSearchInputClass.onKeyUp = function () { if (fhgeneric_comp.bKeystroke) { if (fhgeneric_comp.bHasFocus) { switch (Key.getCode()) { case 33: //PageUp case 34: //PageDown case 35: //End case 36: //Home case 38: //Up case 40: //Down break; default: fhgeneric_comp.onRelease(); break; } } } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } button_mc.onPress = function() { fhgeneric_comp.onPress(); } button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } button_mc.onDragOver = function() { fhgeneric_comp.onDragOver(); } button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } input_txt.onSetFocus = function() { fhgeneric_comp.onSetFocus(); } input_txt.onKillFocus = function() { fhgeneric_comp.onKillFocus(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€џ$ input_txt.onSetFocus = function(oldFocus) { inputbg_mc.textField_mc.gotoAndPlay("in"); // Tell the component that focus was received. fhgeneric_comp.onSetFocus(); } input_txt.onKillFocus = function(newFocus) { inputbg_mc.textField_mc.gotoAndPlay("out"); fhgeneric_comp.onKillFocus(); }€€ ActionsџџџџO€џџƒЛx†ўџџџ‡ˆ‰Š‹ŽЎЋ‘’“”ЌЉ—˜™š›œžŸ ЁЂЃЄЅІЇЈўџџџЊНМ­ЏЙАБВГДЕЖЗИўџџџКЛраОПРСТУФХЦЧШЩЪЫЬЭЮЯўџџџбвдFежзийклмнўџџџ§џџџ…стуфхцчшіъыьэюя№ёђѓєѕїјљњћќ§ўџSymbol 55/џџџџџџџџИT+Symbol 5603џџџџ•T+Symbol 57џџџџџџџџџџџџz6Symbol 5825џџџџЖ6dth of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetWidth = function (nWidth) { // Calculate the current size and location of the input_txt field as a // percentage of it's background var percentWidth = this.userinput_txt._width / this.userinputbg_mc._width; var percentX = (this.userinput_txt._x - this.userinputbg_mc._x) / this.userinputbg_mc._width; if (this.bDisplayButton && this.userbutton_mc != undefined) { this.userbutton_mc._x = (this.userinputbg_mc._x + nWidth) - this.userbutton_mc._width; this.userbuttonlabel_txt._x = this.userbutton_mc._x + (this.buttonlabelXPos - this.buttonXPos); var nSpace = this.buttonXPos - (this.inputXPos + this.inputWidth); var nInputWidth = this.userbutton_mc._x - (this.userinputbg_mc._x + nSpace); // Resize the background if (this.userinputbg_mc) { this.userinputbg_mc._width = nInputWidth; // Resize the input field to take the same percentage space and set it's location this.userinput_txt._width = nInputWidth * percentWidth; this.userinput_txt._x = this.userinputbg_mc._x + (nInputWidth * percentX); } else { this.userinput_txt._width = nInputWidth; } } else { // Resize the background to take up the full space if (this.userinputbg_mc) { this.userinputbg_mc._width = nWidth; // Resize the input field to take the same percentage space and set it's location this.userinput_txt._width = nWidth * percentWidth; this.userinput_txt._x = this.userinputbg_mc._x + (nWidth * percentX); } else { this.userinput_txt._width = nWidth; } } } /////////////////////////////////////////////////////////////////////////// // // Used to set the focus of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetFocus = function () { Selection.setFocus(this.userinput_txt); Selection.setSelection(0,0); } /////////////////////////////////////////////////////////////////////////// // // Used to check to see if we hav focus // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.HasFocus = function () { return this.bHasFocus; } /////////////////////////////////////////////////////////////////////////// // // Used to change the decription in the textfield // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetDescriptionText = function(newText) { this.userTextField_txt.text = newText; } /////////////////////////////////////////////////////////////////////////// // // Make the search send a command on every keystroke // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SendReplyOnEveryKey = function(bKeystroke) { this.bKeystroke = bKeystroke; } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.GetSearchInputText = function() { return this.userinput_txt.text; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(buttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.pushџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ‚CџЩ7 #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function MakeLindowsTextVisible(textfield_txt) { // This is a hack for Lindows, Lindows will not display a // textfield unless the text field is bold var textFormatObj = textfield_txt.getTextFormat(); if (textFormatObj.getTextExtent("TestString").width == 0) { textFormatObj.bold = true; textfield_txt.setTextFormat(textFormatObj); textfield_txt.setNewTextFormat(textFormatObj); } } function GenericSearchInputClass() { this.enabled = true; this.userinputbg_mc = this._parent.inputbg_mc; this.userbutton_mc = this._parent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userTextField_txt = this._parent.textfield_txt; this.userTextField_txt.autoSize = true; this.userinput_txt = this._parent.input_txt; this.attribute_array = new array(); this.bHasFocus = false; this.setFocusIntervalID = -1; // Setup the event handling this.userbutton_mc.onRollOver = function (mc) { mc._parent.fhgeneric_comp.onRollOver(); } this.userbutton_mc.onRollOut = function (mc) { mc._parent.fhgeneric_comp.onRollOut(); } this.userbutton_mc.onPress = function () { this._parent.fhgeneric_comp.onPress(); } this.userbutton_mc.onRelease = function () { this._parent.fhgeneric_comp.onRelease(); } this.userbutton_mc.onDragOut = function () { this._parent.fhgeneric_comp.onDragOut(); } this.userbutton_mc.onDragOver = function () { this._parent.fhgeneric_comp.onDragOver(); } this.userinput_txt.onSetFocus = function() { this._parent.fhgeneric_comp.onSetFocus(); } this.userinput_txt.onKillFocus = function() { this._parent.fhgeneric_comp.onKillFocus(); } MakeLindowsTextVisible(this.userTextField_txt) MakeLindowsTextVisible(this.userinput_txt) // variables to store the inital position of each item if (this.userinputbg_mc) { this.inputYPos = this.userinputbg_mc._y; this.inputXPos = this.userinputbg_mc._x; this.inputWidth = this.userinputbg_mc._width; } else { this.inputYPos = this.userinput_txt._y; this.inputXPos = this.userinput_txt._x; this.inputWidth = this.userinput_txt._width; } this.buttonYPos = this.userbutton_mc._y; this.buttonXPos = this.userbutton_mc._x; this.buttonlabelYPos = this.userbuttonlabel_txt._y; this.buttonlabelXPos = this.userbuttonlabel_txt._x; this.textFieldYPos = this.userTextField_txt._y; this.textFieldXPos = this.userTextField_txt._x; // should the button and textfield be displayed? this.bDisplayButton = true; this.bDisplayTextField = false; // Should we send the contents of the input field everytime a key is pressed this.bKeystroke = false; this.PositionItems(); // text format this.m_cTextFormat = undefined; } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Used to position the items based on what is to be displayed // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.PositionItems = function () { var oldTxtOffset = this.userinput_txt._y - this.userinputbg_mc._y; if (this.userTextField_txt != undefined && !this.bDisplayTextField) { var deltaY = 0; if (this.userinputbg_mc) { this.userinputbg_mc._y = this.userTextField_txt._y; this.userinput_txt._y = this.userinputbg_mc._y + oldTxtOffset; deltaY = this.userinputbg_mc._y - this.inputYPos; } else { this.userinput_txt._y = this.userTextField_txt._y; deltaY = this.userinput_txt._y - this.inputYPos; } this.userbutton_mc._y = this.buttonYPos + deltaY; this.userbuttonlabel_txt._y = this.buttonlabelYPos + deltaY; this.userTextField_txt._visible = false; } else { if (this.userinputbg_mc) { this.userinputbg_mc._y = this.inputYPos; this.userinput_txt._y = this.userinputbg_mc._y + oldTxtOffset; } else { this.userinput_txt._y = this.inputYPos; } this.userbutton_mc._y = this.buttonYPos; this.userbuttonlabel_txt._y = this.buttonlabelYPos; this.userTextField_txt._visible = true; } if (!this.bDisplayButton) { this.userbutton_mc._visible = false; this.userbuttonlabel_txt._visible = false; } else { this.userbutton_mc._visible = true; this.userbuttonlabel_txt._visible = true; } } /////////////////////////////////////////////////////////////////////////// // // These commands are used to disable or enable certain aspects of the search input // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetTextFieldVisible = function (bVisible) { this.bDisplayTextField = bVisible; this.PositionItems(); } GenericSearchInputClass.prototype.SetButtonVisible = function (bVisible) { this.bDisplayButton = bVisible; this.PositionItems(); } /////////////////////////////////////////////////////////////////////////// // // Used to change the width of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetWidth = function (nWidth) { // Calculate the current size and location of the input_txt field as a // percentage of it's background var percentWidth = this.userinput_txt._width / this.userinputbg_mc._width; var percentX = (this.userinput_txt._x - this.userinputbg_mc._x) / this.userinputbg_mc._width; if (this.bDisplayButton && this.userbutton_mc != undefined) { this.userbutton_mc._x = (this.userinputbg_mc._x + nWidth) - this.userbutton_mc._width; this.userbuttonlabel_txt._x = this.userbutton_mc._x + (this.buttonlabelXPos - this.buttonXPos); var nSpace = this.buttonXPos - (this.inputXPos + this.inputWidth); var nInputWidth = this.userbutton_mc._x - (this.userinputbg_mc._x + nSpace); // Resize the background if (this.userinputbg_mc) { this.userinputbg_mc._width = nInputWidth; // Resize the input field to take the same percentage space and set it's location this.userinput_txt._width = nInputWidth * percentWidth; this.userinput_txt._x = this.userinputbg_mc._x + (nInputWidth * percentX); } else { this.userinput_txt._width = nInputWidth; } } else { // Resize the background to take up the full space if (this.userinputb(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } // set the text format to search input box GenericSearchInputClass.prototype.SetTextFormat = function (cTextFormat) { this.m_cTextFormat = this.userinput_txt.getTextFormat(); for( cItem in cTextFormat ) { if(cTextFormat[cItem]!=undefined) this.m_cTextFormat[cItem]=cTextFormat[cItem]; } // try to keep the orignal width but change the height according the text format var nTxtWidth = this.userinput_txt._width; var nTxtHeight = this.userinput_txt._height; var nTxtTop = this.userinput_txt._y; var nTxtLeft = this.userinput_txt._x; var cAutoSize = this.userinput_txt.autoSize; this.userinput_txt.setTextFormat(this.m_cTextFormat); this.userinput_txt.setNewTextFormat(this.m_cTextFormat); this.userinput_txt.autoSize = "left"; this.userinput_txt.autoSize = cAutoSize; this.userinput_txt._width = nTxtWidth; this.userinput_txt._height = this.m_cTextFormat.size + 6; this.userinput_txt._x = nTxtLeft; // Vertically enter the textfield relative to where it was before this.userinput_txt._y = nTxtTop + ((nTxtHeight - this.userinput_txt._height) / 2); // Adjust the background to match the changes in the text field this.userinputbg_mc._height += this.userinput_txt._height - nTxtHeight; this.userinputbg_mc._y += this.userinput_txt._y - nTxtTop; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); this.bHasFocus = true; } GenericSearchInputClass.prototype.onKillFocus = function() { this.bHasFocus = false; } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter if (fhgeneric_comp.bHasFocus) { fhgeneric_comp.onRelease(); } break; } } GenericSearchInputClass.onKeyUp = function () { if (fhgeneric_comp.bKeystroke) { if (fhgeneric_comp.bHasFocus) { switch (Key.getCode()) { case 33: //PageUp case 34: //PageDown case 35: //End case 36: //Home case 38: //Up case 40: //Down break; default: fhgeneric_comp.onRelease(); break; } } } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } button_mc.onPress = function() { fhgeneric_comp.onPress(); } button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } button_mc.onDragOver = function() { fhgeneric_comp.onDragOver(); } button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } input_txt.onSetFocus = function() { fhgeneric_comp.onSetFocus(); } input_txt.onKillFocus = function() { fhgeneric_comp.onKillFocus(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€s::mediaAuthor(PublishRNWKProperties::speedCorporateLAN0&PublishRNWKProperties::showBitrateDlog1"PublishRNWKProperties::exportFlash1PublishQTProperties::Looping0*PublishQTProperties::UseQTSoundCompression0PublishJpegProperties::Width160!PublishPNGProperties::PaletteName!PublishPNGProperties::Transparent0&PublishGifProperties::TransparentAlpha128PublishGifPџџO€џџ€€ CPicFrameџџ CPicSprџџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSpritei§џџџ <<i§џџџdџ1{?€€џџџ?џџЗ.€€ Layer 2џџџџџOOџ€€џ CPicSprџџCPicPageџџ CPicLayerџџ CPicFrame€€ х}џћR§А|џџ 8ўй4‘1p"џ€8Аžо4А`•`Ш숋4Ждяњўnџ4тБуБdџў4тџœ‚ў49иЧpџ€‹џџџ?џџл€€ Layer 1џџџџO€џџџџCPicPageџџ CPicLayerџџ CPicFrame€€џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџџI\zџе§`шеЁї&№шшG00)F„€&С €0ДП €§g_mc) { this.userinputbg_mc._width = nWidth; // Resize the input field to take the same percentage space and set it's location this.userinput_txt._width = nWidth * percentWidth; this.userinput_txt._x = this.userinputbg_mc._x + (nWidth * percentX); } else { this.userinput_txt._width = nWidth; } } } /////////////////////////////////////////////////////////////////////////// // // Used to set the focus of the input field // ////////////////////////////////////////////////////////////€€ ActionsџџџџџOOџ€€€€џџџ?џџ/€€€ џџџ?џџInнf€€€ џџџ?џџOut’€€€џџџ?џџ…€€ LabelsџџџџOџOџ€€џџџ?џџstop();џџCPicPageџџ CPicLayerџџ CPicFrame€€ х}џїvс§PŸš 8ў'џ€t4џIи4NOœ~4cqdџ4џЦд8њў’€t8Pƒ•ђџџШ$џ4ёn0‘ох§€ў8ёџџџ1aџџ"џт§џџџ?џџУ_€€ Layer 1џџџџO€џџџџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSymbolђ“ ђ“ џџџџ6€€џџџ?џџэr€€ђ“ ЁџџщЉџџVЁџџђ“џџџџ6€€џџџ?џџю?€€ђ“ ђ“џџџџ6€€ џџџ?џџ/€€ђ“ ђ“"џџџџ6€€џџџ?џџ=h€€ђ“ ђ“(џџџџ6€€ џџџ?џџо€€ђ“ ђ“3џ6€€џџџ?џџёb€€ Layer 1џџџџO€џџ€€€™— юХюХ™—џџџџ/€€ џџџ?џџ~€€™— юХюХ™— џџџџ/€€џџџ?џџ’V€€ Layer 8џџџџ€€€џ€€€вв ввџ-€€'џџџ?џџњ~€€ HotSpotџџџџOџџџ€€€Ёs wлюлЁsџџџdџџџџ+€€џџџ?џџЫ.€€Ёs wлюлЁsџџџdџџџџ+€€џџџ?џџЯ€€Ёs wлюлЁsџџџdџџџџ+€€/////////////// GenericSearchInputClass.prototype.SetFocus = function () { Selection.setFocus(this.userinput_txt); Selection.setSelection(0,0); } /////////////////////////////////////////////////////////////////////////// // // Used to check to see if we hav focus // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.HasFocus = function () { return this.bHasFocus; } /////////////////////////////////////////////////////////////////////////// // // Used to change the decription in the textfield // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetDescriptionText = function(newText) { this.userTextField_txt.text = newText; } /////////////////////////////////////////////////////////////////////////// // // Make the search send a command on every keystroke // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SendReplyOnEveryKey = function(bKeystroke) { this.bKeystroke = bKeystroke; } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.GetSearchInputText = function() { return this.userinput_txt.text; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(buttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } // set the text format to search input box GenericSearchInputClass.prototype.SetTextFormat = function (cTextFormat) { this.m_cTextFormat = this.userinput_txt.getTextFormat(); for( cItem in cTextFormat ) { if(cTextFormat[cItem]!=undefined) this.m_cTextFormat[cItem]=cTextFormat[cItem]; } // try to keep the orignal width but change the height according the text format var nTxtWidth = this.userinput_txt._width; var nTxtHeight = this.userinput_txt._height; var nTxtTop = this.userinput_txt._y; var nTxtLeft = this.userinput_txt._x; var cAutoSize = this.userinput_txt.autoSize; this.userinput_txt.setTextFormat(this.m_cTextFormat); this.userinput_txt.setNewTextFormat(this.m_cTextFormat); MakeLindowsTextVisible(this.userinput_txt) this.userinput_txt.autoSize = "left"; this.userinput_txt.autoSize = cAutoSize; this.userinput_txt._width = nTxtWidth; this.userinput_txt._height = this.m_cTextFormat.size + 6; this.userinput_txt._x = nTxtLeft; // Vertically enter the textfield relative to where it was before this.userinput_txt._y = nTxtTop + ((nTxtHeight - this.userinput_txt._height) / 2); // Adjust the background to match the changes in the text field this.userinputbg_mc._height += this.userinput_txt._height - nTxtHeight; this.userinputbg_mc._y += this.userinput_txt._y - nTxtTop; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); this.bHasFocus = true; } GenericSearchInputClass.prototype.onKillFocus = function() { this.bHasFocus = false; } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter if (fhgeneric_comp.bHasFocus) { fhgeneric_comp.onRelease(); } break; } } GenericSearchInputClass.onKeyUp = function () { if (fhgeneric_comp.bKeystroke) { if (fhgeneric_comp.bHasFocus) { switch (Key.getCode()) { case 33: //PageUp case 34: //PageDown case 35: //End case 36: //Home case 38: //Up case 40: //Down break; default: fhgeneric_comp.onRelease(); break; } } } } Key.addListener(GenericSearchInputClass); // Register the clasџџџ?џџŠ€€Ёs wлюлЁsџџџdџџџџ+€€ џџџ?џџ…8€€Ёs wлюлЁsџџџdџџџџ+€€ џџџ?џџ?x€€—s wлюл—sdџ+€€џџџ?џџ„D€€€џџџ?џџ Y€€ Button PlaceholderџџџџџOџџ€€€€џџџ?џџb€€€џџџ?џџЩHstop();€€€џџџ?џџХ4stop();€€€ џџџ?џџэ_stop();€€€ џџџ?џџ stop();€€€џџџ?џџfstop();€€ ActionsџџџџOџOџ€€€€џџџ?џџ5}€€€џџџ?џџnormalзF€€€џџџ?џџoverт/€€€џџџ?џџdown! €€€ џџџ?џџselectedГE€€€ џџџ?џџdisabledНT€€ LabelsџџџџџOOџ€€ џџџ?џџЃ+Вinput_txt.onSetFocus = function(oldFocus) { trace("focus"); textbg_mc.gotoAndPlay("focus") } input_txt.onKillFocus = function(newFocus) { textbg_mc.gotoAndPlay("normal"); }€€ ActionsџџџџџOџџ€€џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSym€€џџ?џџ0џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSymbolЬќџџ„ ~ж~жЬќџџ„ џџџџ4€3ћџџ„ ~ж~ж3ћџџ„џџџџ5€€џџџ?џџl€€ Layer 1џџџџO€џџ€€€bolш л€шџџџџ)€€џџџ?џџ”S€€ TextField BackџџџџOџOџ€€џџ CPicSprite~+ 4щ"~+dџ"^Q textField_mc€€џџџ?џџТ,€€ BGџџџџO€џџ€€€€џџџ?џџч(€€ input_txtџџџџџOOџ€€€€€ Layer 1џџџџO€џџ€€ ШџџCPicPageџџ CPicLayerџџ CPicFrame€€ѓџѓєєќ0ќ0ш0шџџџ?џџƒ€€ Layer 1џџџџO€џџџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџe/џЙ7 #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function MakeLindowsTextVisible(textfield_txt) { // This is a hack for Lindows, Lindows will not display a // textfield unless the text field is bold var textFormatObj = textfield_txt.getTextFormat(); if (textFormatObj.getTextExtent("TestString").width == 0) { textFormatObj.bold = true; textfield_txt.setTextFormat(textFormatObj); textfield_txt.setNewTextFormat(textFormatObj); } } function GenericSearchInputClass() { this.enabled = true; this.userinputbg_mc = this._parent.inputbg_mc; this.userbutton_mc = this._parent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userTextField_txt = this._parent.texџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџŽџ 5 #initclip // This is from commands.as and should be updated in both places if it updated here. var CmdItemInvoked = "CmdItemInvoked"; function DisplayAttribute(attribute, value) { this.attrib_str = attribute; this.value = value; } function GenericSearchInputClass() { this.enabled = true; this.userinputbg_mc = this._parent.inputbg_mc; this.userbutton_mc = this._parent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userTextField_txt = this._parent.textfield_txt; this.userTextField_txt.autoSize = true; this.userinput_txt = this._parent.input_txt; this.attribute_array = new array(); this.bHasFocus = false; this.setFocusIntervalID = -1; // variables to store the inital position of each item if (this.userinputbg_mc) { this.inputYPos = this.userinputbg_mc._y; this.inputXPos = this.userinputbg_mc._x; this.inputWidth = this.userinputbg_mc._width; } else { this.inputYPos = this.userinput_txt._y; this.inputXPos = this.userinput_txt._x; this.inputWidth = this.userinput_txt._width; } this.buttonYPos = this.userbutton_mc._y; this.buttonXPos = this.userbutton_mc._x; this.buttonlabelYPos = this.userbuttonlabel_txt._y; this.buttonlabelXPos = this.userbuttonlabel_txt._x; this.textFieldYPos = this.userTextField_txt._y; this.textFieldXPos = this.userTextField_txt._x; // should the button and textfield be displayed? this.bDisplayButton = true; this.bDisplayTextField = false; // Should we send the contents of the input field everytime a key is pressed this.bKeystroke = false; this.PositionItems(); // text format this.m_cTextFormat = undefined; } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Used to position the items based on what is to be displayed // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.PositionItems = function () { var oldTxtOffset = this.userinput_txt._y - this.userinputbg_mc._y; if (this.userTextField_txt != undefined && !this.bDisplayTextField) { var deltaY = 0; if (this.userinputbg_mc) { this.userinputbg_mc._y = this.userTextField_txt._y; this.userinput_txt._y = this.userinputbg_mc._y + oldTxtOffset; deltaY = this.userinputbg_mc._y - this.inputYPos; } else { this.userinput_txt._y = this.userTextField_txt._y; deltaY = this.userinput_txt._y - this.inputYPos; } this.userbutton_mc._y = this.buttonYPos + deltaY; this.userbuttonlabel_txt._y = this.buttonlabelYPos + deltaY; this.userTextField_txt._visible = false; } else { if (this.userinputbg_mc) { this.userinputbg_mc._y = this.inputYPos; this.userinput_txt._y = this.userinputbg_mc._y + oldTxtOffset; } else { this.userinput_txt._y = this.inputYPos; } this.userbutton_mc._y = this.buttonYPos; this.userbuttonlabel_txt._y = this.buttonlabelYPos; this.userTextField_txt._visible = true; } if (!this.bDisplayButton) { this.userbutton_mc._visible = false; this.userbuttonlabel_txt._visible = false; } else { this.userbutton_mc._visible = true; this.userbuttonlabel_txt._visible = true; } } /////////////////////////////////////////////////////////////////////////// // // These commands are used to disable or enable certain aspects of the search input // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetTextFieldVisible = function (bVisible) { this.bDisplayTextField = bVisible; this.PositionItems(); } GenericSearchInputClass.prototype.SetButtonVisible = function (bVisible) { this.bDisplayButton = bVisible; this.PositionItems(); } /////////////////////////////////////////////////////////////////////////// // // Used to change the width of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetWidth = function (nWidth) { // Calculate the current size and location of the input_txt field as a // percentage of it's background var percentWidth = this.userinput_txt._width / this.userinputbg_mc._width; var percentX = (this.userinput_txt._x - this.userinputbg_mc._x) / this.userinputbg_mc._width; if (this.bDisplayButton && this.userbutton_mc != undefined) { this.userbutton_mc._x = (this.userinputbg_mc._x + nWidth) - this.userbutton_mc._width; this.userbuttonlabel_txt._x = this.userbutton_mc._x + (this.buttonlabelXPos - this.buttonXPos); var nSpace = this.buttonXPos - (this.inputXPos + this.inputWidth); var nInputWidth = this.userbutton_mc._x - (this.userinputbg_mc._x + nSpace); // Resize the background if (this.userinputbg_mc) { this.userinputbg_mc._width = nInputWidth; // Resize the input field to take the same percentage space and set it's location this.userinput_txt._width = nInputWidth * percentWidth; this.userinput_txt._x = this.userinputbg_mc._x + (nInputWidth * percentX); } else { this.userinput_txt._width = nInputWidth; } } else { // Resize the background to take up the full space if (this.userinputbg_mc) { this.userinputbg_mc._width = nWidth; // Resize the input field to take the same percentage space and set it's location this.userinput_txt._width = nWidth * percentWidth; this.userinput_txt._x = this.userinputbg_mc._x + (nWidth * percentX); } else { this.userinput_txt._width = nWidth; } } } /////////////////////////////////////////////////////////////////////////// // // Used to set the focus of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetFocus = function () { Selection.setFocus(this.userinput_txt); Selection.setSelection(0,0); } /////////////////////////////////////////////////////////////////////////// // // Used to check to see if we hav focus // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.HasFocus = function () { return this.bHasFocus; } /////////////////////////////////////////////////////////////////////////// // // Used to change the decription in the textfield // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetDescriptionText = function(newText) { this.userTextField_txt.text = newText; } /////////////////////////////////////////////////////////////////////////// // // Make the search send a command on every keystroke // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SendReplyOnEveryKey = function(bKeystroke) { this.bKeystroke = bKeystroke; } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.GetSearchInputText = function() { return this.userinput_txt.text; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(buttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } // set the text format to search input box GenericSearchInputClass.prototype.SetTextFormat = function (cTextFormat) { this.m_cTextFormat = this.userinput_txt.getTextFormat(); for( cItem in cTextFormat ) { if(cTextFormat[cItem]!=undefined) this.m_cTextFormat[cItem]=cTextFormat[cItem]; } // try to keep the orignal width but change the height according the text format var nTxtWidth = this.userinput_txt._width; var nTxtHeight = this.userinput_txt._height; var nTxtTop = this.userinput_txt._y; var nTxtLeft = this.userinput_txt._x; var cAutoSize = this.userinput_txt.autoSize; this.userinput_txt.setTextFormat(this.m_cTextFormat); this.userinput_txt.setNewTextFormat(this.m_cTextFormat); this.userinput_txt.autoSize = "left"; this.userinput_txt.autoSize = cAutoSize; this.userinput_txt._width = nTxtWidth; this.userinput_txt._height = this.m_cTextFormat.size + 6; this.userinput_txt._x = nTxtLeft; // Vertically enter the textfield relative to where it was before this.userinput_txt._y = nTxtTop + ((nTxtHeight - this.userinput_txt._height) / 2); // Adjust the background to match the changes in the text field this.userinputbg_mc._height += this.userinput_txt._height - nTxtHeight; this.userinputbg_mc._y += this.userinput_txt._y - nTxtTop; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); this.bHasFocus = true; } GenericSearchInputClass.prototype.onKillFocus = function() { this.bHasFocus = false; } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter if (fhgeneric_comp.bHasFocus) { fhgeneric_comp.onRelease(); } break; } } GenericSearchInputClass.onKeyUp = function () { if (fhgeneric_comp.bKeystroke) { if (fhgeneric_comp.bHasFocus) { switch (Key.getCode()) { case 33: //PageUp case 34: //PageDown case 35: //End case 36: //Home case 38: //Up case 40: //Down break; default: fhgeneric_comp.onRelease(); break; } } } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } button_mc.onPress = function() { fhgeneric_comp.onPress(); } button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } button_mc.onDragOver = function() { fhgeneric_comp.onDragOver(); } button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } input_txt.onSetFocus = function() { fhgeneric_comp.onSetFocus(); } input_txt.onKillFocus = function() { fhgeneric_comp.onKillFocus(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€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яЈ€Ьtfield_txt; this.userTextField_txt.autoSize = true; this.userinput_txt = this._parent.input_txt; this.attribute_array = new array(); this.bHasFocus = false; this.setFocusIntervalID = -1; MakeLindowsTextVisible(this.userTextField_txt) MakeLindowsTextVisible(this.userinput_txt) // variables to store the inital position of each item if (this.userinputbg_mc) { this.inputYPos = this.userinputbg_mc._y; this.inputXPos = this.userinputbg_mc._x; this.inputWidth = this.userinputbg_mc._width; } else { this.inputYPos = this.userinput_txt._y; this.inputXPos = this.userinput_txt._x; this.inputWidth = this.userinput_txt._width; } this.buttonYPos = this.userbutton_mc._y; this.buttonXPos = this.userbutton_mc._x; this.buttonlabelYPos = this.userbuttonlabel_txt._y; this.buttonlabelXPos = this.userbuttonlabel_txt._x; this.textFieldYPos = this.userTextField_txt._y; this.textFieldXPos = this.userTextField_txt._x; // should the button and textfield be displayed? this.bDisplayButton = true; this.bDisplayTextField = false; // Should we send the contents of the input field everytime a key is pressed this.bKeystroke = false; this.PositionItems(); // text format this.m_cTextFormat = undefined; } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Used to position the items based on what is to be displayed // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.PositionItems = function () { var oldTxtOffset = this.userinput_txt._y - this.userinputbg_mc._y; if (this.userTextField_txt != undefined && !this.bDisplayTextField) { var deltaY = 0; if (this.userinputbg_mc) { this.userinputbg_mc._y = this.userTextField_txt._y; this.userinput_txt._y = this.userinputbg_mc._y + oldTxtOffset; deltaY s Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€€џџџ?џџX_€€ fhgeneric_compџџџџ€€€џ€€€h hdџ!я- inputbg_mc€€XЗџїXПў†A8Bƒ@4_}џA^аˆ/€’="0>| ѓ €у4ѓ\OЃК=ў€ў4єџ?„_џUўћљ љ€ѓ€ђя<ян€с0Шў%Ј'‘€Iц“ $€ёћ@€8 Я„КУ„‰ €0>о"Тˆђ€’У4yО†О}џПў4љџ8ЂƒРўя$€ти!‘щ€Iсл0ШўњэМ н€*ю€п€%4ŠУR‡џ{џџџ?џџя€€ Layer 1џџџџO€џџ€€е§`шеџџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSpriteр< р<џџџџ=d`fhgeneric_compLabelLABELlabel“ТJџїsEžЋ (Jяч€€џџџ?џџv €€ fhgeneric_compџџџџ€€€џ€€€h hdџ!. inputbg_mc€€џџџ?џџЃQ€€ Input BackgroundџџџџOџOџ€€џџCPicTextPu  hШч Шverdanaџ(PSearch input_txt€€џџџ?џџ>@€€ Input TextџџџџO€џџ€€€" И " И= this.userinputbg_mc._y - this.inputYPos; } else { this.userinput_txt._y = this.userTextField_txt._y; deltaY = this.userinput_txt._y - this.inputYPos; } this.userbutton_mc._y = this.buttonYPos + deltaY; this.userbuttonlabel_txt._y = this.buttonlabelYPos + deltaY; this.userTextField_txt._visible = false; } else { if (this.userinputbg_mc) { this.userinputbg_mc._y = this.inputYPos; this.userinput_txt._y = this.userinputbg_mc._y + oldTxtOffset; } else { this.userinput_txt._y = this.inputYPos; } this.userbutton_mc._y = this.buttonYPos; this.userbuttonlabel_txt._y = this.buttonlabelYPos; this.userTextField_txt._visible = true; } if (!this.bDisplayButton) { this.userbutton_mc._visible = false; this.userbuttonlabel_txt._visible = false; } else { this.userbutton_mc._visible = true; this.userbuttonlabel_txt._visible = true; } } /////////////////////////////////////////////////////////////////////////// // // These commands are used to disable or enable certain aspects of the search input // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetTextFieldVisible = function (bVisible) { this.bDisplayTextField = bVisible; this.PositionItems(); } GenericSearchInputClass.prototype.SetButtonVisible = function (bVisible) { this.bDisplayButton = bVisible; this.PositionItems(); } /////////////////////////////////////////////////////////////////////////// // // Used to change the width of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetWidth = function (nWidth) { // Calculate the current size and location of the input_txt field as a // percentage of it's background var percentWidth = this.userinput_txt._width / this.userinputbg_mc._width; var percentX = (this.userinput_txt._x - this.userinputbg_mc._x) / this.userinputbg_mc._width; if (this.bDisplayButton && this.userbutton_mc != undefined) { this.userbutton_mc._x = (this.userinputbg_mc._x + nWidth) - this.userbutton_mc._width; this.userbuttonlabel_txt._x = this.userbutton_mc._x + (this.buttonlabelXPos - this.buttonXPos); var nSpace = this.buttonXPos - (this.inputXPos + this.inputWidth); var nInputWidth = this.userbutton_mc._x - (this.userinputbg_mc._x + nSpace); // Resize the background if (this.userinputbg_mc) { this.userinputbg_mc._width = nInputWidth; // Resize the input field to take the same percentage space and set it's location this.userinput_txt._width = nInputWidth * percentWidth; this.userinput_txt._x = this.userinputbg_mc._x + (nInputWidth * percentX); } else { this.userinput_txt._width = nInputWidth; } } else { // Resize the background to take up the full space if (this.userinputbg_mc) { this.userinputbg_mc._width = nWidth; // Resize the input field to take the same percentage space and set it's location this.userinput_txt._width = nWidth * percentWidth; this.userinput_txt._x = this.userinputbg_mc._x + (nWidth * percentX); } else { this.userinput_txt._width = nWidth; } } } /////////////////////////////////////////////////////////////////////////// // // Used to set the focus of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetFocus = function () { Selection.setFocus(this.userinput_txt); Selection.setSelection(0,0); } /////////////////////////////////////////////////////////////////////////// // // Used to check to see if we hav focus // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.HasFocus = function () { return this.bHasFocus; } /////////////////////////////////////////////////////////////////////////// // // Used to change the decription in the textfield // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetDescriptionText = function(newText) { this.userTextField_txt.text = newText; } /////////////////////////////////////////////////////////////////////////// // // Make the search send a command on every keystroke // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SendReplyOnEveryKey = function(bKeystroke) { this.bKeystroke = bKeystroke; } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.GetSearchInputText = function() { return this.userinput_txt.text; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(buttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } // set the text format to search input box GenericSearchInputClass.prototype.SetTextFormat = function (cTextFormat) { this.m_cTextFormat = this.userinput_txt.getTextFormat(); for( cItem in cTextFormat ) { if(cTextFormat[cItem]!=undefined) this.m_cTextFormat[cItem]=cTextFormat[cItem]; } // try to keep the orignal width but change the height according the text format var nTxtWidth = this.userinput_txt._width; var nTxtHeight = this.userinput_txt._height; var nTxtTop = this.userinput_txt._y; var nTxtLeft = this.userinput_txt._x; var cAutoSize = this.userinput_txt.autoSize; this.userinput_txt.setTextFormat(this.m_cTextFormat); this.userinput_txt.setNewTextFormat(this.m_cTextFormat); MakeLindowsTextVisible(this.userinput_txt) this.userinput_txt.autoSize = "left"; this.userinput_txt.autoSize = cAutoSize; this.userinput_txt._width = nTxtWidth; this.userinput_txt._height = this.m_cTextFormat.size + 6; this.userinput_txt._x = nTxtLeft; // Vertically enter the textfield relative to where it was before this.userinput_txt._y = nTxtTop + ((nTxtHeight - this.userinput_txt._height) / 2); // Adjust the background to match the changes in the text field this.userinputbg_mc._height += this.userinput_txt._height - nTxtHeight; this.userinputbg_mc._y += this.userinput_txt._y - nTxtTop; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); this.bHasFocus = true; } GenericSearchInputClass.prototype.onKillFocus = function() { this.bHasFocus = false; } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter if (fhgeneric_comp.bHasFocus) { fhgeneric_comp.onRelease(); } break; } } GenericSearchInputClass.onKeyUp = function () { if (fhgeneric_comp.bKeystroke) { if (fhgeneric_comp.bHasFocus) { switch (Key.getCode()) { case 33: //PageUp case 34: //PageDown case 35: //End case 36: //Home case 38: //Up case 40: //Down break; default: fhgeneric_comp.onRelease(); break; } } } } Key.addListener(GenericSearchInputClass); /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// button_mc.onRollOver = function() { fhgeneric_comp.onRollOver(); } button_mc.onPress = function() { fhgeneric_comp.onPress(); } button_mc.onRelease = function() { fhgeneric_comp.onRelease(); } button_mc.onDragOut = function() { fhgeneric_comp.onDragOut(); } button_mc.onDragOver = function() { fhgeneric_comp.onDragOver(); } button_mc.onRollOut = function() { fhgeneric_comp.onRollOut(); } input_txt.onSetFocus = function() { fhgeneric_comp.onSetFocus(); } input_txt.onKillFocus = function() { fhgeneric_comp.onKillFocus(); } // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€џ 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™™џe text field is bold var textFormatObj = textfield_txt.getTextFormat(); if (textFormatObj.getTextExtent("TestString").width == 0) { textFormatObj.bold = true; textfield_txt.setTextFormat(textFormatObj); textfield_txt.setNewTextFormat(textFormatObj); } } function GenericSearchInputClass() { this.enabled = true; this.userinputbg_mc = this._parent.inputbg_mc; this.userbutton_mc = this._parent.button_mc; this.userbuttonlabel_txt = this._parent.label_txt; this.userTextField_txt = this._parent.textfield_txt; this.userTextField_txt.autoSize = true; this.userinput_txt = this._parent.input_txt; this.attribute_array = new array(); this.bHasFocus = false; this.setFocusIntervalID = -1; // Setup the event handling this.userbutton_mc.onRollOver = function (mc) { mc._parent.fhgeneric_comp.onRollOver(); } this.userbutton_mc.onRollOut = function (mc) { mc._parent.fhgeneric_comp.onRollOut(); } this.userbutton_mc.onPress = function () { this._parent.fhgeneric_comp.onPress(); } this.userbutton_mc.onRelease = function () { this._parent.fhgeneric_comp.onRelease(); } this.userbutton_mc.onDragOut = function () { this._parent.fhgeneric_comp.onDragOut(); } this.userbutton_mc.onDragOver = function () { this._parent.fhgeneric_comp.onDragOver(); } this.userinput_txt.onSetFocus = function() { this._parent.fhgeneric_comp.onSetFocus(); } this.userinput_txt.onKillFocus = function() { this._parent.fhgeneric_comp.onKillFocus(); } MakeLindowsTextVisible(this.userTextField_txt) MakeLindowsTextVisible(this.userinput_txt) // variables to store the inital position of each item if (this.userinputbg_mc) { this.inputYPos = this.userinputbg_mc._y; this.inputXPos = this.userinputbg_mc._x; this.inputWidth = this.userinputbg_mc._width; } else { this.inputYPos = this.userinput_txt._y; this.inputXPos = this.userinput_txt._x; this.inputWidth = this.userinput_txt._width; } this.buttonYPos = this.userbutton_mc._y; this.buttonXPos = this.userbutton_mc._x; this.buttonlabelYPos = this.userbuttonlabel_txt._y; this.buttonlabelXPos = this.userbuttonlabel_txt._x; this.textFieldYPos = this.userTextField_txt._y; this.textFieldXPos = this.userTextField_txt._x; // should the button and textfield be displayed? this.bDisplayButton = true; this.bDisplayTextField = false; // Should we send the contents of the input field everytime a key is pressed this.bKeystroke = false; this.PositionItems(); // text format this.m_cTextFormat = undefined; } GenericSearchInputClass.prototype = new MovieClip(); GenericSearchInputClass.prototype.onLoad = function () { this.userbuttonlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Used to position the items based on what is to be displayed // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.PositionItems = function () { var oldTxtOffset = this.userinput_txt._y - this.userinputbg_mc._y; if (this.userTextField_txt != undefined && !this.bDisplayTextField) { var deltaY = 0; if (this.userinputbg_mc) { this.userinputbg_mc._y = this.userTextField_txt._y; this.userinput_txt._y = this.userinputbg_mc._y + oldTxtOffset; deltaY = this.userinputbg_mc._y - this.inputYPos; } else { this.userinput_txt._y = this.userTextField_txt._y; deltaY = this.userinput_txt._y - this.inputYPos; } this.userbutton_mc._y = this.buttonYPos + deltaY; this.userbuttonlabel_txt._y = this.buttonlabelYPos + deltdџ•g button_mc€€€ P1апƒШ_sansџџџџ(TextField (label): textfield_txt€€џџџ?џџY{€€ ButtonџџџџџOOџ€€€€џџџ?џџ €€ label_txtџџџџOџџџ€€€€џџџ?џџЊџ$ input_txt.onSetFocus = function(oldFocus) { inputbg_mc.textField_mc.gotoAndPlay("in"); // Tell the component that focus was received. fhgeneric_comp.onSetFocus(); } input_txt.onKillFocus = function(newFocus) { inputbg_mc.textField_mc.gotoAndPlay("out"); fhgeneric_comp.onKillFocus(); }€€ ActionsџџџџO€џџ€€)џџ CDocumentPagePage 1Scene 10ј[>Bџџџџkъ2?џџџџ€ Symbol 54Tween 36ќэ>Bџџџџњ?џџџџ€ Symbol 45HotSpot-<ІИ>Б Symbol 45џџџџх?џџџџ€ Symbol 41TextField Back),ЄИ>‚ Symbol 41џџџџ?џџџџ€ Symbol 33Input!|щЏ> Symbol 33џџџџZ?џџџџ€ Symbol 31TextField PlaceholderДІ> Q-Ї>" Symbol 31џџџџQ-Ї>џџџџ€ Symbol 30Border PlaceholderДІ> I-Ї>! Symbol 30џџџџI-Ї>џџџџ€ Symbol 28Text BGДІ> јІ>  Symbol 28џџџџОъЎ>џџџџ€ Symbol 18ButtonW-Ї># Symbol 18џџџџњ?џџџџ€ Symbol 14 MovieSearchџNw> Symbol 14џџџџњ?џџџџ€ Symbol 21Button PlaceholderДІ> LДІ>.\BlankButton.fla'Placeholder Graphics/Button PlaceholderЌЕІ>LДІ>шЎ>џџџџ€ Symbol 34TextEntryFieldMovie"­>а..\orange\toolbar.flaTextEntryFieldMovieUРА>­>аZ?џџџџ€ Symbol 35TextEntryFieldGraphic#Ѓ­>в..\orange\toolbar.flaTextEntryFieldGraphicЁ Ž>Ѓ­>вЊ?џџџџ€ Symbol 42 IconSearch*,LЗ>~.\skin_button_tb_search.fla IconSearchпTЗ>,LЗ>~ыЭ>џџџџ€ Symbol 43IconSearchStill+LЗ>{.\skin_button_tb_search.flaIconSearchStillLЗ>LЗ>{Я?џџџџ€ Symbol 47 Button BG/уФА>™.\skin_button_nav_sync.fla Button BGуФА>џџџџо?џџџџ€ Symbol 49search1%$—>UEP:\Design Team\Personal Folders\AJ\FlashHelp\Rev4Wildfire\toolbar.flasearchЕ@—>%$—>Uбњэ>џџџџ€ Symbol 51Tween 93A—>НEP:\Design Team\Personal Folders\AJ\FlashHelp\Rev4Wildfire\toolbar.flaTween 9A—>A—>НТћэ>џџџџ€ Symbol 52Tween 24h>—>ЙEP:\Design Team\Personal Folders\AJ\FlashHelp\Rev4Wildfire\toolbar.flaTween 2З?—>h>—>ЙСћэ>џџџџ€ Symbol 53Tween 15h>—>ЗEP:\Design Team\Personal Folders\AJ\FlashHelp\Rev4Wildfire\toolbar.flaTween 1К?—>h>—>З‹ћэ>џџџџ€ Symbol 61Generic FH Search Input=Uy_>FGenericFHSearchInputFlashHelp_Components.swf+C:\FlashComponents\FlashHelp_Components.flaGeneric FH Search Input >)?Uy_> >)?LabelLABELlabel“ТJџїsEžЋ (Jячџџџџ>џџ CMediaBitsMedia 1bt.png*..\..\..\..\..\..\..\..\..\jonathan\bt.pngC <р—> џџџџ2pаШhhhhџџџџРРРџ Дz%PublishFormatProperties::htmlFileNametestskin_search_input.html"PublishHtmlProperties::StartPaused0!PublishGifProperties::PaletteName PublishRNWKProperties::speed256K0PublishFormatProperties::jpeg0Vector::Debugging Permitted0PublishHtmlProperties::Loop1"PublishQTProperties::MatchMovieDim1 PublishQTProperties::AlphaOption PublishQTProperties::LayerOptionPublishHtmlProperties::Units0$PublishPNGProperties::OptimizeColors1PublishQTProperties::Width160&PublishRNWKProperties::singleRateAudio0&PublishRNWKProperties::speedSingleISDN0%PublishFormatProperties::projectorMac0&PublishFormatProperties::flashFileNametestskin_search_input.swfVector::Compress Movie1PublishGifProperties::Smooth1#PublishRNWKProperties::flashBitRate1200%PublishRNWKProperties::mediaCopyright(c) 2000PublishFormatProperties::html0$PublishFormatProperties::pngFileNametestskin_search_input.png(PublishHtmlProperties::VerticalAlignment1PublishHtmlProperties::Quality4"PublishGifProperties::DitherOption"PublishRNWKProperties::exportAudio1 PublishRNWKProperties::speed384K0!PublishRNWKProperties::exportSMIL1Vector::Override Sounds0!PublishHtmlProperties::DeviceFont0"PublishPNGProperties::FilterOption'PublishRNWKProperties::mediaDescriptionPublishFormatProperties::gif0*PublishFormatProperties::generatorFileNametestskin_search_input.swtVector::Template0Vector::Protect0Vector::Quality80*PublishHtmlProperties::HorizontalAlignment1"PublishHtmlProperties::DisplayMenu1PublishGifProperties::Interlace0"PublishGifProperties::DitherSolids0PublishPNGProperties::Smooth1PublishPNGProperties::BitDepth24-bit with AlphaPublishJpegProperties::DPI4718592PublishQTProperties::Flatten1#PublishFormatProperties::qtFileNametestskin_search_input.movPublishGifProperties::Width160PublishGifProperties::Loop1PublishRNWKProperties::speed28K1!PublishRNWKProperties::mediaTitle$PublishRNWKProperties::mediaKeywordsPublishFormatProperties::flash1#PublishGifProperties::MatchMovieDim1#PublishGifProperties::PaletteOption"PublishPNGProperties::DitherOptionPublishJpegProperties::Quality80$PublishRNWKProperties::realVideoRate100000$PublishRNWKProperties::speedDualISDN0-PublishFormatProperties::projectorWinFileNametestskin_search_input.exePublishHtmlProperties::Align0#PublishPNGProperties::MatchMovieDim1#PublishPNGProperties::PaletteOption$PublishJpegProperties::MatchMovieDim1%PublishFormatProperties::jpegFileNametestskin_search_input.jpgVector::Omit Trace Actions0Vector::Debugging PasswordPublishHtmlProperties::Width160PublishHtmlProperties::Height22"PublishPNGProperties::DitherSolids0"PublishJpegProperties::Progressive0#PublishQTProperties::PlayEveryFrame0PublishFormatProperties::png0PublishFormatProperties::rnwk0-PublishFormatProperties::projectorMacFileNametestskin_search_input.hqxVector::TopDown0!PublishHtmlProperties::WindowMode0'PublishHtmlProperties::TemplateFileNamegC:\Documents and Settings\RLinyard\Application Data\Macromedia\Flash MX\Configuration\Html\Default.htmlPublishGifProperties::Height22PublishPNGProperties::Interlace0PublishJpegProperties::Size0"PublishFormatProperties::generator0Vector::Report0PublishGifProperties::LoopCount'PublishGifProperties::TransparentOptionPublishGifProperties::MaxColors255%PublishPNGProperties::RemoveGradients0PublishQTProperties::Height22PublishRNWKProperties::speed56K1PublishFormatProperties::qt0Vector::Stream Compress7Vector::Event Format0Vector::Version6$PublishGifProperties::OptimizeColors1"PublishRNWKProperties::audioFormat0Vector::Event Compress7PublishHtmlProperties::Scale0%PublishGifProperties::RemoveGradients0PublishPNGProperties::Width160PublishPNGProperties::Height22PublishJpegProperties::Height22 PublishRNWKProperties::speed512K0$PublishFormatProperties::gifFileNametestskin_search_input.gifVector::Stream Format0PublishGifProperties::Animated0&PublishGifProperties::TransparentAlpha128!PublishPNGProperties::Transparent0!PublishPNGProperties::PaletteNamePublishJpegProperties::Width160*PublishQTProperties::UseQTSoundCompression0PublishQTProperties::Looping0"PublishRNWKProperties::exportFlash1&PublishRNWKProperties::showBitrateDlog1(PublishRNWKProperties::speedCorporateLAN0"PublishRNWKProperties::mediaAuthorPropSheet::ActiveTab1599%PublishFormatProperties::defaultNames1%PublishFormatProperties::projectorWin0%PublishFormatProperties::rnwkFileNametestskin_search_input.smilPublishPNGProperties::MaxColors255%PublishQTProperties::ControllerOption0"PublishQTProperties::PausedAtStart0џџџџќџџ 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џџШяЈ€џ™џџШяР€џЬџџШяи€џџџџ№€џ€џџџџџџџ€џџџџџџџ€џџџџџ€џџџџџ€џџџџџ€џf§џ`џџџџzџџџџ€™fџЊџЬџџџџџџ€џџџ*џџџ]џџџџџЊџџдџaY; this.userTextField_txt._visible = false; } else { if (this.userinputbg_mc) { this.userinputbg_mc._y = this.inputYPos; this.userinput_txt._y = this.userinputbg_mc._y + oldTxtOffset; } else { this.userinput_txt._y = this.inputYPos; } this.userbutton_mc._y = this.buttonYPos; this.userbuttonlabel_txt._y = this.buttonlabelYPos; this.userTextField_txt._visible = true; } if (!this.bDisplayButton) { this.userbutton_mc._visible = false; this.userbuttonlabel_txt._visible = false; } else { this.userbutton_mc._visible = true; this.userbuttonlabel_txt._visible = true; } } /////////////////////////////////////////////////////////////////////////// // // These commands are used to disable or enable certain aspects of the search input // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetTextFieldVisible = function (bVisible) { this.bDisplayTextField = bVisible; this.PositionItems(); } GenericSearchInputClass.prototype.SetButtonVisible = function (bVisible) { this.bDisplayButton = bVisible; this.PositionItems(); } /////////////////////////////////////////////////////////////////////////// // // Used to change the width of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetWidth = function (nWidth) { // Calculate the current size and location of the input_txt field as a // percentage of it's background var percentWidth = this.userinput_txt._width / this.userinputbg_mc._width; var percentX = (this.userinput_txt._x - this.userinputbg_mc._x) / this.userinputbg_mc._width; if (this.bDisplayButton && this.userbutton_mc != undefined) { this.userbutton_mc._x = (this.userinputbg_mc._x + nWidth) - this.userbutton_mc._width; this.userbuttonlabel_txt._x = this.userbutton_mc._x + (this.buttonlabelXPos - this.buttonXPos); var nSpace = this.buttonXPos - (this.inputXPos + this.inputWidth); var nInputWidth = this.userbutton_mc._x - (this.userinputbg_mc._x + nSpace); // Resize the background if (this.userinputbg_mc) { this.userinputbg_mc._width = nInputWidth; // Resize the input field to take the same percentage space and set it's location this.userinput_txt._width = nInputWidth * percentWidth; this.userinput_txt._x = this.userinputbg_mc._x + (nInputWidth * percentX); } else { this.userinput_txt._width = nInputWidth; } } else { // Resize the background to take up the full space if (this.userinputbg_mc) { this.userinputbg_mc._width = nWidth; // Resize the input field to take the same percentage space and set it's location this.userinput_txt._width = nWidth * percentWidth; this.userinput_txt._x = this.userinputbg_mc._x + (nWidth * percentX); } else { this.userinput_txt._width = nWidth; } } } /////////////////////////////////////////////////////////////////////////// // // Used to set the focus of the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetFocus = function () { Selection.setFocus(this.userinput_txt); Selection.setSelection(0,0); } /////////////////////////////////////////////////////////////////////////// // // Used to check to see if we hav focus // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.HasFocus = function () { return this.bHasFocus; } /////////////////////////////////////////////////////////////////////////// // // Used to change the decription in the textfield // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetDescriptionText = function(newText) { this.userTextField_txt.text = newText; } /////////////////////////////////////////////////////////////////////////// // // Make the search send a command on every keystroke // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SendReplyOnEveryKey = function(bKeystroke) { this.bKeystroke = bKeystroke; } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.SetItemLabel = function(newlabel) { // This is the same as setting the input text field this.SetInputField(newlabel); } GenericSearchInputClass.prototype.SetSearchInputField = function(newtext) { // First make sure there is a label to set if (this.userinput_txt != undefined) { this.userinput_txt.text = newtext; } return; } GenericSearchInputClass.prototype.GetSearchInputText = function() { return this.userinput_txt.text; } GenericSearchInputClass.prototype.SetSearchButtonLabel = function(buttonlabel) { // Make sure we have a button to set if (this.userbutton_mc != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Set the button label this.userbuttonlabel_txt.text = buttonlabel; // Get the new label width var newLabelTextWidth = this.userbuttonlabel_txt.textWidth; // Stretch the button for the extra label width this.userbutton_mc._width += newLabelTextWidth - oldLabelTextWidth; } return; } GenericSearchInputClass.prototype.EnableItem = function () { this.enabled = true; } GenericSearchInputClass.prototype.DisableItem = function () { this.enabled = false; } GenericSearchInputClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); attribute_array.push(newattrib); } GenericSearchInputClass.prototype.GetAttribute = function (attribute) { var value = undefined; for (var iAttrib in this.attribute_array) { if (this.attribute_array[iAttrib].attrib_str == attribute) { value = this.attribute_array[iAttrib].value; break; } } return value; } // set the text format to search input box GenericSearchInputClass.prototype.SetTextFormat = function (cTextFormat) { this.m_cTextFormat = this.userinput_txt.getTextFormat(); for( cItem in cTextFormat ) { if(cTextFormat[cItem]!=undefined) this.m_cTextFormat[cItem]=cTextFormat[cItem]; } // try to keep the orignal width but change the height according the text format var nTxtWidth = this.userinput_txt._width; var nTxtHeight = this.userinput_txt._height; var nTxtTop = this.userinput_txt._y; var nTxtLeft = this.userinput_txt._x; var cAutoSize = this.userinput_txt.autoSize; this.userinput_txt.setTextFormat(this.m_cTextFormat); this.userinput_txt.setNewTextFormat(this.m_cTextFormat); MakeLindowsTextVisible(this.userinput_txt) this.userinput_txt.autoSize = "left"; this.userinput_txt.autoSize = cAutoSize; this.userinput_txt._width = nTxtWidth; this.userinput_txt._height = this.m_cTextFormat.size + 6; this.userinput_txt._x = nTxtLeft; // Vertically enter the textfield relative to where it was before this.userinput_txt._y = nTxtTop + ((nTxtHeight - this.userinput_txt._height) / 2); // Adjust the background to match the changes in the text field this.userinputbg_mc._height += this.userinput_txt._height - nTxtHeight; this.userinputbg_mc._y += this.userinput_txt._y - nTxtTop; } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("normal"); } } else { this.userbutton_mc.gotoAndPlay("disabled"); } return; } GenericSearchInputClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.userbutton_mc.gotoAndPlay("selected"); } else { this.userbutton_mc.gotoAndPlay("over"); } } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onPress = function() { if (this.enabled == true) { this.userbutton_mc.gotoAndPlay("down"); } else { this.GotoDefaultState(); } } GenericSearchInputClass.prototype.onRelease = function() { this.GotoDefaultState(); // Send notification to the owner if (this.enabled == true) { _parent.DoCommand(CmdItemInvoked, this._parent, this.userinput_txt.text); } } GenericSearchInputClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onDragOver = function() { this.onPress(); } GenericSearchInputClass.prototype.onRollOut = function() { this.GotoDefaultState(); } GenericSearchInputClass.prototype.onSetFocus = function() { this.setFocusIntervalID = setInterval(this.setSelection, 100, this); this.bHasFocus = true; } GenericSearchInputClass.prototype.onKillFocus = function() { this.bHasFocus = false; } GenericSearchInputClass.prototype.setSelection = function(component) { clearInterval(component.setFocusIntervalID); Selection.setSelection(0, component.userinput_txt.text.length); } /////////////////////////////////////////////////////////////////////////// // // Handle special keystrokes (like the enter key) for the input field // /////////////////////////////////////////////////////////////////////////// GenericSearchInputClass.onKeyDown = function () { switch (Key.getCode()) { case 13: // enter if (fhgeneric_comp.bHasFocus) { fhgeneric_comp.onRelease(); } break; } } GenericSearchInputClass.onKeyUp = function () { if (fhgeneric_comp.bKeystroke) { if (fhgeneric_comp.bHasFocus) { switch (Key.getCode()) { case 33: //PageUp case 34: //PageDown case 35: //End case 36: //Home case 38: //Up case 40: //Down break; default: fhgeneric_comp.onRelease(); break; } } } } Key.addListener(GenericSearchInputClass); // Register the class Object.registerClass("FGenericFHSearchInput", GenericSearchInputClass); #endinitclip €€ actionsџџџџџOOџ€€€џ€Ьџ я`€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ЗџїXПў†A8Bƒ@4_}џA^аˆ/€’="0>| ѓ €у4ѓ\OЃК=ў€ў4єџ?„_џUўћљ љ€ѓ€ђя<ян€с0Шў%Ј'‘€Iц“ $€ёћ@€8 Я„КУ„‰ €0>о"Тˆђ€’У4yО†О}џПў4љџ8ЂƒРўя$€ти!‘щ€Iсл0ШўњэМ н€*ю€п€%4ŠУR‡џ{џџџ?џџя€€ Layer 1џџџџO€џџ€€е§`шеџџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSpriteр< р<џџџџ=ъ*fhgeneric_compLabelLABELlabel“ТJџїsEžЋ (Jяч€€џџџ?џџ€€ fhgeneric_compџџџџ€€€џ€€€h hdџ!Y{ inputbg_mc€€џџџ?џџ>@€€ Input BackgroundџџџџOџOџ€€џџCPicTextPu  hШч Шverdanaџ(PSearch input_txt€€џџџ?џџg!€€ Input TextџџџџO€џџ€€€" И " Иdџњy button_mc€€€ P1апƒШ_sansџџџџ(TextField (label): textfield_txt€€џџџ?џџ%€€ ButtonџџџџџOOџ€€€€џџџ?џџ?€€ label_txtџџџџOџџџ€€€€џџџ?џџ‹џ$ input_txt.onSetFocus = function(oldFocus) { inputbg_mc.textField_mc.gotoAndPlay("in"); // Tell the component that focus was received. fhgeneric_comp.onSetFocus(); } input_txt.onKillFocus = function(newFocus) { inputbg_mc.textField_mc.gotoAndPlay("out"); fhgeneric_comp.onKillFocus(); }€€ ActionsџџџџO€џџ€€џџџџџ—h:€Placeholder GraphicsДІ> џџџџ"PublishQTProperties::QTSndSettingsџџCQTAudioSettingsџџШ)џџ CDocumentPagePage 1Scene 10ј[>Bџџџџ&ШT?џџџџ€ Symbol 54Tween 36ќэ>Bџџџџњ?џџџџ€ Symbol 45HotSpot-<ІИ>Б Symbol 45џџџџх?џџџџ€ Symbol 41TextField Back),ЄИ>‚ Symbol 41џџџџ?џџџџ€ Symbol 33Input!|щЏ> Symbol 33џџџџZ?џџџџ€ Symbol 31TextField PlaceholderДІ> Q-Ї>" Symbol 31џџџџQ-Ї>џџџџ€ Symbol 30Border PlaceholderДІ> I-Ї>! Symbol 30џџџџI-Ї>џџџџ€ Symbol 28Text BGДІ> јІ>  Symbol 28џџџџОъЎ>џџџџ€ Symbol 18ButtonW-Ї># Symbol 18џџџџњ?џџџџ€ Symbol 14 MovieSearchџNw> Symbol 14џџџџњ?џџџџ€ Symbol 21Button PlaceholderДІ> LДІ>.\BlankButton.fla'Placeholder Graphics/Button PlaceholderЌЕІ>LДІ>шЎ>џџџџ€ Symbol 34TextEntryFieldMovie"­>а..\orange\toolbar.flaTextEntryFieldMovieUРА>­>аZ?џџџџ€ Symbol 35TextEntryFieldGraphic#Ѓ­>в..\orange\toolbar.flaTextEntryFieldGraphicЁ Ž>Ѓ­>вЊ?џџџџ€ Symbol 42 IconSearch*,LЗ>~.\skin_button_tb_search.fla IconSearchпTЗ>,LЗ>~ыЭ>џџџџ€ Symbol 43IconSearchStill+LЗ>{.\skin_button_tb_search.flaIconSearchStillLЗ>LЗ>{Я?џџџџ€ Symbol 47 Button BG/уФА>™.\skin_button_nav_sync.fla Button BGуФА>џџџџо?џџџџ€ Symbol 49search1%$—>UEP:\Design Team\Personal Folders\AJ\FlashHelp\Rev4Wildfire\toolbar.flasearchЕ@—>%$—>Uбњэ>џџџџ€ Symbol 51Tween 93A—>НEP:\Design Team\Personal Folders\AJ\FlashHelp\Rev4Wildfire\toolbar.flaTween 9A—>A—>НТћэ>џџџџ€ Symbol 52Tween 24h>—>ЙEP:\Design Team\Personal Folders\AJ\FlashHelp\Rev4Wildfire\toolbar.flaTween 2З?—>h>—>ЙСћэ>џџџџ€ Symbol 53Tween 15h>—>ЗEP:\Design Team\Personal Folders\AJ\FlashHelp\Rev4Wildfire\toolbar.flaTween 1К?—>h>—>З‹ћэ>џџџџ€ Symbol 61Generic FH Search Input=Uy_>FGenericFHSearchInputflashhelp_components.swf+C:\FlashComponents\FlashHelp_Components.flaGeneric FH Search Input >)?џџџџ&ШT?LabelLABELlabel“ТJџїsEžЋ (Jячџџџџ>џџ CMediaBitsMedia 1bt.png*..\..\..\..\..\..\..\..\..\jonathan\bt.pngC <р—> џџџџ2pаШhhhhџџџџРРРџ Дz PublishRNWKProperties::speed256K0!PublishGifProperties::PaletteName"PublishHtmlProperties::StartPaused0%PublishFormatProperties::htmlFileNametestskin_search_input.html PublishQTProperties::LayerOption PublishQTProperties::AlphaOption"PublishQTProperties::MatchMovieDim1PublishHtmlProperties::Loop1Vector::Debugging Permitted0PublishFormatProperties::jpeg0&PublishRNWKProperties::speedSingleISDN0&PublishRNWKProperties::singleRateAudio0PublishQTProperties::Width160$PublishPNGProperties::OptimizeColors1PublishHtmlProperties::Units0%PublishRNWKProperties::mediaCopyright(c) 2000#PublishRNWKProperties::flashBitRate1200PublishGifProperties::Smooth1Vector::Compress Movie1&PublishFormatProperties::flashFileNametestskin_search_input.swf%PublishFormatProperties::projectorMac0!PublishRNWKProperties::exportSMIL1 PublishRNWKProperties::speed384K0"PublishRNWKProperties::exportAudio1"PublishGifProperties::DitherOptionPublishHtmlProperties::Quality4(PublishHtmlProperties::VerticalAlignment1$PublishFormatProperties::pngFileNametestskin_search_input.pngPublishFormatProperties::html0'PublishRNWKProperties::mediaDescription"PublishPNGProperties::FilterOption!PublishHtmlProperties::DeviceFont0Vector::Override Sounds0PublishQTProperties::Flatten1PublishJpegProperties::DPI4718592PublishPNGProperties::BitDepth24-bit with AlphaPublishPNGProperties::Smooth1"PublishGifProperties::DitherSolids0PublishGifProperties::Interlace0"PublishHtmlProperties::DisplayMenu1*PublishHtmlProperties::HorizontalAlignment1Vector::Quality80Vector::Protect0Vector::Template0*PublishFormatProperties::generatorFileNametestskin_search_input.swtPublishFormatProperties::gif0$PublishRNWKProperties::mediaKeywords!PublishRNWKProperties::mediaTitlePublishRNWKProperties::speed28K1PublishGifProperties::Loop1PublishGifProperties::Width160#PublishFormatProperties::qtFileNametestskin_search_input.mov$PublishRNWKProperties::speedDualISDN0$PublishRNWKProperties::realVideoRate100000PublishJpegProperties::Quality80"PublishPNGProperties::DitherOption#PublishGifProperties::PaletteOption#PublishGifProperties::MatchMovieDim1PublishFormatProperties::flash1$PublishJpegProperties::MatchMovieDim1#PublishPNGProperties::PaletteOption#PublishPNGProperties::MatchMovieDim1PublishHtmlProperties::Align0-PublishFormatProperties::projectorWinFileNametestskin_search_input.exe#PublishQTProperties::PlayEveryFrame0"PublishJpegProperties::Progressive0"PublishPNGProperties::DitherSolids0PublishHtmlProperties::Height22PublishHtmlProperties::Width160Vector::Debugging PasswordVector::Omit Trace Actions0%PublishFormatProperties::jpegFileNametestskin_search_input.jpgPublishJpegProperties::Size0PublishPNGProperties::Interlace0PublishGifProperties::Height22'PublishHtmlProperties::TemplateFileNamegC:\Documents and Settings\RLinyard\Application Data\Macromedia\Flash MX\Configuration\Html\Default.html!PublishHtmlProperties::WindowMode0Vector::TopDown0-PublishFormatProperties::projectorMacFileNametestskin_search_input.hqxPublishFormatProperties::rnwk0PublishFormatProperties::png0PublishRNWKProperties::speed56K1PublishQTProperties::Height22%PublishPNGProperties::RemoveGradients0PublishGifProperties::MaxColors255'PublishGifProperties::TransparentOptionPublishGifProperties::LoopCountVector::Report0"PublishFormatProperties::generator0"PublishRNWKProperties::audioFormat0$PublishGifProperties::OptimizeColors1Vector::Version6Vector::Event Format0Vector::Stream Compress7PublishFormatProperties::qt0 PublishRNWKProperties::speed512K0PublishJpegProperties::Height22PublishPNGProperties::Height22PublishPNGProperties::Width160%PublishGifProperties::RemoveGradients0PublishHtmlProperties::Scale0Vector::Event Compress7"PublishRNWKProperties::mediaAuthor(PublishRNWKProperties::speedCorporateLAN0&PublishRNWKProperties::showBitrateDlog1"PublishRNWKProperties::exportFlash1PublishQTProperties::Looping0*PublishQTProperties::UseQTSoundCompression0PublishJpegProperties::Width160!PublishPNGProperties::PaletteName!PublishPNGProperties::Transparent0&PublishGifProperties::TransparentAlpha128PublishGifProperties::Animated0Vector::Stream Format0$PublishFormatProperties::gifFileNametestskin_search_input.gif"PublishQTProperties::PausedAtStart0%PublishQTProperties::ControllerOption0PublishPNGProperties::MaxColors255%PublishFormatProperties::rnwkFileNametestskin_search_input.smil%PublishFormatProperties::projectorWin0%PublishFormatProperties::defaultNames1PropSheet::ActiveTab1599џџџџќџџ 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џџШяЈ€џ™џџШяР€џЬџџШяи€џџџџ№€џ€џџџџџџџ€џџџџџџџ€џџџџџ€џџџџџ€џџџџџ€џf§џ`џџџџzџџџџ€™fџЊџЬџџџџџџ€џџџ*џџџ]џџџџџЊџџдџџџџџџ—k:€Placeholder GraphicsДІ> џџџџ"PublishQTProperties::QTSndSettingsџџCQTAudioSettingsџџШ