аЯрЁБс>ўџ $ўџџџкџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџRoot EntryџџџџџџџџpЊ|YЊrЯƒRASHАŽ„A]УЌ€GContentsџџџџ  +Page 1џџџџџџџџџџџџЄSymbol 1џџџџџџџџџџџџ§џџџџџџџџџџџџџџџ§џџџ џџџџџџџџ лџџџџџџџџ ў #"ўџџџ1!&'()*+,-fћўџџџQP3456789:;<K>?@ABCDEFGHIJўџџџLMNOўџџџўџџџRSTUVWXZ§џџџ[\]^_dabcieghŠjklmnopqrstuvўџџџ/‘z{|}~€Root EntryџџџџџџџџpЊ|YЊrЯƒRASH€ЋqqУЌ€GContentsџџџџQ +Page 1џџџџџџџџџџџџЄSymbol 1џџџџџџџџџџџџџџџџџџџџ§џџџ§џџџџџџџџџџџ лўџџџўџџџ?ў #џџџџџџџџ1&'()*+,-fћџџџџQP3456789:;<K>?@ABCDEFGHIJўџџџLMNOўџџџўџџџRSTUVWXZџџџџ[\]^_dabcieghŠjklmnopqrstuvўџџџџџџџ‘z{|}~€=ўџџџџџџџџџџџџџџџ  ўџџџ,џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ-./0123456789:;<ўџџџ> IџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџJKLMNOPўџџџRTџџџџUVWXYZ[\]^_`abcdefgўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџ    ўџџџџџџџџџџџџџџџўџџџ!"#$%&'()*+@џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџABCDEFGHSџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџSymbol 2џџџџ!щSymbol 3џџџџџџџџџџџџAВSymbol 4џџџџџџџџ‘н Symbol 5 џџџџ=‡Symbol 2џџџџ!щSymbol 3џџџџџџџџџџџџAВSymbol 4џџџџџџџџ‘н Symbol 5 џџџџ=‡‚ƒўџџџ…†‡ˆ‰Š‹ŒŽ–’“”•Њ—˜™š›œžŸ ЁЂЃўџџџЅІЇЈЉмЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдўџџџжзийўџџџлўџџџнопрстуфхячшщъыьэюўџџџ№ёђѓєѕіїјљњћќ§ўџSymbol 9џџџџџџџџџџџџе;Symbol 8 џџџџц:Symbol 7џџџџџџџџiiSymbol 6џџџџџџџџџџџџ`ЌSymbol 10 џџџџ2ySymbol 12џџџџџџџџџџџџtяSymbol 13 џџџџ pSymbol 14џџџџџџџџџџџџ`ˆ"    ўџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџSymbol 23џџџџм6#Symbol 24џџџџџџџџу7'Symbol 25џџџџџџџџџџџџ7'џџџџџџџџџџџџџdџџ €€ џџџ?џџY4€€џџџџ џџџџ&џdџџ €€ џџџ?џџ—;€€џџџџ џџџџЬЬЬdЬЬЬџ €€џџџ?џџ3€€ Icon PlaceholderџџџџOџOџ€€€€џџџ?џџ‚rstop();€€€ џџџ?џџ%stop();€€€ џџџ?џџstop();€€€ џџџ?џџpbstop();€€€ џџџ?џџ’4stop();€€€џџџ?џџкstop();€€ ActionsџџџџџOOџ€€€€џџџ?џџdP€€€џџџ?џџnormalTM€€€ џџџ?џџoverЮ9€€€ џџџ?џџdownБ;€€€ џџџ?џџselected…L€€€ џџџ?џџdisabled>Q€€ LabelsџџџџO€џџ€€€џџCPicPageџџ CPicLayerџџ CPicFrame€€џџї‘ U­фўŠџ4еХ”ХŒџцў4еџ•­tхў4U;•Х‹џ4URu4U;;w4еџ”R‰џ4еХ;чўvџџ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 GenericButtonClass() { this.enabled = true; this.selected = false; this.userbutton_mc = this._parent.button_mc; this.userleft_mc = this._parent.left_mc; this.userright_mc = this._parent.right_mc; this.usericon_mc = this._parent.icon_mc; this.usertextfield_mc = this._parent.textfield_mc; if (this.usertextfield_mc.label_mc != undefined) { this.userlabel_txt = this.usertextfield_mc.label_mc.label_txt; } else { this.userlabel_txt = this._parent.label_txt; } this.attribute_array = new array(); this.bJustSelected = false; this.bSelectedWhenPressed = false; this.bStopped = false; this.lastState_str = ""; } GenericButtonClass.prototype = new MovieClip(); // Handles initialization of the button features GenericButtonClass.prototype.onLoad = function () { // Set special values for the fields this.userlabel_txt.autoSize = true; this._parent._focusrect = true; this._parent.focusEnabled = true; this._parent.tabChildren = false; // Goto the first frame because this represents the proper size of the button this.GotoAndStopFrame(1); this.bStopped = true; // Let the container know we are loaded this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.SetItemLabel = function (newlabel) { // First make sure there is a label to set if (this.userlabel_txt != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldLabelX = this.userlabџџCPicPageџџ CPicLayerџџ CPicFrame€€џїщUіŠфŠџЪ§8іџџџZџџъЪ§4uіŠ6џ0@8Zџџ Ъ§џvЋ'\ў!'Уvu‘ " ФљvЋ‘ ‘ ‘‘vuФ&"џџџџ‘џџџ?џџ€€ BGџџџџO€џџ€€€€џџџџѓ'№8Tbџџel_txt._x; var oldButtonX = this.userbutton_mc._x; var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userlabel_txt.textWidth; var oldIconCenterX = this.usericon_mc._x + (this.usericon_mc._width / 2); var coordButton = this.userbutton_mc.getBounds(this._parent); var oldRightOffset = coordButton.xMax - this.userright_mc._x; // Set the new label this.userlabel_txt.text = newlabel; // Get the new label width var newLabelTextWidth = this.userlabel_txt.textWidth; // Scale the button based on how much the label scaled var widthDiff = oldButtonWidth - oldLabelTextWidth; var newButtonWidth = newLabelTextWidth + widthDiff; this.userbutton_mc._width = newButtonWidth; // Move the right_mc the appropriate distance right coordButton = this.userbutton_mc.getBounds(this._parent); this.userright_mc._x = coordButton.xMax - oldRightOffset; // Move the icon_mc to the same position relative to the button_mc var oldIconPercent = (oldIconCenterX - oldButtonX) / oldButtonWidth; var newIconCenterX = coordButton.xMin + (newButtonWidth * oldIconPercent); this.usericon_mc._x = newIconCenterX - (this.usericon_mc._width / 2); } return; } GenericButtonClass.prototype.EnableItem = function () { this.enabled = true; this._parent.useHandCursor = true; this.GotoDefaultState(); } GenericButtonClass.prototype.DisableItem = function () { this.enabled = false; this._parent.useHandCursor = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SelectedWhenPressed = function () { this.bSelectedWhenPressed = true; return; } GenericButtonClass.prototype.DisplaySelected = function () { this.selected = true; this.bJustSelected = true; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplayNormal = function () { if ((this.selected) || (this.bStopped)) { this.selected = false; this.GotoDefaultState(); } } GenericButtonClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); this.attribute_array.push(newattrib); } GenericButtonClass.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; } GenericButtonClass.prototype.GotoAndStopFrame = function(frame) { this.userbutton_mc.gotoAndStop(frame); this.userleft_mc.gotoAndStop(frame); this.userright_mc.gotoAndStop(frame); this.usericon_mc.gotoAndStop(frame); } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.GotoButtonState = function(state) { if ((this.bJustSelected) || (state != "selected")) { this.bJustSelected = false; // Only perform the action if this is a change of state if (state != this.lastState_str) { this.userbutton_mc.gotoAndPlay(state); this.userleft_mc.gotoAndPlay(state); this.userright_mc.gotoAndPlay(state); this.usericon_mc.gotoAndPlay(state); this.usertextfield_mc.gotoAndPlay(state); this.lastState_str = state; } } } GenericButtonClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("normal"); } } else { this.GotoButtonState("disabled"); } return; } GenericButtonClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("over"); } } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onPress = function() { if ((this.enabled) && (!this.selected)) { this.GotoButtonState("down"); } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onRelease = function() { // Return the button to the default state if it is not going // to be shown as selected. if (!this.bSelectedWhenPressed) { this.GotoDefaultState(); } // Send notification to the owner if ((this.enabled == true) && (!this.selected)) { _parent.DoCommand(CmdItemInvoked, this._parent, 0); } } GenericButtonClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericButtonClass.prototype.onDragOver = function() { this.onPress(); } GenericButtonClass.prototype.hitTest = function() { var bHit = false; if ((!this.userleft_mc.hitTest(_xmouse, _ymouse, true)) && (!this.userbutton_mc.hitTest(_xmouse, _ymouse, true)) && (!this.userright_mc.hitTest(_xmouse, _ymouse, true))) { bHit = true; } return bHit; } GenericButtonClass.prototype.onRollOut = function() { // See if the mouse has moved out over to one of the other movie clips // If so, don't go back to normal if (this.hitTest()) { this.GotoDefaultState(); } } //////////////////////////////////////////////////////////‚ƒўџџџ…†‡ˆ‰Š‹ŒŽ–’“”•Њ—˜™š›œžŸ ЁЂЃўџџџЅІЇЈЉмЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдўџџџжзийўџџџлўџџџнопрстуфхячшщъыьэюўџџџ№ёђѓєѕіїјљњћќ§ўџ    ўџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ///////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// function onRollOver() { fhgeneric_comp.onRollOver(); } function onPress() { fhgeneric_comp.onPress(); } function onRelease() { fhgeneric_comp.onRelease(); } function onDragOut() { fhgeneric_comp.onDragOut(); } function onDragOver() { fhgeneric_comp.onDragOver(); } function onRollOut() { fhgeneric_comp.onRollOut(); } button_mc.onRollOver = onRollOver; button_mc.onPress =   ўџџџ"#$%&'()*+,-./0123456789:;<=>?@ўџџџBCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_oabcdefghкjklmnўџџџpqrs„uvwxyz{|}~€џџ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 GenericButtonClass() { this.enabled = true; this.selected = false; this.userbutton_mc = this._parent.button_mc; this.userleft_mc = this._parent.left_mc; this.userright_mc = this._parent.right_mc; this.usericon_mc = this._parent.icon_mc; this.usertextfield_mc = this._parent.textfield_mc; if (this.usertextfield_mc.label_mc != undefined) { this.userlabel_txt = this.usertextfield_mc.label_mc.label_txt; } else { this.userlabel_txt = this._parent.label_txt; } this.attribute_array = new array(); this.bJustSelected = false; this.bSelectedWhenPressed = false; this.bStopped = false; this.lastState_str = ""; } GenericButtonClass.prototype = new MovieClip(); // Handles initialization of the button features GenericButtonClass.prototype.onLoad = function () { // Set special values for the fields this.userlabel_txt.autoSize = true; this._parent._focusrect = true; this._parent.focusEnabled = true; this._parent.tabChildren = false; // Goto the first frame because this represents the proper size of the button this.GotoAndStopFrame(1); this.bStopped = true; // Let the container know we are loaded this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.SetItemLabel = function (newlabel) { // First make sure there is a label to set if (this.userlabel_txt != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldLabelX = this.userlabel_txt._x; var oldButtonX = this.userbutton_mc._x; var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userlabel_txt.textWidth; var oldIconCenterX = this.usericon_mc._x + (this.usericon_mc._width / 2); var coordButton = this.userbutton_mc.getBounds(this._parent); var oldRightOffset = coordButton.xMax - this.userright_mc._x; // Set the new label this.userlabel_txt.text = newlabel; // Get the new label width var newLabelTextWidth = this.userlabel_txt.textWidth; // Scale the button based on how much the label scaled var widthDiff = oldButtonWidth - oldLabelTextWidth; var newButtonWidth = newLabelTextWidth + widthDiff; this.userbutton_mc._width = newButtonWidth; // Move the right_mc the appropriate distance right coordButton = this.userbutton_mc.getBounds(this._parent); this.userright_mc._x = coordButton.xMax - oldRightOffset; // Move the icon_mc to the same position relative to the button_mc var oldIconPercent = (oldIconCenterX - oldButtonX) / oldButtonWidth; var newIconCenterX = coordButton.xMin + (newButtonWidth * oldIconPercent); this.usericon_mc._x = newIconCenterX - (this.usericon_mc._width / 2); } return; } GenericButtonClass.prototype.EnableItem = function () { this.enabled = true; this._parent.useHandCursor = true; this.GotoDefaultState(); } GenericButtonClass.prototype.DisableItem = function () { this.enabled = false; this._parent.useHandCursor = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SelectedWhenPressed = function () { this.bSelectedWhenPressed = true; return; } GenericButtonClass.prototype.DisplaySelected = function () { this.selected = true; this.bJustSelected = true; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplayNormal = function () { if ((this.selected) || (this.bStopped)) { this.selected = false; this.GotoDefaultState(); } } GenericButtonClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); this.attribute_array.push(newattrib); } GenericButtonClass.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; } GenericButtonClass.prototype.GotoAndStopFrame = function(frame) { this.userbutton_mc.gotoAndStop(frame); this.userleft_mc.gotoAndStop(frame); this.userright_mc.gotoAndStop(frame); thisџџџџO€џџ€€џO€џџџџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicShape€€€џџџџ§џџџПџџџџзАЖіяњњ   јјчяљшњј№јчќјѓћћ  (ѓ(ѓсјё§љ§ёє4х0тў№ўњњђњїёњњ)єњю1SРф0тўБnњяѕфхияѕђѕмци ё"ё$Symbol 23џџџџм6#Symbol 24џџџџџџџџџџџџу7'џџџџџџџџџџџџџџџџџџџџџџџџџџ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 GenericButtonClass() { this.enabled = true; this.selected = false; this.userbutton_mc = this._parent.button_mc; this.uonPress; button_mc.onRelease = onRelease; button_mc.onDragOut = onDragOut; button_mc.onDragOver = onDragOver; button_mc.onRollOut = onRollOut; left_mc.onRollOver = onRollOver; left_mc.onPress = onPress; left_mc.onRelease = onRelease; left_mc.onDragOut = onDragOut; left_mc.onDragOver = onDragOver; left_mc.onRollOut = onRollOut; right_mc.onRollOver = onRollOver; right_mc.onPress = onPress; right_mc.onRelease = onRelease; right_mc.onDragOut = onDragOut; right_mc.onDragOver = onDragOver; right_mc.onRollOut = џџ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 GenericButtonClass() { this.enabled = true; this.selected = false; this.userbutton_mc = this._parent.button_mc; this.userleft_mc = this._parent.left_mc; this.userright_mc = this._parent.right_mc; this.usericon_mc = this._parent.icon_mc; if (this._parent.label_mc != undefined) { this.userlabel_txt = this._parent.label_mc.label_txt; } else { this.userlabel_txt = this._parent.label_txt; } this.attribute_array = new array(); this.bJustSelected = false; this.bSelectedWhenPressed = false; this.bStopped = false; this.lastState_str = ""; } GenericButtonClass.prototype = new MovieClip(); // Lets the container know we are loaded. GenericButtonClass.prototype.onLoad = function () { this.userlabel_txt.autoSize = true; this.GotoAndStopFrame(1); this.bStopped = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.SetItemLabel = function (newlabel) { // First make sure there is a label to set if (this.userlabel_txt != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldLabelX = this.userlabel_txt._x; var oldButtonX = this.userbutton_mc._x; var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userlabel_txt.textWidth; var oldIconCenterX = this.usericon_mc._x + (this.usericon_mc._width / 2); var coordButton = this.userbutton_mc.getBounds(this._parent); var oldRightOffset = coordButton.xMax - this.userright_mc._x; // Set the new label this.userlabel_txt.text = newlabel; // Get the new label width var newLabelTextWidth = this.userlabel_txt.textWidth; // Scale the button based on how much the label scaled var widthDiff = oldButtonWidth - oldLabelTextWidth; var newButtonWidth = newLabelTextWidth + widthDiff; this.userbutton_mc._width = newButtonWidth; // Move the right_mc the appropriate distance right coordButton = this.userbutton_mc.getBounds(this._parent); this.userright_mc._x = coordButton.xMax - oldRightOffset; // Move the icon_mc to the same position relative to the button_mc var oldIconPercent = (oldIconCenterX - oldButtonX) / oldButtonWidth; var newIconCenterX = coordButton.xMin + (newButtonWidth * oldIconPercent); this.usericon_mc._x = newIconCenterX - (this.usericon_mc._width / 2); } return; } GenericButtonClass.prototype.EnableItem = function () { this.enabled = true; this.userbutton_mc.useHandCursor = true; this.userleft_mc.useHandCursor = true; this.userright_mc.useHandCursor = true; this.usericon_mc.useHandCursor = true; this.GotoDefaultState(); } GenericButtonClass.prototype.DisableItem = function () { this.enabled = false; this.userbutton_mc.useHandCursor = false; this.userleft_mc.useHandCursor = false; this.userright_mc.useHandCursor = false; this.usericon_mc.useHandCursor = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SelectedWhenPressed = function () { this.bSelectedWhenPressed = true; return; } GenericButtonClass.prototype.DisplaySelected = function () { this.selected = true; this.bJustSelected = true; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplayNormal = function () { if ((this.selected) || (this.bStopped)) { this.selected = false; this.GotoDefaultState(); } } GenericButtonClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); this.attribute_array.push(newattrib); } GenericButtonClass.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; } GenericButtonClass.prototype.GotoAndStopFrame = function(frame) { this.userbutton_mc.gotoAndStop(frame); this.userleft_mc.gotoAndStop(frame); this.userright_mc.gotoAndStop(frame); this.usericon_mc.gotoAndStop(frame); } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.GotoButtonState = function(state) { if ((this.bJustSelected) || (state != "selected")) { this.bJustSelected = false; // Only perform the action if this is a change of state if (state != this.lastState_str) { this.userbutton_mc.gotoAndPlay(state); this.userleft_mc.gotoAndPlay(state); this.userright_mc.gotoAndPlay(state); this.usericon_mc.gotoAndPlay(state); this.lastState_str = state; } } } GenericButtonClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("normal"); } } else { this.GotoButtonState("disabled"); } return; } GenericButtonClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { ifџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ‹yџš #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 GenericButtonClass() { this.enabled = true; this.selected = false; this.userbutton_mc = this._parent.button_mc; this.userleft_mc = this._parent.left_mc; this.userright_mc = this._parent.right_mc; this.usericon_mc = this._parent.icon_mc; this.userlabel_txt = this._parent.label_txt; this.attribute_array = new array(); this.bJustSelected = false; } GenericButtonClass.prototype = new MovieClip(); // Lets the container know we are loaded. GenericButtonClass.prototype.onLoad = function () { this.userlabel_txt.autoSize = true; this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.SetItemLabel = function (newlabel) { // First make sure there is a label to set if (this.userlabel_txt != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldLabelX = this.userlabel_txt._x; var oldButtonX = this.userbutton_mc._x; var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userlabel_txt.textWidth; var oldIconX = this.usericon_mc._x; var coordButton = this.userbutton_mc.getBounds(this._parent); var oldRightOffset = coordButton.xMax - this.userright_mc._x; // Set the new label this.userlabel_txt.text = newlabel; // Get the new label width var newLabelTextWidth = this.userlabel_txt.textWidth; // Scale the button based on how much the label scaled var widthDiff = oldButtonWidth - oldLabelTextWidth; var newButtonWidth = newLabelTextWidth + widthDiff; this.userbutton_mc._width = newButtonWidth; // Move the right_mc the appropriate distance right coordButton = this.userbutton_mc.getBounds(this._parent); this.userright_mc._x = coordButton.xMax - oldRightOffset; // Move the icon_mc to the same position relative to the button_mc var oldIconPercent = (oldIconX - oldButtonX) / oldButtonWidth; this.usericon_mc._x = coordButton.xMin + (newButtonWidth * oldIconPercent); } return; } GenericButtonClass.prototype.EnableItem = function () { this.enabled = true; this.userbutton_mc.useHandCursor = true; this.userleft_mc.useHandCursor = true; this.userright_mc.useHandCursor = true; this.usericon_mc.useHandCursor = true; this.GotoDefaultState(); } GenericButtonClass.prototype.DisableItem = function () { this.enabled = false; this.userbutton_mc.useHandCursor = false; this.userleft_mc.useHandCursor = false; this.userright_mc.useHandCursor = false; this.usericon_mc.useHandCursor = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplaySelected = function () { this.selected = true; this.bJustSelected = true; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplayNormal = function () { if (this.selected) { this.selected = false; this.GotoDefaultState(); } } GenericButtonClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); this.attribute_array.push(newattrib); } GenericButtonClass.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 // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.GotoButtonState = function(state) { if ((this.bJustSelected) || (state != "selected")) { this.bJustSelected = false; this.userbutton_mc.gotoAndPlay(state); this.userleft_mc.gotoAndPlay(state); this.userright_mc.gotoAndPlay(state); this.usericon_mc.gotoAndPlay(state); } } GenericButtonClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("normal"); } } else { this.GotoButtonState("disabled"); } return; } GenericButtonClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("over"); } } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onPress = function() { if (this.enabled == true) { this.GotoButtonState("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 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.onRollOut = function() { fhgeneric_comp.onRollOut(); } left_mc.onRollOver = button_mc.onRollOver; left_mc.onPress = button_mc.onPress; left_mc.onRelease = button_mc.onRelease; left_mc.onDragOut = button_mc.onDragOut; left_mc.onRollOut = button_mc.onRollOut; right_mc.onRollOver = button_mc.onRollOver; right_mc.onPress = button_mc.onPress; right_mc.onRelease = button_mc.onRelease; right_mc.onDragOut = button_mc.onDragOut; right_mc.onRollOut = button_mc.onRollOut; icon_mc.onRollOver = button_mc.onRollOver; icon_mc.onPress = button_mc.onPress; icon_mc.onRelease = button_mc.onRelease; icon_mc.onDragOut = button_mc.onDragOut; icon_mc.onRollOut = button_mc.onRollOut; // Register the class Object.registerClass("FGenericFHButton", GenericButtonClass); #endinitclip €€ actionsџџџџџOOџ€€ (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("over"); } } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onPress = function() { if ((this.enabled) && (!this.selected)) { this.GotoButtonState("down"); } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onRelease = function() { // Return the button to the default state if it is not going // to be shown as selected. if (!this.bSelectedWhenPressed) { this.GotoDefaultState(); } // Send notification to the owner if ((this.enabled == true) && (!this.selected)) { _parent.DoCommand(CmdItemInvoked, this._parent, 0); } } GenericButtonClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericButtonClass.prototype.onRollOut = function() { // See if the mouse has moved out over to one of the other movie clips // If so, don't go back to normal if ((!this.userleft_mc.hitTest(_xmouse, _ymouse, true)) && (!this.userbutton_mc.hitTest(_xmouse, _ymouse, true)) && (!this.userright_mc.hitTest(_xmouse, _ymouse, true))) { this.GotoDefaultState(); } } /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// function onRollOver() { fhgeneric_comp.onRollOver(); } function onPress() { fhgeneric_comp.onPress(); } function onRelease() { fhgeneric_comp.onRelease(); } function onDragOut() { fhgeneric_comp.onDragOut(); } function onRollOut() { fhgeneric_comp.onRollOut(); } button_mc.onRollOver = onRollOver; button_mc.onPress = onPress; button_mc.onRelease = onRelease; button_mc.onDragOut = onDragOut; button_mc.onRollOut = onRollOut; left_mc.onRollOver = onRollOver; left_mc.onPress = onPress; left_mc.onRelease = onRelease; left_mc.onDragOut = onDragOut; left_mc.onRollOut = onRollOut; right_mc.onRollOver = onRollOver; right_mc.onPress = onPress; right_mc.onRelease = onRelease; right_mc.onDragOut = onDragOut; right_mc.onRollOut = onRollOut; icon_mc.onRollOver = onRollOver; icon_mc.onPress = onPress; icon_mc.onRelease = onRelease; icon_mc.onDragOut = onDragOut; icon_mc.onRollOut = onRollOut; // Register the class Object.registerClass("FGenericFHButton", GenericButtonClass); #endinitclip €€ actionsџџџџџOOџ€€€€€ џџџ?џџselectedfonRollOut; icon_mc.onRollOver = onRollOver; icon_mc.onPress = onPress; icon_mc.onRelease = onRelease; icon_mc.onDragOut = onDragOut; icon_mc.onDragOver = onDragOver; icon_mc.onRollOut = onRollOut; // Register the class Object.registerClass("FGenericFHButton", GenericButtonClass); #endinitclip €€ actionsџџџџџOOџ€€tion0"PublishQTProperties::PausedAtStart0џџџџќџџ CColorDefџ €џ €џ €3serleft_mc = this._parent.left_mc; this.userright_mc = this._parent.right_mc; this.usericon_mc = this._parent.icon_mc; this.usertextfield_mc = this._parent.textfield_mc; if (this.usertextfield_mc.label_mc != undefined) { this.userlabel_txt = this.usertextfield_mc.label_mc.label_txt; } else { this.userlabel_txt = this._parent.label_txt; } this.attribute_array = new array(); this.bJustSelected = false; this.bJustPressed = false; this.bSelectedWhenPressed = false; this.bStopped = false; this.lastState_str = ""; } GenericButtonClass.prototype = new MovieClip(); // Handles initialization of the button features GenericButtonClass.prototype.onLoad = function () { // Set special values for the fields this.userlabel_txt.autoSize = true; this._parent._focusrect = true; this._parent.focusEnabled = true; this._parent.tabChildren = false; // Goto the first frame because this represents the proper size of the button this.GotoAndStopFrame(1); this.bStopped = true; // Let the container know we are loaded this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.SetItemLabel = function (newlabel) { // First make sure there is a label to set if (this.userlabel_txt != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldLabelX = this.userlabel_txt._x; var oldButtonX = this.userbutton_mc._x; var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userlabel_txt.textWidth; var oldIconCenterX = this.usericon_mc._x + (this.usericon_mc._width / 2); var coordButton = this.userbutton_mc.getBounds(this._parent); var oldRightOffset = coordButton.xMax - this.userright_mc._x; // Set the new label this.userlabel_txt.text = newlabel; // Get the new label width var newLabelTextWidth = this.userlabel_txt.textWidth; // Scale the button based on how much the label scaled var widthDiff = oldButtonWidth - oldLabelTextWidth; var newButtonWidth = newLabelTextWidth + widthDiff; this.userbutton_mc._width = newButtonWidth; // Move the right_mc the appropriate distance right coordButton = this.userbutton_mc.getBounds(this._parent); this.userright_mc._x = coordButton.xMax - oldRightOffset; // Move the icon_mc to the same position relative to the button_mc var oldIconPercent = (oldIconCenterX - oldButtonX) / oldButtonWidth; var newIconCenterX = coordButton.xMin + (newButtonWidth * oldIconPercent); this.usericon_mc._x = newIconCenterX - (this.usericon_mc._width / 2); } return; } GenericButtonClass.prototype.EnableItem = function () { this.enabled = true; this._parent.useHandCursor = true; this.GotoDefaultState(); } GenericButtonClass.prototype.DisableItem = function () { this.enabled = false; this._parent.useHandCursor = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SelectedWhenPressed = function () { this.bSelectedWhenPressed = true; return; } GenericButtonClass.prototype.DisplaySelected = function () { this.selected = true; this.bJustSelected = true; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplayNormal = function () { this.bJustPressed = false; if ((this.selected) || (this.bStopped)) { this.selected = false; this.GotoDefaultState(); } } GenericButtonClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); this.attribute_array.push(newattrib); } GenericButtonClass.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; } GenericButtonClass.prototype.GotoAndStopFrame = function(frame) { this.userbutton_mc.gotoAndStop(frame)‚ƒ„…†‡ˆ‰ўџџџ‹ŒŽўџџџўџџџ”’“Ё•–—™š›œžŸ НЂЃЄЅІЇЈЉЊЋТ­гЏАБВГДЕЖЗИЙКЛМаОПРСўџџџУФўџџџЦЧШЩЪЫЬЭЮЯєбвўџџџдежзи.џџџџџџџџwнопрстфх цчшщъыьэюя№ёђѓѕіїјљњўџџџќ§џ˜; this.userleft_mc.gotoAndStop(frame); this.userright_mc.gotoAndStop(frame); this.usericon_mc.gotoAndStop(frame); } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.GotoButtonState = function(state) { if ((this.bJustSelected) || (state != "selected")) { this.bJustSelected = false; // Only perform the action if this is a change of state if (state != this.lastState_str) { this.userbutton_mc.gotoAndPlay(state); this.userleft_mc.gotoAndPlay(state); this.userright_mc.gotoAndPlay(state); this.usericon_mc.gotoAndPlay(state); this.usertextfield_mc.gotoAndPlay(state); this.lastState_str = state; } } } GenericButtonClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("normal"); } } else { this.GotoButtonState("disabled"); } return; } GenericButtonClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("over"); } } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onPress = function() { if ((this.enabled) && (!this.selected)) { this.GotoButtonState("down"); } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onRelease = function() { // Return the button to the default state if it is not going // to be shown as selected. if (!this.bSelectedWhenPressed) { this.GotoDefaultState(); } // Send notification to the owner if ((this.enabled == true) && (!this.selected)) { _parent.DoCommand(CmdItemInvoked, this._parent, 0); // Note that we were just pressed this.bJustPressed = true; } } GenericButtonClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericButtonClass.prototype.onDragOver = function() { this.onPress(); } GenericButtonClass.prototype.hitTest = function() { var bHit = false; if (this._parent.hitTest(_xmouse, _ymouse, true)) { bHit = true; } return bHit; } GenericButtonClass.prototype.onRollOut = function() { // See if the mouse has moved out over to one of the other movie clips // If so, don't go back to normal. Also, for some reason we get a onRollOut // call when a button is pressed and we don't want to go to the default state automatically // in that case. We will wait for the container to set our state. if ((!this.hitTest()) && (!this.bJustPressed)) { this.GotoDefaultState(); } } /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// function onRollOver() { fhgeneric_comp.onRollOver(); } function onPress() { fhgeneric_comp.onPress(); } function onReleaџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџvџ›! #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 GenericButtonClass() { this.enabled = true; this.selected = false; this.userbutton_mc = this._parent.button_mc; this.userleft_mc = this._parent.left_mc; this.userright_mc = this._parent.right_mc; this.usericon_mc = this._parent.icon_mc; this.usertextfield_mc = this._parent.textfield_mc; if (this.usertextfield_mc.label_mc != undefined) { this.userlabel_txt = this.usertextfield_mc.label_mc.label_txt; } else { this.userlabel_txt = this._parent.label_txt; } this.attribute_array = new array(); this.bJustSelected = false; this.bSelectedWhenPressed = false; this.bStopped = false; this.lastState_str = ""; } GenericButtonClass.prototype = new MovieClip(); // Handles initialization of the button features GenericButtonClass.prototype.onLoad = function () { // Set special values for the fields this.userlabel_txt.autoSize = true; this._parent._focusrect = true; this._parent.focusEnabled = true; this._parent.tabChildren = false; // Goto the first frame because this represents the proper size of the button this.GotoAndStopFrame(1); this.bStopped = true; // Let the container know we are loaded this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.SetItemLabel = function (newlabel) { // First make sure there is a label to set if (this.userlabel_txt != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldLabelX = this.userlabse() { fhgeneric_comp.onRelease(); } function onDragOut() { fhgeneric_comp.onDragOut(); } function onDragOver() { fhgeneric_comp.onDragOver(); } function onRollOut() { fhgeneric_comp.onRollOut(); } button_mc.onRollOver = onRollOver; button_mc.onPress = onPress; button_mc.onRelease = onRelease; button_mc.onDragOut = onDragOut; button_mc.onDragOver = onDragOver; button_mc.onRollOut = onRollOut; left_mc.onRollOver = onRollOver; left_mc.onPress = onPress; left_mc.onRelease = onRelease; left_mc.onDragOut = onDragOut; left_mc.onDragOver = onDragOver; left_mc.onRollOut = onRollOut; right_mc.onRollOver = onRollOver; right_mc.onPress = onPress; right_mc.onRelease = onRelease; right_mc.onDragOut = onDragOut; right_mc.onDragOver = onDragOver; right_mc.onRollOut = onRollOut; icon_mc.onRollOver = onRollOver; icon_mc.onPress = onPress; icon_mc.onRelease = onRelease; icon_mc.onDragOut = onDragOut; icon_mc.onDragOver = onDragOver; icon_mc.onRollOut = onRollOut; // Register the class Object.registerClass("FGenericFHButton.usericon_mc.gotoAndStop(frame); } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.GotoButtonState = function(state) { if ((this.bJustSelected) || (state != "selected")) { this.bJustSelected = false; // Only perform the action if this is a change of state if (state != this.lastState_str) { this.userbutton_mc.gotoAndPlay(state); this.userleft_mc.gotoAndPlay(state); this.userright_mc.gotoAndPlay(state); this.usericon_mc.gotoAndPlay(state); this.usertextfield_mc.gotoAndPlay(state); this.lastState_str = state; } } } GenericButtonClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("normal"); } } else { this.GotoButtonState("disabled"); } return; } GenericButtonClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("over"); } } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onPress = function() { if ((this.enabled) && (!this.selected)) { this.GotoButtonState("down"); } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onRelease = function() { el_txt._x; var oldButtonX = this.userbutton_mc._x; var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userlabel_txt.textWidth; var oldIconCenterX = this.usericon_mc._x + (this.usericon_mc._width / 2); var coordButton = this.userbutton_mc.getBounds(this._parent); var oldRightOffset = coordButton.xMax - this.userright_mc._x; // Set the new label this.userlabel_txt.text = newlabel; // Get the new label width var newLabelTextWidth = this.userlabel_txt.textWidth; // Scale the button based on how much the label scaled var widthDiff = oldButtonWidth - oldLabelTextWidth; var newButtonWidth = newLabelTextWidth + widthDiff; this.userbutton_mc._width = newButtonWidth; // Move the right_mc the appropriate distance right coordButton = this.userbutton_mc.getBounds(this._parent); this.userright_mc._x = coordButton.xMax - oldRightOffset; // Move the icon_mc to the same position relative to the button_mc var oldIconPercent = (oldIconCenterX - oldButtonX) / oldButtonWidth; var newIconCenterX = coordButton.xMin + (newButtonWidth * oldIconPercent); this.usericon_mc._x = newIconCenterX - (this.usericon_mc._width / 2); } return; } GenericButtonClass.prototype.EnableItem = function () { this.enabled = true; this.userbutton_mc.useHandCursor = true; this.userleft_mc.useHandCursor = true; this.userright_mc.useHandCursor = true; this.usericon_mc.useHandCursor = true; this.GotoDefaultState(); } GenericButtonClass.prototype.DisableItem = function () { this.enabled = false; this.userbutton_mc.useHandCursor = false; this.userleft_mc.useHandCursor = false; this.userright_mc.useHandCursor = false; this.usericon_mc.useHandCursor = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SelectedWhenPressed = function () { this.bSelectedWhenPressed = true; return; } GenericButtonClass.prototype.DisplaySelected = function () { this.selected = true; this.bJustSelected = true; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplayNormal = function () { if ((this.selected) || (this.bStopped)) { this.selected = false; this.GotoDefaultState(); } } GenericButtonClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); this.attribute_array.push(newattrib); } GenericButtonClass.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; } GenericButtonClass.prototype.GotoAndStopFrame = function(frame) { this.userbutton_mc.gotoAndStop(frame); this.userleft_mc.gotoAndStop(frame); this.userright_mc.gotoAndStop(frame); this.usericon_mc.gotoAndStop(frame); } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.GotoButtonState = function(state) { if ((this.bJustSelected) || (state != "selected")) { this.bJustSelected = false; // Only perform the action if this is a change of state if (state != this.lastState_str) { this.userbutton_mc.gotoAndPlay(state); this.userleft_mc.gotoAndPlay(state); this.userright_mc.gotoAndPlay(state); this.usericon_mc.gotoAndPlay(state); this.usertextfield_mc.gotoAndPlay(state); this.lastState_str = state; } } } GenericButtonClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("normal"); } } else { this.GotoButtonState("disabled"); } return; } GenericButtonClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("over"); } } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onPress = function() { if ((this.enabled) && (!this.selected)) { this.GotoButtonState("down"); } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onRelease = function() { // Return the button to the default state if it is not going // to be shown as selected. if (!this.bSelectedWhenPressed) { this.GotoDefaultState(); } // Send notification to the owner if ((this.enabled == true) && (!this.selected)) { _parent.DoCommand(CmdItemInvoked, this._parent, 0); } } GenericButtonClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericButtonClass.prototype.onDragOver = function() { this.onPress(); } GenericButtonClass.prototype.hitTest = function() { var bHit = false; if ((!this.userleft_mc.hitTest(_xmouse, _ymouse, true)) && (!this.userbutton_mc.hitTest(_xmouse, _ymouse, true)) && (!this.userright_mc.hitTest(_xmouse, _ymouse, true))) { bHit = true; } return bHit; } GenericButtonClass.prototype.onRollOut = function() { // See if the mouse has moved out over to one of the other movie clips // If so, don't go back to normal if (this.hitTest()) { this.GotoDefaultState(); } } /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// function onRollOver() { fhgeneric_comp.onRollOver(); } function onPress() { fhgeneric_comp.onPress(); } function onRelease() { fhgeneric_comp.onRelease(); } function onDragOut() { fhgeneric_comp.onDragOut(); } function onDragOver() { fhgeneric_comp.onDragOver(); } function onRollOut() { fhgeneric_comp.onRollOut(); } button_mc.onRollOver = onRollOver; button_mc.onPress = onPress; button_mc.onRelease = onRelease; button_mc.onDragOut = onDragOut; button_mc.onDragOver = onDragOver; button_mc.onRollOut = onRollOut; left_mc.onRollOver = onRollOver; left_mc.onPress = onPress; left_mc.onRelease = onRelease; left_mc.onDragOut = onDragOut; left_mc.onDragOver = onDragOver; left_mc.onRollOut = onRollOut; right_mc.onRollOver = onRollOver; right_mc.onPress = onPress; right_mc.onRelease = onRelease; right_mc.onDragOut = onDragOut; right_mc.onDragOver = onDragOver; right_mc.onRollOut = onRollOut; icon_mc.onRollOver = onRollOver; icon_mc.onPress = onPress; icon_mc.onRelease = onRelease; icon_mc.onDragOut = onDragOut; icon_mc.onDragOver = onDragOver; icon_mc.onRollOut = onRollOut; // Register the class Object.registerClass("FGenericFHButton", GenericButtonClass); #endinitclip €€ actionsџџџџџOOџ€€џџџџ€Symbol 2LeftH'‹>Symbol 2џџџџrУЎ>џџџџ€Symbol 1Buttonб&‹>Symbol 1џџџџ1ФЎSymbol 19џџџџЎ.#Symbol 20џџџџџџџџџџџџ.#Symbol 21џџџџx6#Symbol 22џџџџџџџџџџџџХ6#џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџъ;џI" #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 GenericButtonClass() { this.enabled = true; this.selected = false; this.userbutton_mc = this._parent.button_mc; this.uџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџEџš #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 GenericButtonClass() { this.enabled = true; this.selected = false; this.userbutton_mc = this._parent.button_mc; this.userleft_mc = this._parent.left_mc; this.userright_mc = this._parent.right_mc; this.usericon_mc = this._parent.icon_mc; this.usertextfield_mc = this._parent.textfield_mc; if (this.usertextfield_mc.label_mc != undefined) { this.userlabel_txt = this.usertextfield_mc.label_mc.label_txt; } else { this.userlabel_txt = this._parent.label_txt; } this.attribute_array = new array(); this.bJustSelected = false; this.bSelectedWhenPressed = false; this.bStopped = false; this.lastState_str = ""; } GenericButtonClass.prototype = new MovieClip(); // Handles initialization of the button features GenericButtonClass.prototype.onLoad = function () { // Set special values for the fields this.userlabel_txt.autoSize = true; this._parent._focusrect = true; this._parent.focusEnabled = true; this._parent.tabChildren = false; // Goto the first frame because this represents the proper size of the button this.GotoAndStopFrame(1); this.bStopped = true; // Let the container know we are loaded this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.SetItemLabel = function (newlabel) { // First make sure there is a label to set if (this.userlabel_txt != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldLabelX = this.userlabel_txt._x; var oldButtonX = this.userbutton_mc._x; var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userlabel_txt.textWidth; var oldIconCenterX = this.usericon_mc._x + (this.usericon_mc._width / 2); var coordButton = this.userbutton_mc.getBounds(this._parent); var oldRightOffset = coordButton.xMax - this.userright_mc._x; // Set the new label this.userlabel_txt.text = newlabel; // Get the new label width var newLabelTextWidth = this.userlabel_txt.textWidth; // Scale the button based on how much the label scaled var widthDiff = oldButtonWidth - oldLabelTextWidth; var newButtonWidth = newLabelTextWidth + widthDiff; this.userbutton_mc._width = newButtonWidth; // Move the right_mc the appropriate distance right coordButton = this.userbutton_mc.getBounds(this._parent); this.userright_mc._x = coordButton.xMax - oldRightOffset; // Move the icon_mc to the same position relative to the button_mc var oldIconPercent = (oldIconCenterX - oldButtonX) / oldButtonWidth; var newIconCenterX = coordButton.xMin + (newButtonWidth * oldIconPercent); this.usericon_mc._x = newIconCenterX - (this.usericon_mc._width / 2); } return; } GenericButtonClass.prototype.EnableItem = function () { this.enabled = true; this._parent.useHandCursor = true; this.GotoDefaultState(); } GenericButtonClass.prototype.DisableItem = function () { this.enabled = false; this._parent.useHandCursor = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SelectedWhenPressed = function () { this.bSelectedWhenPressed = true; return; } GenericButtonClass.prototype.DisplaySelected = function () { this.selected = true; this.bJustSelected = true; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplayNormal = function () { if ((this.selected) || (this.bStopped)) { this.selected = false; this.GotoDefaultState(); } } GenericButtonClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); this.attribute_array.push(newattrib); } GenericButtonClass.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; } GenericButtonClass.prototype.GotoAndStopFrame = function(frame) { this.userbutton_mc.gotoAndStop(frame); this.userleft_mc.gotoAndStop(frame); this.userright_mc.gotoAndStop(frame); this.usericon_mc.gotoAndStop(frame); } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.GotoButtonState = function(state) { if ((this.bJustSelected) || (state != "selected")) { this.bJustSelected = false; // Only perform the action if this is a change of state if (state != this.lastState_str) { this.userbutton_mc.gotoAndPlay(state); this.userleft_mc.gotoAndPlay(state); this.userright_mc.gotoAndPlay(state); this.usericon_mc.gotoAndPlay(state); this.usertextfield_mc.gotoAndPlay(state); this.lastState_str = state; } } } GenericButtonClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("normal"); } } else { this.GotoButtonState("disabled"); } return; } GenericButtonClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("over"); } } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onPress = function() { if ((this.enabled) && (!this.selected)) { this.GotoButtonState("down"); } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onRelease = function() { // Return the button to the default state if it is not going // to be shown as selected. if (!this.bSelectedWhenPressed) { this.GotoDefaultState(); } // Send notification to the owner if ((this.enabled == true) && (!this.selected)) { _parent.DoCommand(CmdItemInvoked, this._parent, 0); } } GenericButtonClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericButtonClass.prototype.onDragOver = function() { this.onPress(); } GenericButtonClass.prototype.hitTest = function() { var bHit = false; if ((!this.userleft_mc.hitTest(_xmouse, _ymouse, true)) && (!this.userbutton_mc.hitTest(_xmouse, _ymouse, true)) && (!this.userright_mc.hitTest(_xmouse, _ymouse, true))) { bHit = true; } return bHit; } GenericButtonClass.prototype.onRollOut = function() { // See if the mouse has moved out over to one of the other movie clips // If so, don't go back to normal if (this.hitTest()) { this.GotoDefaultState(); } } /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// function onRollOver() { fhgeneric_comp.onRollOver(); } function onPress() { fhgeneric_comp.onPress(); } function onRelease() { fhgeneric_comp.onRelease(); } function onDragOut() { fhgeneric_comp.onDragOut(); } function onDragOver() { fhgeneric_comp.onDragOver(); } function onRollOut() { fhgeneric_comp.onRollOut(); } button_mc.onRollOver = onRollOver; button_mc.onPress = onPress; button_mc.onRelease = onRelease; button_mc.onDragOut = onDragOut; button_mc.onDragOver = onDragOver; button_mc.onRollOut = onRollOut; left_mc.onRollOver = onRollOver; left_mc.onPress = onPress; left_mc.onRelease = onRelease; left_mc.onDragOut = onDragOut; left_mc.onDragOver = onDragOver; left_mc.onRollOut = onRollOut; right_mc.onRollOver = onRollOver; right_mc.onPress = onPress; right_mc.onRelease = onRelease; right_mc.onDragOut = onDragOut; right_mc.onDragOver = onDragOver; right_mc.onRollOut = onRollOut; icon_mc.onRollOver = onRollOver; icon_mc.onPress = onPress; icon_mc.onRelease = onRelease; icon_mc.onDragOut = onDragOut; icon_mc.onDragOver = onDragOver; icon_mc.onRollOut = onRollOut; // Register the class Object.registerClass("FGenericFHButton", GenericButtonClass); #endinitclip €€ actionsџџџџџOOџ€€s::defaultNames1PropSheet::ActiveTab1599џџџџќџџ CColorDefџ €џ €џ €3// Return the button to the default state if it is not going // to be shown as selected. if (!this.bSelectedWhenPressed) { this.GotoDefaultState(); } // Send notification to the owner if ((this.enabled == true) && (!this.selected)) { _parent.DoCommand(CmdItemInvoked, this._parent, 0); } } GenericButtonClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericButtonClass.prototype.onDragOver = function() { this.onPress(); } GenericButtonClass.prototype.hitTest = function() { var bHit = false; if (this._parent.hitTest(_xmouse, _ymouse, true)) { bHit = true; } return bHit; } GenericButtonClass.prototype.onRollOut = function() { // See if the mouse has moved out over to one of the other movie clips // If so, don't go back to normal if (!this.hitTest()) { this.GotoDefaultState(); } } /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// function onRollOver() { fhgeneric_comp.onRollOver(); } function onPress() { fhgeneric_comp.onPress(); } function onRelease() { fhgeneric_comp.onRelease(); } function onDragOut() { fhgeneric_comp.onDragOut(); } function onDragOver() { fhgeneric_comp.onDragOver(); } function onRollOut() { fhgeneric_comp.onRollOut(); } button_mc.onRollOver = onRollOver; button_mc.onPress = onPress; button_mc.onRelease = onRelease; button_mc.onDragOut = onDragOut; button_mc.onDragOver = onDragOver; button_mc.onRollOut = onRollOut; left_mc.onRollOver = onRollOver; left_mc.onPress = onPress; left_mc.onRelease = onRelease; left_mc.onDragOut = onDragOut; left_mc.onDragOver = onDragOver; left_mc.onRollOut = onRollOut; right_mc.onRollOver = onRollOver; right_mc.onPress = onPress; right_mc.onRelease = onRelease; right_mc.onDragOut = onDragOut; right_mc.onDragOver = onDragOver; right_mc.onRollOut = onRollOut; icon_mc.onRollOver = onRollOver; icon_mc.onPress = onPress; icon_mc.onRelease = onRelease; icon_mc.onDragOut = onDragOut; icon_mc.onDragOver = onDragOver; icon_mc.onRollOut = onRollOut; // Register the class Object.registerClass("FGenericFHButton", GenericButtonClass); #endinitclip €€ actionsџџџџџOOџ€€€€џџ CPicSpriteш  ш џџџџНfhgeneric_compLabelLABELlabel“ТJџїsEžЋ (Jяч€€", GenericButtonClass); #endinitclip €€ actionsџџџџџOOџ€€€ LabelsџџџџO€џџ€€џџџџO€џџ€€ CPicFrameџџCPicTexџџCPicPageџџ CPicLayerџџ CPicFrameџџCPicText€€ љџ&Й‹29 №_sansџ(HINT: Toolbar buttons are made up of several pieces to allow loading of text dynamically anџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ/cџA" #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 GenericButtonClass() { this.enabled = true; this.selected = false; this.userbutton_mc = this._parent.button_mc; this.userleft_mc = this._parent.left_mc; this.userright_mc = this._parent.right_mc; this.usericon_mc = this._parent.icon_mc; this.usertextfield_mc = this._parent.textfield_mc; if (this.usertextfield_mc.label_mc != undefined) { this.userlabel_txt = this.usertextfield_mc.label_mc.label_txt; } else { this.userlabel_txt = this._parent.label_txt; } this.attribute_array = new array(); this.bJustSelected = false; this.bJustPressed = false; this.bSelectedWhenPressed = false; this.lastState_str = ""; } GenericButtonClass.prototype = new MovieClip(); // Handles initialization of the button features GenericButtonClass.prototype.onLoad = function () { // Set special values for the fields this.userlabel_txt.autoSize = true; this._parent._focusrect = true; this._parent.focusEnabled = true; this._parent.tabChildren = false; // Goto the first frame because this represents the proper size of the button unless we // are in test mode. In that case, go to the "normal" state. if (this._parent == _level0) { this.GotoDefaultState(); } else { this.GotoAndStopFrame(1); } // Let the container know we are loaded this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.SetItemLabel = function (newlabel) { // First make sure there is a label to set if (this.userlabel_txt != undefined)serleft_mc = this._parent.left_mc; this.userright_mc = this._parent.right_mc; this.usericon_mc = this._parent.icon_mc; this.usertextfield_mc = this._parent.textfield_mc; if (this.usertextfield_mc.label_mc != undefined) { this.userlabel_txt = this.usertextfield_mc.label_mc.label_txt; } else { this.userlabel_txt = this._parent.label_txt; } this.attribute_array = new array(); this.bJustSelected = false; this.bJustPressed = false; this.bSelectedWhenPressed = false; this.lastState_str = ""; } GenericButtonClass.prototype = new MovieClip(); // Handles initialization of the button features GenericButtonClass.prototype.onLoad = function () { // Set special values for the fields this.userlabel_txt.autoSize = true; this._parent._focusrect = true; this._parent.focusEnabled = true; this._parent.tabChildren = false; // Goto the first frame because this represents the proper size of the button unless we // are in test mode. In that case, go to the "normal" state. if (this._parent == _level0) { this.GotoDefaultState(); } else { this.GotoAndStopFrame(1); } // Let the container know we are loaded this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.SetItemLabel = function (newlabel) { // First make sure there is a label to set if (this.userlabel_txt != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldLabelX = this.userlabel_txt._x; var oldButtonX = this.userbutton_mc._x; var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userlabel_txt.textWidth; var oldIconCenterX = this.usericon_mc._x + (this.usericon_mc._width / 2); var coordButton = this.userbutton_mc.getBounds(this._parent); var oldRightOffset = coordButton.xMax - this.userright_mc._x; // Set the new labelvu‘ " ФљvЋ‘ ‘ ‘‘vuФ&"џџџџ‘џџџ?џџ%€€ BGџџџџO€џџ€€€€ џџџџїy Ќуц§"џ€0Ёі0№0` €џ8Yюџџџ"џ4oЌоц§8Tbџџ"џц§џџџ?џџ˜H€€ FGџџџџџOOџ€€џџ CPicSymbolœ  this.userlabel_txt.text = newlabel; // Get the new label width var newLabelTextWidth = this.userlabel_txt.textWidth; // Scale the button based on how much the label scaled var widthDiff = oldButtonWidth - oldLabelTextWidth; var newButtonWidth = newLabelTextWidth + widthDiff; this.userbutton_mc._width = newButtonWidth; // Move the right_mc the appropriate distance right coordButton = this.userbutton_mc.getBounds(this._parent); this.userright_mc._x = coordButton.xMax - oldRightOffset; // Move the icon_mc to the same position relative to the button_mc var oldIconPercent = (oldIconCenterX - oldButtonX) / oldButtonWidth; var newIconCenterX = coordButton.xMin + (newButtonWidth * oldIconPercent); this.usericon_mc._x = newIconCenterX - (this.usericon_mc._width / 2); } return; } GenericButtonClass.prototype.EnableItem = function () { this.enabled = true; this._parent.useHandCursor = true; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisableItem = function () { this.enabled = false; this._parent.useHandCursor = false; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SelectedWhenPressed = function () { this.bSelectedWhenPressed = true; return; } GenericButtonClass.prototype.DisplaySelected = function () { this.selected = true; this.bJustSelected = true; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplayNormal = function () { this.bJustPressed = false; this.selected = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); this.attribute_array.push(newattrib); } GenericButtonClass.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; } GenericButtonClass.prototype.GotoAndStopFrame = function(frame) { this.userbutton_mc.gotoAndStop(frame); this.userleft_mc.gotoAndStop(frame); this.userright_mc.gotoAndStop(frame); this.usericon_mc.gotoAndStop(frame); } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.GotoButtonState = function(state) { if ((this.bJustSelected) || (state != "selected")) { this.bJustSelected = false; // Only perform the action if this is a change of state if (state != this.lastState_str) { this.userbutton_mc.gotoAndPlay(state); this.userleft_mc.gotoAndPlay(state); this.userright_mc.gotoAndPlay(state); this.usericon_mc.gotoAndPlay(state); this.usertextfield_mc.gotoAndPlay(state); this.lastState_str = state; } } } GenericButtonClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("normal"); } } else { this.GotoButtonState("disabled"); } return; } GenericButtonClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("over"); } } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onPress = function() { if ((this.enabled) && (!this.selected)) { this.GotoButtonState("down"); } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onRelease = function() { // Send notification to the owner if ((this.enabled == true) && (!this.selected)) { _parent.DoCommand(CmdItemInvoked, this._parent, 0); } // Return the button to the default state if it is not going // to be shown as selected. if (!this.bSelectedWhenPressed) { this.GotoDefaultState(); } else { // Note that { // Save the old widths of the label and button so we can scale the button appropriately var oldLabelX = this.userlabel_txt._x; var oldButtonX = this.userbutton_mc._x; var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userlabel_txt.textWidth; var oldIconCenterX = this.usericon_mc._x + (this.usericon_mc._width / 2); var coordButton = this.userbutton_mc.getBounds(this._parent); var oldRightOffset = coordButton.xMax - this.userright_mc._x; // Set the new label this.userlabel_txt.text = newlabel; // Get the new label width var newLabelTextWidth = this.userlabel_txt.textWidth; // Scale the button based on how much the label scaled var widthDiff = oldButtonWidth - oldLabelTextWidth; var newButtonWidth = newLabelTextWidth + widthDiff; this.userbutton_mc._width = newButtonWidth; // Move the right_mc the appropriate distance right coordButton = this.userbutton_mc.getBounds(this._parent); this.userright_mc._x = coordButton.xMax - oldRightOffset; // Move the icon_mc to the same position relative to the button_mc var oldIconPercent = (oldIconCenterX - oldButtonX) / oldButtonWidth; var newIconCenterX = coordButton.xMin + (newButtonWidth * oldIconPercent); this.usericon_mc._x = newIconCenterX - (this.usericon_mc._width / 2); } return; } GenericButtonClass.prototype.EnableItem = function () { this.enabled = true; this._parent.useHandCursor = true; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisableItem = function () { this.enabled = false; this._parent.useHandCursor = false; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SelectedWhenPressed = function () { this.bSelectedWhenPressed = true; return; } GenericButtonClass.prototype.DisplaySelected = function () { this.selected = true; this.bJustSelected = true; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplayNormal = function () { this.bJustPressed = false; this.selected = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); this.attribute_array.push(newattrib); } GenericButtonClass.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; } GenericButtonClass.prototype.GotoAndStopFrame = function(frame) { this.userbutton_mc.gotoAndStop(frame); this.userleft_mc.gotoAndStop(frame); this.userright_mc.gotoAndStop(frame); this.usericon_mc.gotoAndStop(frame); } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.GotoButtonState = function(state) { if ((this.bJustSelected) || (state != "selected")) { this.bJustSelected = false; // Only perform the action if this is a change of state if (state != this.lastState_str) { this.userbutton_mc.gotoAndPlay(state); this.userleft_mc.gotoAndPlay(state); this.userright_mc.gotoAndPlay(state); this.usericon_mc.gotoAndPlay(state); this.usertextfield_mc.gotoAndPlay(state); this.lastState_str = state; } } } GenericButtonClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("normal"); } } else { this.GotoButtonState("disabled"); } return; } GenericButtonClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("over"); } } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onPress = function() { if ((this.enabled) && (!this.selected)) { this.GotoButtonState("down"); } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onRelease = function() { // Send notification to the owner if ((this.enabled == true) && (!this.selected)) { _parent.DoCommand(CmdItemInvoked, this._parent, 0); } // Return the button to the default state if it is not going // to be shown as selected. if (!this.bSelectedWhenPressed) { this.GotoDefaultState(); } else { // Note that we were just pressed in case we get the extra "RollOut" call (see onRollOut) this.bJustPressed = true; } } GenericButtonClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericButtonClass.prototype.onDragOver = function() { this.onPress(); } GenericButtonClass.prototype.onRollOut = function() { // For some reason we get a onRollOut call when a button is pressed and // we don't want to go to the default state automatically in that case. // We will wait for the container to set our state. if (!this.bJustPressed) { this.GotoDefaultState(); } } /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// function onRollOver() { fhgeneric_comp.onRollOver(); } function onPress() { fhgeneric_comp.onPress(); } function onRelease() { fhgeneric_comp.onRelease(); } function onDragOut() { fhgeneric_comp.onDragOut(); } function onDragOver() { fhgeneriџџCPicPageџџ CPicLayerџџ CPicFrame€€џъ§џџt@eџџџџџЋТшџSz­џѓјџ L0b§0Дљ№šгf§џ0š2џџџ?џџw)€€ Layer 4џџџџ™3Ьџ€€€€џџџ?џџ)estop();€€€ џџџ?џџѕHstop();€€€ џџџ?џџж stop();€€€ џџџ?џџ–'stop();€€€ џџџ?џџЁkstop();€€€џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ YџA" #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 GenericButtonClass() { this.enabled = true; this.selected = false; this.userbutton_mc = this._parent.button_mc; this.userleft_mc = this._parent.left_mc; this.userright_mc = this._parent.right_mc; this.usericon_mc = this._parent.icon_mc; this.usertextfield_mc = this._parent.textfield_mc; if (this.usertextfield_mc.label_mc != undefined) { this.userlabel_txt = this.usertextfield_mc.label_mc.label_txt; } else { this.userlabel_txt = this._parent.label_txt; } this.attribute_array = new array(); this.bJustSelected = false; this.bJustPressed = false; this.bSelectedWhenPressed = false; this.lastState_str = ""; } GenericButtonClass.prototype = new MovieClip(); // Handles initialization of the button features GenericButtonClass.prototype.onLoad = function () { // Set special values for the fields this.userlabel_txt.autoSize = true; this._parent._focusrect = true; this._parent.focusEnabled = true; this._parent.tabChildren = false; // Goto the first frame because this represents the proper size of the button unless we // are in test mode. In that case, go to the "normal" state. if (this._parent == _level0) { this.GotoDefaultState(); } else { this.GotoAndStopFrame(1); } // Let the container know we are loaded this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.SetItemLabel = function (newlabel) { // First make sure there is a label to set if (this.userlabel_txt != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldLabelX = this.userlabel_txt._x; var oldButtonX = this.userbutton_mc._x; var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userlabel_txt.textWidth; var oldIconCenterX = this.usericon_mc._x + (this.usericon_mc._width / 2); var coordButton = this.userbutton_mc.getBounds(this._parent); var oldRightOffset = coordButton.xMax - this.userright_mc._x; // Set the new label this.userlabel_txt.text = newlabel; // Get the new label width var newLabelTextWidth = this.userlabel_txt.textWidth; // Scale the button based on how much the label scaled var widthDiff = oldButtonWidth - oldLabelTextWidth; var newButtonWidth = newLabelTextWidth + widthDiff; this.userbutton_mc._width = newButtonWidth; // Move the right_mc the appropriate distance right coordButton = this.userbutton_mc.getBounds(this._parent); this.userright_mc._x = coordButton.xMax - oldRightOffset; // Move the icon_mc to the same position relative to the button_mc var oldIconPercent = (oldIconCenterX - oldButtonX) / oldButtonWidth; var newIconCenterX = coordButton.xMin + (newButtonWidth * oldIconPercent); this.usericon_mc._x = newIconCenterX - (this.usericon_mc._width / 2); } return; } GenericButtonClass.prototype.EnableItem = function () { this.enabled = true; this._parent.useHandCursor = true; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisableItem = function () { this.enabled = false; this._parent.useHandCursor = false; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SelectedWhenPressed = function () { this.bSelectedWhenPressed = true; return; } GenericButtonClass.prototype.DisplaySelected = function () { this.selected = true; this.bJustSelected = true; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplayNormal = function () { this.bJustPressed = false; this.selected = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); this.attribute_array.push(newattrib); } GenericButtonClass.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; } GenericButtonClass.prototype.GotoAndStopFrame = function(frame) { this.userbutton_mc.gotoAndStop(frame); this.userleft_mc.gotoAndStop(frame); this.userright_mc.gotoAndStop(frame); this.usericon_mc.gotoAndStop(frame); } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.GotoButtonState = function(state) { if ((this.bJustSelected) || (state != "selected")) { this.bJustSelected = false; // Only perform the action if this is a change of state if (state != this.lastState_str) { this.userbutton_mc.gotoAndPlay(state); this.userleft_mc.gotoAndPlay(state); this.userright_mc.gotoAndPlay(state); this.usericon_mc.gotoAndPlay(state); this.usertextfield_mc.gotoAndPlay(state); this.lastState_str = state; } } } GenericButtonClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("normal"); } } else { this.GotoButtonState("disabled"); } return; } GenericButtonClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("over"); } } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onPress = function() { if ((this.enabled) && (!this.selected)) { this.GotoButtonState("down"); } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onRelease = function() { // Send notification to the owner if ((this.enabled == true) && (!this.selected)) { _parent.DoCommand(CmdItemInvoked, this._parent, 0); } // Return the button to the default state if it is not going // to be shown as selected. if (!this.bSelectedWhenPressed) { this.GotoDefaultState(); } else { // Note that we were just pressed in case we get the extra "RollOut" call (see onRollOut) this.bJustPressed = true; } } GenericButtonClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericButtonClass.prototype.onDragOver = function() { this.onPress(); } GenericButtonClass.prototype.hitTest = function() { var bHit = false; if (this._parent.hitTest(_xmouse, _ymouse, true)) { bHit = true; } return bHit; } GenericButtonClass.prototype.onRollOut = function() { // See if the mouse has moved out over to one of the other movie clips // If so, don't go back to normal. Also, for some reason we get a onRollOut // call when a button is pressed and we don't want to go to the default state automatically // in that case. We will wait for the container to set our state. if ((!this.hitTest()) && (!this.bJustPressed)) { this.GotoDefaultState(); } } /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // //////////////////////////we were just pressed in case we get the extra "RollOut" call (see onRollOut) this.bJustPressed = true; } } GenericButtonClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericButtonClass.prototype.onDragOver = function() { this.onPress(); } GenericButtonClass.prototype.hitTest = function() { var bHit = false; if (this._parent.hitTest(_xmouse, _ymouse, true)) { bHit = true; } return bHit; } GenericButtonClass.prototype.onRollOut = function() { // See if the mouse has moved out over to one of the other movie clips // If so, don't go back to normal. Also, for some reason we get a onRollOut // call when a button is pressed and we don't want to go to the default state automatically // in that case. We will wait for the container to set our state. if ((!this.hitTest()) && (!this.bJustPressed)) { this.GotoDefaultState(); } } /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// function onRollOver() { fhgeneric_comp.onRollOver(); } function onPress() { fhgeneric_comp.onPress(); } function onRelease() { fhgeneric_comp.onRelease(); } function onDragOut() { fhgeneric_comp.onDragOut(); } function onDragOver() { fhgeneric_comp.onDragOver(); } function onRollOut() { fhgeneric_comp.onRollOut(); } button_mc.onRollOver = onRollOver; button_mc.onPress = onPress; button_mc.onRelease = onRelease; button_mc.onDragOut = onDragOut; button_mc.onDragOver = onDragOver; button_mc.onRollOut = onRollOut; left_mc.onRollOver = onRollOver; left_mc.onPress = onPress; left_mc.onRelease = onRelease; left_mc.onDragOut = onDragOut; left_mc.onDragOver = onDragOver; left_mc.onRollOut = onRollOut; right_mc.onRollOver = onRollOver; right_mc.onPress = onPress; right_mc.onRelease = onRelease; right_mc.onDragOut = onDragOut; right_mc.onDragOver = onDragOver; right_mc.onRollOut = onRollOut; icon_mc.onRollOver = onRollOver; icon_mc.onPress = onPress; icon_mc.onRelease = onRelease; icon_mc.onDragOut = onDragOut; icon_mc.onDragOver = onDragOver; icon_mc.onRollOut = onRollOut; // Register the class Object.registerClass("FGenericFHButton", GenericButtonClass); #endinitclip €€ actionsџџџџџOOџ€€rmatProperties::qtFileNameBlankButton.mov$PublishRNWKProperties::speedDualISDN0$PublishRNWKProperties::realVideoRate100000PublishJpegProperties::Quality80"PublishPNGProperties::DitherOption#PublishGifPropc_comp.onDragOver(); } function onRollOut() { fhgeneric_comp.onRollOut(); } // Add effects for testing if (this == _level0) { left_mc.onRollOver = onRollOver; left_mc.onPress = onPress; left_mc.onRelease = onRelease; left_mc.onDragOut = onDragOut; left_mc.onDragOver = onDragOver; left_mc.onRollOut = onRollOut; button_mc.onRollOver = onRollOver; button_mc.onPress = onPress; button_mc.onRelease = onRelease; button_mc.onDragOut = onDragOut; button_mc.onDragOver = onDragOver; button_mc.onRollOut = onRollOut; right_mc.onRollOver = onRollOver; right_mc.onPress = onPress; right_mc.onRelease = onRelease; right_mc.onDragOut = onDragOut; right_mc.onDragOver = onDragOver; right_mc.onRollOut = onRollOut; icon_mc.onRollOver = onRollOver; icon_mc.onPress = onPress; icon_mc.onRelease = onRelease; icon_mc.onDragOut = onDragOut; icon_mc.onDragOver = onDragOver; icon_mc.onRollOut = onRollOut; textfield_mc.onRollOver = onRollOver; textfield_mc.onPress = onPress; textfield_mc.onRelease = onRelease; textfield_mc.onDragOut = onDragOut; textfield_mc.onDragOver = onDragOver; textfield_mc.onRollOut = onRollOut; } // Register the class Object.registerClass("FGenericFHButton", GenericButtonClass); #endinitclip €€ actionsџџџџџOOџ€€ton. If you have a label on the button, button_№_sansџ(mc will scale to fit the text on the label. fhgeneric_mc: This is an instance of the generic button component and isџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџђEџI" #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 GenericButtonClass() { this.enabled = true; this.selected = false; this.userbutton_mc = this._parent.button_mc; this.userleft_mc = this._parent.left_mc; this.userright_mc = this._parent.right_mc; this.usericon_mc = this._parent.icon_mc; this.usertextfield_mc = this._parent.textfield_mc; if (this.usertextfield_mc.label_mc != undefined) { this.userlabel_txt = this.usertextfield_mc.label_mc.label_txt; } else { this.userlabel_txt = this._parent.label_txt; } this.attribute_array = new array(); this.bJustSelected = false; this.bJustPressed = false; this.bSelectedWhenPressed = false; this.lastState_str = ""; } GenericButtonClass.prototype = new MovieClip(); // Handles initialization of the button features GenericButtonClass.prototype.onLoad = function () { // Set special values for the fields this.userlabel_txt.autoSize = true; this._parent._focusrect = true; this._parent.focusEnabled = true; this._parent.tabChildren = false; // Goto the first frame because this represents the proper size of the button unless we // are in test mode. In that case, go to the "normal" state. if (this._parent == _level0) { this.GotoDefaultState(); } else { this.GotoAndStopFrame(1); } // Let the container know we are loaded this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.SetItemLabel = function (newlabel) { // First make sure there is a label to set if (this.userlabel_txt != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldLabelX = this.userlabel_txt._x; var oldButtonX = this.userbutton_mc._x; var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userlabel_txt.textWidth; var oldIconCenterX = this.usericon_mc._x + (this.usericon_mc._width / 2); var coordButton = this.userbutton_mc.getBounds(this._parent); var oldRightOffset = coordButton.xMax - this.userright_mc._x; // Set the new label this.userlabel_txt.text = newlabel; // Get the new label width var newLabelTextWidth = this.userlabel_txt.textWidth; // Scale the button based on how much the label scaled var widthDiff = oldButtonWidth - oldLabelTextWidth; var newButtonWidth = newLabelTextWidth + widthDiff; this.userbutton_mc._width = newButtonWidth; // Move the right_mc the appropriate distance right coordButton = this.userbutton_mc.getBounds(this._parent); this.userright_mc._x = coordButton.xMax - oldRightOffset; // Move the icon_mc to the same position relative to the button_mc var oldIconPercent = (oldIconCenterX - oldButtonX) / oldButtonWidth; var newIconCenterX = coordButton.xMin + (newButtonWidth * oldIconPercent); this.usericon_mc._x = newIconCenterX - (this.usericon_mc._width / 2); } return; } GenericButtonClass.prototype.EnableItem = function () { this.enabled = true; this._parent.useHandCursor = true; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisableItem = function () { this.enabled = false; this._parent.useHandCursor = false; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SelectedWhenPressed = function () { this.bSelectedWhenPressed = true; return; } GenericButtonClass.prototype.DisplaySelected = function () { this.selected = true; this.bJustSelected = true; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplayNormal = function () { this.bJustPressed = false; this.selected = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); this.attribute_array.push(newattrib); } GenericButtonClass.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; } GenericButtonClass.prototype.GotoAndStopFrame = function(frame) { this.userbutton_mc.gotoAndStop(frame); this.userleft_mc.gotoAndStop(frame); this.userright_mc.gotoAndStop(frame); this.usericon_mc.gotoAndStop(frame); } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.GotoButtonState = function(state) { if ((this.bJustSelected) || (state != "selected")) { this.bJustSelected = false; // Only perform the action if this is a change of state if (state != this.lastState_str) { this.userbutton_mc.gotoAndPlay(state); this.userleft_mc.gotoAndPlay(state); this.userright_mc.gotoAndPlay(state); this.usericon_mc.gotoAndPlay(state); this.usertextfield_mc.gotoAndPlay(state); this.lastState_str = state; } } } GenericButtonClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { ///////////////////////////////////////////////// function onRollOver() { fhgeneric_comp.onRollOver(); } function onPress() { fhgeneric_comp.onPress(); } function onRelease() { fhgeneric_comp.onRelease(); } function onDragOut() { fhgeneric_comp.onDragOut(); } function onDragOver() { fhgeneric_comp.onDragOver(); } function onRollOut() { fhgeneric_comp.onRollOut(); } button_mc.onRollOver = onRollOver; button_mc.onPress = onPress; button_mc.onRelease = onRelease; button_mc.onDragOut = onDragOut; button_mc.onDragOver = onDragOver; button_mc.onRollOut = onRollOut; left_mc.onRollOver = onRollOver; left_mc.onPress = onPress; left_mc.onRelease = onRelease; left_mc.onDragOut = onDragOut; left_mc.onDragOver = onDragOver; left_mc.onRollOut = onRollOut; right_mc.onRollOver = onRollOver; right_mc.onPress = onPress; right_mc.onRelease = onRelease; right_mc.onDragOut = onDragOut; right_mc.onDragOver = onDragOver; right_mc.onRollOut = onRollOut; icon_mc.onRollOver = onRollOver; icon_mc.onPress = onPress; icon_mc.onRelease = onRelease; icon_mc.onDragOut = onDragOut; icon_mc.onDragOver = onDragOver; icon_mc.onRollOut = onRollOut; // Register the class Object.registerClass("FGenericFHButton", GenericButtonClass); #endinitclip €€ actionsџџџџџOOџ€€џџџ?џџMLstop();€€ ActionsџџџџџOOџ€€€€џџџ?џџЮp€€€џџџ?џџnormalю€€€ џџџ?џџoverd€€€ џџџ?џџdownЎ €€€ џџџ?џџselected›F€€€ џџџ?џџdisabledѕ;€€ LabelsџџџџO€џџ€€џO€џџ€€€€ џџCPicPageџџ CPicLayerџџ CPicFrame€€ Sz­џзdЖ§ц>цk0ž•мыўТхнцЬццСѕъ4оНіўРкР2џџџ?џџl€€ Layer 4џџџџ™3Ьџ€€€€џџџ?џџhstop();€€€ џџџ?џџ–pstop();€€€ џџџ?џџзstop();€€€ џџџ?џџсIstop();€€€ џџџ?џџЮstop();€€€џџџ?џџ™_stop();€€ ActionsџџџџџOOџ€€€€џџџ?џџtN€€€џџџ?џџnormal`^€€€ џџџ?џџover’y€€€ џџџ?џџdownХe€€€ џџџ?џџselectedХK€€€ џџџ?џџdisabled..€€ LabelsSymbol 19џџџџЎ.#Symbol 20џџџџџџџџџџџџ.#Symbol 21џџџџx6#Symbol 22џџџџџџџџџџџџХ6#‚ƒ„…†‡ˆ‰ўџџџ‹ŒŽўџџџўџџџ”’“Ё•–—™š›œžŸ НЂЃЄЅІЇЈЉЊЋТ­гЏАБВГДЕЖЗИЙКЛМаОПРСўџџџУФўџџџЦЧШЩЪЫЬЭЮЯєбвўџџџдежзи. §џџџйнопрстфх цчшщъыьэюя№ёђѓѕіїјљњўџџџќ§џ˜Symbol 15џџџџ‡!Symbol 16џџџџџџџџџџџџy‡!Symbol 17џџџџ% !Symbol 18џџџџџџџџџџџџ0„"џџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџвGџI" #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 GenericButtonClass() { this.enabled = true; this.selected = false; this.userbutton_mc = this._parent.button_mc; this.userleft_mc = this._parent.left_mc; this.userright_mc = this._parent.right_mc; this.usericon_mc = this._parent.icon_mc; this.usertextfield_mc = this._parent.textfield_mc; if (this.usertextfield_mc.label_mc != undefined) { this.userlabel_txt = this.usertextfield_mc.label_mc.label_txt; } else { this.userlabel_txt = this._parent.label_txt; } this.attribute_array = new array(); this.bJustSelected = false; this.bJustPressed = false; this.bSelectedWhenPressed = false; this.lastState_str = ""; } GenericButtonClass.prototype = new MovieClip(); // Handles initialization of the button features GenericButtonClass.prototype.onLoad = function () { // Set special values for the fields this.userlabel_txt.autoSize = true; this._parent._focusrect = true; this._parent.focusEnabled = true; this._parent.tabChildren = false; // Goto the first frame because this represents the proper size of the button unless we // are in test mode. In that case, go to the "normal" state. if (this._parent == _level0) { this.GotoDefaultState(); } else { this.GotoAndStopFrame(1); } // Let the container know we are loaded this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.SetItemLabel = function (newlabel) { // First make sure there is a label to set if (this.userlabel_txt != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldLabelX = this.userlabel_txt._x; var oldButtonX = this.userbutton_mc._x; var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userlabel_txt.textWidth; var oldIconCenterX = this.usericon_mc._x + (this.usericon_mc._width / 2); var coordButton = this.userbutton_mc.getBounds(this._parent); var oldRightOffset = coordButton.xMax - this.userright_mc._x; // Set the new label this.userlabel_txt.text = newlabel; // Get the new label width var newLabelTextWidth = this.userlabel_txt.textWidth; // Scale the button based on how much the label scaled var widthDiff = oldButtonWidth - oldLabelTextWidth; var newButtonWidth = newLabelTextWidth + widthDiff; this.userbutton_mc._width = newButtonWidth; // Move the right_mc the appropriate distance right coordButton = this.userbutton_mc.getBounds(this._parent); this.userright_mc._x = coordButton.xMax - oldRightOffset; // Move the icon_mc to the same position relative to the button_mc var oldIconPercent = (oldIconCenterX - oldButtonX) / oldButtonWidth; var newIconCenterX = coordButton.xMin + (newButtonWidth * oldIconPercent); this.usericon_mc._x = newIconCenterX - (this.usericon_mc._width / 2); } return; } GenericButtonClass.prototype.EnableItem = function () { this.enabled = true; this._parent.useHandCursor = true; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototyџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ€PџJ& #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 GenericButtonClass() { // Setup the mouse event handling if (this._parent != _level0) { this._parent.onRollOver = fpe.DisableItem = function () { this.enabled = false; this._parent.useHandCursor = false; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SelectedWhenPressed = function () { this.bSelectedWhenPressed = true; return; } GenericButtonClass.prototype.DisplaySelected = function () { this.selected = true; this.bJustSelected = true; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplayNormal = function () { this.bJustPressed = falunction (mc) { mc.fhgeneric_comp.onRollOver(); } this._parent.onRollOut = function (mc) { mc.fhgeneric_comp.onRollOut(); } this._parent.onPress = function () { this.fhgeneric_comp.onPress(); } this._parent.onRelease = function () { this.fhgeneric_comp.onRelease(); } this._parent.onDragOut = function () { this.fhgeneric_comp.onDragOut(); } this._parent.onDragOver = function () { this.fhgeneric_comp.onDragOver(); } } this.enabled = true; this.selected = false; this.userbutton_mc = this._parent.button_mc; this.userleft_mc = this._parent.left_mc; this.userright_mc = this._parent.right_mc; this.usericon_mc = this._parent.icon_mc; this.usertextfield_mc = this._parent.textfield_mc; if (this.usertextfield_mc.label_mc != undefined) { this.userlabel_txt = this.usertextfield_mc.label_mc.label_txt; } else { this.userlabel_txt = this._parent.label_txt; } this.attribute_array = new array(); this.bJustSelected = false; this.bJustPressed = false; this.bSelectedWhenPressed = false; this.lastState_str = ""; } GenericButtonClass.prototype = new MovieClip(); // Handles initialization of the button features GenericButtonClass.prototype.onLoad = function () { // Set special values for the fields this.userlabel_txt.autoSize = true; this._parent._focusrect = true; this._parent.focusEnabled = true; this._parent.tabChildren = false; // Goto the first frame because this represents the proper size of the button unless we // are in test mode. In that case, go to the "normal" state. if (this._parent == _level0) { this.GotoDefaultState(); } else { this.GotoAndStopFrame(1); } // Let the container know we are loaded this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.SetItemLabel = function (newlabel) { // First make sure there is a label to set if (this.userlabel_txt != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldLabelX = this.userlabel_txt._x; var oldButtonX = this.userbutton_mc._x; var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userlabel_txt.textWidth; var oldIconCenterX = this.usericon_mc._x + (this.usericon_mc._width / 2); var coordButton = this.userbutton_mc.getBounds(this._parent); var oldRightOffset = coordButton.xMax - this.userright_mc._x; // Set the new label this.userlabel_txt.text = newlabel; // Get the new label width var newLabelTextWidth = this.userlabel_txt.textWidth; // Scale the button based on how much the label scaled var widthDiff = oldButtonWidth - oldLabelTextWidth; var newButtonWidth = newLabelTextWidth + widthDiff; this.userbutton_mc._width = newButtonWidth; // Move the right_mc the appropriate distance right coordButton = this.userbutton_mc.getBounds(this._parent); this.userright_mc._x = coordButton.xMax - oldRightOffset; // Move the icon_mc to the same position relative to the button_mc var oldIconPercent = (oldIconCenterX - oldButtonX) / oldButtonWidth; var newIconCenterX = coordButton.xMin + (newButtonWidth * oldIconPercent); this.usericon_mc._x = newIconCenterX - (this.usericon_mc._width / 2); } return; } GenericButtonClass.prototype.EnableItem = function () { this.enabled = true; this._parent.useHandCursor = true; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisableItem = function () { this.enabled = false; this._parent.useHandCursor = false; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SelectedWhenPressed = function () { this.bSelectedWhenPressed = true; return; } GenericButtonClass.prototype.DisplaySelected = function () { this.selected = true; this.bJustSelected = true; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplayNormal = function () { this.bJustPressed = false; this.selected = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); this.attribute_array.push(newattrib); } GenericButtonClass.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; } GenericButtonClass.prototype.GotoAndStopFrame = function(frame) { this.userbutton_mc.gotoAndStop(frame); this.userleft_mc.gotoAndStop(frame); this.userright_mc.gotoAndStop(frame); this.usericon_mc.gotoAndStop(frame); } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.GotoButtonState = function(state) { if ((this.bJustSelected) || (state != "selected")) { this.bJustSelected = false; // Only perform the action if this is a change of state if (state != this.lastState_str) { this.userbutton_mc.gotoAndPlay(state); this.userleft_mc.gotoAndPlay(state); this.userright_mc.gotoAndPlay(state); this.usericon_mc.gotoAndPlay(state); this.usertextfield_mc.gotoAndPlay(state); this.lastState_str = state; } } } GenericButtonClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("normal"); } } else { this.GotoButtonState("disabled"); } return; } GenericButtonClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("over"); } } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onPress = function() { if ((this.enabled) && (!this.selected)) { this.GotoButtonState("down"); } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onRelease = function() { // Send notification to the owner if ((this.enabled == true) && (!this.selected)) { _parent.DoCommand(CmdItemInvoked, this._parent, 0); } // Return the button to the default state if it is not going // to be shown as selected. if (!this.bSelectedWhenPressed) { this.GotoDefaultState(); } else { // Note that we were just pressed in case we get the extra "RollOut" call (see onRollOut) this.bJustPressed = true; } } GenericButtonClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericButtonClass.prototype.onDragOver = function() { this.onPress(); } GenericButtonClass.prototype.onRollOut = function() { // For some reason we get a onRollOut call when a button is pressed and // we don't want to go to the default state automatically in that case. // We will wait for the container to set our state. if (!this.bJustPressed) { this.GotoDefaultState(); } } // Add effects for testing if (this == _level0) { left_mc.onRollOver = function () { fhgeneric_comp.onRollOver(); } left_mc.onPress = function () { fhgeneric_comp.onPress(); } left_mc.onRelease = function () { fhgeneric_comp.onRelease(); }; left_mc.onDragOut = function () { fhgeneric_comp.onDragOut(); }; left_mc.onDragOver = function () { fhgeneric_comp.onDragOver(); }; left_mc.onRollOut = function () { fhgener if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("normal"); } } else { this.GotoButtonState("disabled"); } return; } GenericButtonClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("over"); } } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onPress = function() { if ((this.enabled) && (!this.selected)) { this.GotoButtonState("down"); } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onRelease = function() { // Send notification to the owner if ((this.enabled == true) && (!this.selected)) { _parent.DoCommand(CmdItemInvoked, this._parent, 0); } // Return the button to the default state if it is not going // to be shown as selected. if (!this.bSelectedWhenPressed) { this.GotoDefaultState(); } else { // Note that we were just pressed in case we get the extra "RollOut" call (see onRollOut) this.bJustPressed = true; } } GenericButtonClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericButtonClass.prototype.onDragOver = function() { this.onPress(); } GenericButtonClass.prototype.onRollOut = function() { // For some reason we get a onRollOut call when a button is pressed and // we don't want to go to the default state automatically in that case. // We will wait for the container to set our state. if (!this.bJustPressed) { this.GotoDefaultState(); } } /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// function onRollOver() { fhgeneric_comp.onRollOver(); } function onPress() { fhgeneric_comp.onPress(); } function onRelease() { fhgeneric_comp.onRelease(); } function onDragOut() { fhgeneric_comp.onDragOut(); } function onDragOver() { fhgeneric_comp.onDragOver(); } function onRollOut() { fhgeneric_comp.onRollOut(); } // Add effects for testing if (this == _level0) { left_mc.onRollOver = onRollOver; left_mc.onPress = onPress; left_mc.onRelease = onRelease; left_mc.onDragOut = onDragOut; left_mc.onDragOver = onDragOver; left_mc.onRollOut = onRollOut; button_mc.onRollOver = onRollOver; button_mc.onPress = onPress; button_mc.onRelease = onRelease; button_mc.onDragOut = onDragOut; button_mc.onDragOver = onDragOver; button_mc.onRollOut = onRollOut; right_mc.onRollOver = onRollOver; right_mc.onPress = onPress; right_mc.onRelease = onRelease; right_mc.onDragOut = onDragOut; right_mc.onDragOver = onDragOver; right_mc.onRollOut = onRollOut; icon_mc.onRollOver = onRollOver; icon_mc.onPress = onPress; icon_mc.onRelease = onRelease; icon_mc.onDragOut = onDragOut; icon_mc.onDragOver = onDragOver; icon_mc.onRollOut = onRollOut; textfield_mc.onRollOver = onRollOver; textfield_mc.onPress = onPress; textfield_mc.onRelease = onRelease; textfield_mc.onDragOut = onDragOut; textfield_mc.onDragOver = onDragOver; textfield_mc.onRollOut = onRollOut; } // Register the class Object.registerClass("FGenericFHButton", GenericButtonClass); #endinitclip €€ actionsџџџџџOOџ€€ џџџ?џџdisabled<€€ LabelsџџџџO€џџ€€€€ L /Л  ќ§ѕL2џ њњ №ѕщѕъњѕњя№њѕњщєъѕя њњ   хсјћюћїяїђ ћ ћ    ќ ћђјюїћюћїђѓѓќ §ї єќљќјљі§ўљўўіб  ўџќџџ§ўўџіџќ  џ§џ§вћzѕэ љљ јјшёљщјїюїџъ''ё'ёкёфњѓљээљєљтђхѓэ љљЏ 'є)ѓсїяќїћёѓц0тў3 ђђйї№љљ   јјчяњчљјяј2Œџ0уСШ?у0тў88Ш”ћxџўњћѕљќєќќѕћ§џыџъ$<у0тў<"   ії ф   оысѕяёыќћїњћўёўћТџ'ё'ёкёфњѓљээљєљтђхѓэ љљ'кѕэ љљ јјшёљщјїюї€€џџџџ§џџџџџџџзђџ# Оћ€ ЗќGљ€ўќ€њўџѕћќ>ќќ€ѕњіћ ћ€З9€€P џћ ЗќGљ€ўќ€њўџѕћќџћќѕњіћ ћ€З8€љ€LЗ9€ ўц§"џ4уЌ"џц§8уџџџTbџџоц§4Toу"џџџџ?џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicShape€€џџЬџџw€щUіŠфŠџЪ§8іџџџZџџъЪ§4uіŠ6џ0@8Zџџ Ъ§џ€€џџџ?џџ0€€ BGџџџџO€џџ€€€€ LabelsџџџџOћ ЗќGљ€ўќ€њўџѕћќўћќѕњіћ ћ€€€Sz­џзА tйўк"х<кциФ0Tі0b§0Ќ о"<ы>0@2џџџ?џџЛf€€ Layer 4џџџџ™3Ьџ€џџCPicPageџџ CPicLayerџџ CPicFrame€€ џї• щфŠіŠЪ§џ€0Ёі0_ 0№0Ёі0` €џ8‘Ѕмџџџ5џ4 uфŠъЪ§8 ZџџџЪ§vЋ'\ў!'Уœџџџџ €€џџџ?џџ+%€€ RoboHelpџџџџOџOџ€€€€€€€џџџ?џџ‹Bstop();€€€ џџџ?џџІ&stop();€€€ џџџ?џџpstop();€€€ џџџ?џџ]stop();€€€ џџџ?џџZzstop();€€€џџџ?џџ}vstop();€€ ActionsџџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicSymbolџџџџ џџџџџџџџ €€џџџ?џџО€€cd €€cdџџџџџOOџ€€€€џџџ?џџ E€€€џџџ?џџnormal8€€€ џџџ?џџover%;€€€ џџџ?џџdown€€€ џџџ?џџselectedic_comp.onRollOut(); }; 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(); }; right_mc.onRollOver = function () { fhgeneric_comp.onRollOver(); } right_mc.onPress = function () { fhgeneric_comp.onPress(); } right_mc.onRelease = function () { fhgeneric_comp.onRelease(); }; right_mc.onDragOut = function () { fhgeneric_comp.onDragOut(); }; right_mc.onDragOver = function () { fhgeneric_comp.onDragOver(); }; right_mc.onRollOut = function () { fhgeneric_comp.onRollOut(); }; icon_mc.onRollOver = function () { fhgeneric_comp.onRollOver(); } icon_mc.onPress = function () { fhgeneric_comp.onPress(); } icon_mc.onRelease = function () { fhgeneric_comp.onRelease(); }; icon_mc.onDragOut = function () { fhgeneric_comp.onDragOut(); }; icon_mc.onDragOver = function () { fhgeneric_comp.onDragOver(); }; icon_mc.onRollOut = function () { fhgeneric_comp.onRollOut(); }; textfield_mc.onRollOver = function () { fhgeneric_comp.onRollOver(); } textfield_mc.onPress = function () { fhgeneric_comp.onPress(); } textfield_mc.onRelease = function () { fhgeneric_comp.onRelease(); }; textfield_mc.onDragOut = function () { fhgeneric_comp.onDragOut(); }; textfield_mc.onDragOver = function () { fhgeneric_comp.onDragOver(); }; textfield_mc.onRollOut = function () { fhgeneric_comp.onRollOut(); }; } // Register the class Object.registerClass("FGenericFHButton", GenericButtonClass); #endinitclip €€ actionsџџџџџOOџ€€It loads a string for the "powered by" part, but you can place your own label or image on right_mc to finish the statement. button_mc: This is the movie clip used for the center of the button. If yo]n€€€ џџџ?џџdisabledд€€ LabelsџџџџO€џџ€€dynamically anџџCPicPageџџ CPicLayerџџ CPicFrameџџCPicText€€ љџ&Й‹29 №_sansџ(HINT: Toolbar buttons are made up of several pieces to allow loading of text dynamically and allow scaling without ugly distortion. Use the labeled frames in each movie clip to define what happens in the various states џџџџ €€ џџџ?џџ R€€џџџџ џџџџџџџџ €€ џџџ?џџХE€€џџџџ џџџџџџџ?џџ{ €€ BGџџџџO€џџ€€џџ€€ FGџџџџџOOџ€€of the button. NOTE: The Powered By button is unique: It loads a string for the "powered by" part, but you can place your own label or image on right_mc to finish the statement. button_mc: This is the movie clip used for the center of the button. If yose; this.selected = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); this.attribute_array.push(newattrib); } GenericButtonClass.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; } GenericButtonClass.prototype.GotoAndStopFrame = function(frame) { this.userbutton_mc.gotoAndStop(frame); this.userleft_mc.gotoAndStop(frame); this.userright_mc.gotoAndStop(frame); this.usericon_mc.gotoAndStop(frame); } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.GotoButtonState = function(state) { if ((this.bJustSelected) || (state != "selected")) { this.bJustSelected = false; // Only perform the action if this is a change of state if (state != this.lastState_str) { this.userbutton_mc.gotoAndPlay(state); this.userleft_mc.gotoAndPlay(state); this.userright_mc.gotoAndPlay(state); this.usericon_mc.gotoAndPlay(state); this.usertextfield_mc.gotoAndPlay(state); this.lastState_str = state; } } } GenericButtonClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("normal"); } } else { this.GotoButtonState("disabled"); } return; } GenericButtonClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("over"); } } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onPress = function() { if ((this.enabled) && (!this.selected)) { this.GotoButtonState("down"); } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onRelease = function() { // Send notification to the owner if ((this.enabled == true) && (!this.selected)) { _parent.DoCommand(CmdItemInvoked, this._parent, 0); } // Return the button to the default state if it is not going // to be shown as selected. if (!this.bSelectedWhenPressed) { this.GotoDefaultState(); } else { // Note that we were just pressed in case we get the extra "RollOut" call (see onRollOut) this.bJustPressed = true; } } GenericButtonClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericButtonClass.prototype.onDragOver = function() { this.onPress(); } GenericButtonClass.prototype.onRollOut = function() { // For some reason we get a onRollOut call when a button is pressed and // we don't want to go to the default state automatically in that case. // We will wait for the container to set our state. if (!this.bJustPressed) { this.GotoDefaultState(); } } /////////////////////////////////////////////////////////////////////////// // // Handle mouse messages for the movie // /////////////////////////////////////////////////////////////////////////// function onRollOver() { fhgeneric_comp.onRollOver(); } function onPress() { fhgeneric_comp.onPress(); } function onRelease() { fhgeneric_comp.onRelease(); } function onDragOut() { fhgeneric_comp.onDragOut(); } function onDragOver() { fhgeneric_comp.onDragOver(); } function onRollOut() { fhgeneric_comp.onRollOut(); } // Add effects for testing if (this == _level0) { left_mc.onRollOver = onRollOver; left_mc.onPress = onPress; left_mc.onRelease = onRelease; left_mc.onDragOut = onDragOut; left_mc.onDragOver = onDragOver; left_mc.onRollOut = onRollOut; button_mc.onRollOver = onRollOver; button_mc.onPress = onPress; button_mc.onRelease = onRelease; button_mc.onDragOut = onDragOut; button_mc.onDragOver = onDragOver; button_mc.onRollOut = onRollOut; right_mc.onRollOver = onRollOver; right_mc.onPress = onPress; right_mc.onRelease = onRelease; right_mc.onDragOut = onDragOut; right_mc.onDragOver = onDragOver; right_mc.onRollOut = onRollOut; icon_mc.onRollOver = onRollOver; icon_mc.onPress = onPress; icon_mc.onRelease = onRelease; icon_mc.onDragOut = onDragOut; icon_mc.onDragOver = onDragOver; icon_mc.onRollOut = onRollOut; textfield_mc.onRollOver = onRollOver; textfield_mc.onPress = onPress; textfield_mc.onRelease = onRelease; textfield_mc.onDragOut = onDragOut; textfield_mc.onDragOver = onDragOver; textfield_mc.onRollOut = onRollOut; } // Register the class Object.registerClass("FGenericFHButton", GenericButtonClass); #endinitclip €€ actionsџџџџџOOџ€€ѓџџџфЃШarialџџџџ(Label label_txt€€џџџ?џџВmџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ‹{џJ& #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 GenericButtonClass() { // Setup the mouse event handling if (this._parent != _level0) { this._parent.onRollOver = function (mc) { mc.fhgeneric_comp.onRollOver(); } this._parent.onRollOut = function (mc) { mc.fhgeneric_comp.onRollOut(); } this._parent.onPress = function () { this.fhgeneric_comp.onPress(); } this._parent.onRelease = function () { this.fhgeneric_comp.onRelease(); } this._parent.onDragOut = function () { this.fhgeneric_comp.onDragOut(); } this._parent.onDragOver = function () { this.fhgeneric_comp.onDragOver(); } } this.enabled = true; this.selected = false; this.userbutton_mc = this._parent.button_mc; this.userleft_mc = this._parent.left_mc; this.userright_mc = this._parent.right_mc; this.usericon_mc = this._parent.icon_mc; this.usertextfield_mc = this._parent.textfield_mc; if (this.usertextfield_mc.label_mc != undefined) { this.userlabel_txt = this.usertextfield_mc.label_mc.label_txt; } else { this.userlabel_txt = this._parent.label_txt; } this.attribute_array = new array(); this.bJustSelected = false; this.bJustPressed = false; this.bSelectedWhenPressed = false; this.lastStau have a label on the button, button_№_sansџ(mc will scale to fit the text on the label. fhgeneric_mc: This is an instance of the generic button component and is required for the button to function properly. [optional items below] left_mc, right_mc: These movie clips never scale, but they will move as button_mc scales. The purpose of these clips is џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicShape€€ЋЊ џџџџџs€` (№P€0 іьp€њP€ь0` s€€ і` 3№ і€€џџџ?џџg8€€ BGџџџџO€џџ€€€€џџџ?џџž €€ FGџџџџџOOџ€€to allow sides of the button that do not become distorted as the button scales. icon_mc: This movie will not scale, but will keep the same relative position within button_mc as the button scales. One wat№_sansџ(y to use icon_mc is to center an icon above the text . label_txt: This text field is populated with the proper text at runtime. - OR - textfield_mc: If you would like your text to react to button events, you may use the structure below. Use the labeled frames in the textfield_mc timeline to apply effects to label_mc. textfield_mc label_mc label_txt€€џџџ?џџ­X€€ HintџџџџOџџџ€€џџ CPicSpriteш  ш џџџџО1fhgeneric_compLabelLABELlabel“ТJџїsEžЋ (Jяч€€џџџ?џџЁ/€€ ComponentџџџџO€џџ€€ €Œџџџ 3гZџŒџџџdџД button_mc€€џџџ?џџІg€€ ButtonџџџџџOOџ€€€€џџџ?џџлk€€ IconџџџџOџOџ€€ €ќўџџџџџ ZџќўџџџџџdџШOleft_mc€€џџџ?џџџџCPicPageџџ CPicLayerџџ CPicFrameџџCPicText€€ ((лfЃ@_sansџ(RoboHelp€€џџџ?џџ6€€ Layer 1џџџџO€џџ€€x€€ Leftџџџџ™3Ьџ€€ €tџџџ Zџtџџџdџчwright_mc€€џџџ?џџаm€€ RightџџџџџџOџ€€€€€ YZџМѓџџџфЃШarialџџџџ(Label label_txt€€џџџ?џџth€€ LabelџџџџџOџџ€€€cd €€cdџџџ?џџnormal‚n€€€)џџ CDocumentPagePage 1Scene 1Ё&‹>џџџџ ъ2?џџџџ€ Symbol 13RoboHelp ДІ> прЎ>  Symbol 13џџџџсЎ>џџџџ€Symbol 8Button PlaceholderДІ> LДІ>Symbol 8џџџџнсЎ>џџџџ€Symbol 6Left PlaceholderДІ> =ДІ> Symbol 6џџџџеТЎ>џџџџ€ Symbol 12Right Placeholder ДІ> ппЎ>*Placeholder Graphics/Left Placeholder copyџџџџО‡С>џџџџ€Symbol 3RightЈЛІ>'Symbol 3џџџџ‘†?џџџџ€Symbol 2LeftH'‹>Symbol 2џџџџ?џџџџ€Symbol 1Buttonб&‹>Symbol 1џџџџІ?џџџџ€ Symbol 24Generic FH buttonOy_>FGenericFHbuttonFlashHelp_Components.swf+C:\FlashComponents\FlashHelp_Components.flaGeneric FH buttonCч2?Oy_>Cч2?LabelLABELlabel“ТJџїsEžЋ (JячџџџџpаШhhhhџџџџРРРџДz PublishRNWKProperties::speed256K0!PublishGifProperties::PaletteName"PublishHtmlProperties::StartPaused0%PublishFormatProperties::htmlFileNameBlankButton.html PublishQTProperties::LayerOption PublishQTProperties::AlphaOption"PublishQTProperties::MatchMovieDim1PublishHtmlProperties::Loop1Vector::Debugging Permitted0PublishFormatProperties::jpeg0&PublishRNWKProperties::speedSingleISDN0&PublishRNWKProperties::singleRateAudio0PublishQTProperties::Width550$PublishPNGProperties::OptimizeColors1PublishHtmlProperties::Units0%PublishRNWKProperties::mediaCopyright(c) 2000#PublishRNWKProperties::flashBitRate1200PublishGifProperties::Smooth1Vector::Compress Movie1&PublishFormatProperties::flashFileNameBlankButton.swf%PublishFormatProperties::projectorMac0!PublishRNWKProperties::exportSMIL1 PublishRNWKProperties::speed384K0"PublishRNWKProperties::exportAudio1"PublishGifProperties::DitherOptionPublishHtmlProperties::Quality4(PublishHtmlProperties::VerticalAlignment1$PublishFormatProperties::pngFileNameBlankButton.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::generatorFileNameBlankButton.swtPublishFormatProperties::gif0$PublishRNWKProperties::mediaKeywords!PublishRNWKProperties::mediaTitlePublishRNWKProperties::speed28K1PublishGifProperties::Loop1PublishGifProperties::Width550#PublishFormatProperties::qtFileNameBlankButton.mov$PublishRNWKProperties::speedDualISDN0$PublishRNWKProperties::realVideoRate100000PublishJpegProperties::Quality80"PublishPNGProperties::DitherOption#PublishGifProperties::PaletteOption#PublishGifProperties::MatchMovieDim1PublishFormatProperties::flash1$PublishJpegProperties::MatchMovieDim1#PublishPNGProperties::PaletteOption#PublishPNGProperties::MatchMovieDim1PublishHtmlProperties::Align0-PublishFormatProperties::projectorWinFileNameBlankButton.exe#PublishQTProperties::PlayEveryFrame0"PublishJpegProperties::Progressive0"PublishPNGProperties::DitherSolids0PublishHtmlProperties::Height400PublishHtmlProperties::Width550Vector::Debugging PasswordVector::Omit Trace Actions0%PublishFormatProperties::jpegFileNameBlankButton.jpgPublishJpegProperties::Size0PublishPNGProperties::Interlace0PublishGifProperties::Height400'PublishHtmlProperties::TemplateFileNameeC:\Documents and Settings\edigre\Application Data\Macromedia\Flash MX\Configuration\Html\Default.html!PublishHtmlProperties::WindowMode0Vector::TopDown0-PublishFormatProperties::projectorMacFileNameBlankButton.hqxPublishFormatProperties::rnwk0PublishFormatProperties::png0PublishRNWKProperties::speed56K1PublishQTProperties::Height400%PublishPNGProperties::RemoveGradients0PublishGifProperties::MaxColors255'PublishGifProperties::TransparentOptionPublishGifProperties::LoopCountVector::Report0"PublishFormatProperties::generator0"PublishRNWKProperties::audioFormat0$PublishGifProperties::OptimizeColors1Vector::Version6Vector::Event Format0Vector::Stream Compress7PublishFormatProperties::qt0 PublishRNWKProperties::speed512K0PublishJpegProperties::Height400PublishPNGProperties::Height400PublishPNGProperties::Width550%PublishGifProperties::RemoveGradients0PublishHtmlProperties::Scale0Vector::Event Compress7"PublishRNWKProperties::mediaAuthor(PublishRNWKProperties::speedCorporateLAN0&PublishRNWKProperties::showBitrateDlog1"PublishRNWKProperties::exportFlash1PublishQTProperties::Looping0*PublishQTProperties::UseQTSoundCompression0PublishJpegProperties::Width550!PublishPNGProperties::PaletteName!PublishPNGProperties::Transparent0&PublishGifPropertte_str = ""; } GenericButtonClass.prototype = new MovieClip(); // Handles initialization of the button features GenericButtonClass.prototype.onLoad = function () { // Set special values for the fields this.userlabel_txt.autoSize = true; this._parent._focusrect = true; this._parent.focusEnabled = true; this._parent.tabChildren = false; // Goto the first frame because this represents the proper size of the button unless we // are in test mode. In that case, go to the "normal" state. if (this._parent == _level0) { this.GotoDefaultState(); } else { this.GotoAndStopFrame(1); } // Let the container know we are loaded this._parent._parent.ItemLoaded(this._parent); } /////////////////////////////////////////////////////////////////////////// // // Handle calls to set the state of the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.SetItemLabel = function (newlabel) { // First make sure there is a label to set if (this.userlabel_txt != undefined) { // Save the old widths of the label and button so we can scale the button appropriately var oldLabelX = this.userlabel_txt._x; var oldButtonX = this.userbutton_mc._x; var oldButtonWidth = this.userbutton_mc._width; var oldLabelTextWidth = this.userlabel_txt.textWidth; var oldIconCenterX = this.usericon_mc._x + (this.usericon_mc._width / 2); var coordButton = this.userbutton_mc.getBounds(this._parent); var oldRightOffset = coordButton.xMax - this.userright_mc._x; // Set the new label this.userlabel_txt.text = newlabel; // Get the new label width var newLabelTextWidth = this.userlabel_txt.textWidth; // Scale the button based on how much the label scaled var widthDiff = oldButtonWidth - oldLabelTextWidth; var newButtonWidth = newLabelTextWidth + widthDiff; this.userbutton_mc._width = newButtonWidth; // Move the right_mc the appropriate distance right coordButton = this.userbutton_mc.getBounds(this._parent); this.userright_mc._x = coordButton.xMax - oldRightOffset; // Move the icon_mc to the same position relative to the button_mc var oldIconPercent = (oldIconCenterX - oldButtonX) / oldButtonWidth; var newIconCenterX = coordButton.xMin + (newButtonWidth * oldIconPercent); this.usericon_mc._x = newIconCenterX - (this.usericon_mc._width / 2); } return; } GenericButtonClass.prototype.EnableItem = function () { this.enabled = true; this._parent.useHandCursor = true; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisableItem = function () { this.enabled = false; this._parent.useHandCursor = false; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SelectedWhenPressed = function () { this.bSelectedWhenPressed = true; return; } GenericButtonClass.prototype.DisplaySelected = function () { this.selected = true; this.bJustSelected = true; this.bJustPressed = false; this.GotoDefaultState(); } GenericButtonClass.prototype.DisplayNormal = function () { this.bJustPressed = false; this.selected = false; this.GotoDefaultState(); } GenericButtonClass.prototype.SetAttribute = function (attribute, value) { var newattrib = new DisplayAttribute(attribute, value); this.attribute_array.push(newattrib); } GenericButtonClass.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; } GenericButtonClass.prototype.GotoAndStopFrame = function(frame) { this.userbutton_mc.gotoAndStop(frame); this.userleft_mc.gotoAndStop(frame); this.userright_mc.gotoAndStop(frame); this.usericon_mc.gotoAndStop(frame); } /////////////////////////////////////////////////////////////////////////// // // Handle all of the mouse movements from the button // /////////////////////////////////////////////////////////////////////////// GenericButtonClass.prototype.GotoButtonState = function(state) { if ((this.bJustSelected) || (state != "selected")) { this.bJustSelected = false; // Only perform the action if this is a change of state if (state != this.lastState_str) { this.userbutton_mc.gotoAndPlay(state); this.userleft_mc.gotoAndPlay(state); this.userright_mc.gotoAndPlay(state); this.usericon_mc.gotoAndPlay(state); this.usertextfield_mc.gotoAndPlay(state); this.lastState_str = state; } } } GenericButtonClass.prototype.GotoDefaultState = function () { if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("normal"); } } else { this.GotoButtonState("disabled"); } return; } GenericButtonClass.prototype.onRollOver = function () { this._parent._parent.ItemRolledOver(this._parent); if (this.enabled == true) { if (this.selected == true) { this.GotoButtonState("selected"); } else { this.GotoButtonState("over"); } } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onPress = function() { if ((this.enabled) && (!this.selected)) { this.GotoButtonState("down"); } else { this.GotoDefaultState(); } } GenericButtonClass.prototype.onRelease = function() { // Send notification to the owner if ((this.enabled == true) && (!this.selected)) { _parent.DoCommand(CmdItemInvoked, this._parent, 0); } // Return the button to the default state if it is not going // to be shown as selected. if (!this.bSelectedWhenPressed) { this.GotoDefaultState(); } else { // Note that we were just pressed in case we get the extra "RollOut" call (see onRollOut) this.bJustPressed = true; } } GenericButtonClass.prototype.onDragOut = function() { this.GotoDefaultState(); } GenericButtonClass.prototype.onDragOver = function() { this.onPress(); } GenericButtonClass.prototype.onRollOut = function() { // For some reason we get a onRollOut call when a button is pressed and // we don't want to go to the default state automatically in that case. // We will wait for the container to set our state. if (!this.bJustPressed) { this.GotoDefaultState(); } } // Add effects for testing if (this == _level0) { left_mc.onRollOver = function () { fhgeneric_comp.onRollOver(); } left_mc.onPress = function () { fhgeneric_comp.onPress(); } left_mc.onRelease = function () { fhgeneric_comp.onRelease(); }; left_mc.onDragOut = function () { fhgeneric_comp.onDragOut(); }; left_mc.onDragOver = function () { fhgeneric_comp.onDragOver(); }; left_mc.onRollOut = function () { fhgeneric_comp.onRollOut(); }; 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(); }; right_mc.onRollOver = function () { fhgeneric_comp.onRollOver(); } right_mc.onPress = function () { fhgeneric_comp.onPress(); } right_mc.onRelease = function () { fhgeneric_comp.onRelease(); }; right_mc.onDragOut = function () { fhgeneric_comp.onDragOut(); }; right_mc.onDragOver = function () { fhgeneric_comp.onDragOver(); }; right_mc.onRollOut = function () { fhgeneric_comp.onRollOut(); }; icon_mc.onRollOver = function () { fhgeneric_comp.onRollOver(); } icon_mc.onPress = function () { fhgeneric_comp.onPress(); } icon_mc.onRelease = function () { fhgeneric_comp.onRelease(); }; icon_mc.onDragOut = function () { fhgeneric_comp.onDragOut(); }; icon_mc.onDragOver = function () { fhgeneric_comp.onDragOver(); }; icon_mc.onRollOut = function () { fhgeneric_comp.onRollOut(); }; textfield_mc.onRollOver = function () { fhgeneric_comp.onRollOver(); } textfield_mc.onPress = function () { fhgeneric_comp.onPress(); } textfield_mc.onRelease = function () { fhgeneric_comp.onRelease(); }; textfield_mc.onDragOut = function () { fhgeneric_comp.onDragOut(); }; textfield_mc.onDragOver = function () { fhgeneric_comp.onDragOver(); }; textfield_mc.onRollOut = function () { fhgeneric_comp.onRollOut(); }; } // Register the class Object.registerClass("FGenericFHButton", GenericButtonClass); #endinitclip €€ actionsџџџџџOOџ€€1%PublishFormatProperties::jpegFileNameBlankButton.jpgVector::Omit Trace Actions0Vector::Debugging PasswordPublishHtmlProperties::Width550PublishHtmlProperties::Height400"PublishPNGProperties:]n€€€ џџџ?џџdisabledд€€ LabelsџџџџO€џџ€€dynamically anџџCPicPageџџ CPicLayerџџ CPicFrameџџCPicText€€ љџ&Й‹29 №_sansџ(HINT: Toolbar buttons are made up of several pieces to allow loading of text dynamically and allow scaling without ugly distortion. Use the labeled frames in each movie clip to define what happens in the various states џџџџ €€ џџџ?џџ R€€џџџџ џџџџџџџџ €€ џџџ?џџХE€€џџџџ џџџџџџџ?џџ{ €€ BGџџџџO€џџ€€џџ€€ FGџџџџџOOџ€€of the button. NOTE: The Powered By button is unique: It loads a string for the "powered by" part, but you can place your own label or image on right_mc to finish the statement. button_mc: This is the movie clip used for the center of the button. If yoies::TransparentAlpha128PublishGifProperties::Animated0Vector::Stream Format0$PublishFormatProperties::gifFileNameBlankButton.gif"PublishQTProperties::PausedAtStart0%PublishQTProperties::ControllerOption0PublishPNGProperties::MaxColors255%PublishFormatProperties::rnwkFileNameBlankButton.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џЊџЬџџџџџџ €џџџ*џџџ]џџџџџЊџџдџџџџџџu have a label on the button, button_№_sansџ(mc will scale to fit the text on the label. fhgeneric_mc: This is an instance of the generic button component and is required for the button to function properly. [optional items below] left_mc, right_mc: These movie clips never scale, but they will move as button_mc scales. The purpose of these clips is џџCPicPageџџ CPicLayerџџ CPicFrameџџ CPicShape€€ЋЊ џџџџџs€` (№P€0 іьp€њP€ь0` s€€ і` 3№ і€€џџџ?џџg8€€ BGџџџџO€џџ€€€€џџџ?џџž €€ FGџџџџџOOџ€€to allow sides of the button that do not become distorted as the button scales. icon_mc: This movie will not scale, but will keep the same relative position within button_mc as the button scales. One wat№_sansџ(y to use icon_mc is to center an icon above the text . label_txt: This text field is populated with the proper text at runtime. - OR - textfield_mc: If you would like your text to react to button events, you may use the structure below. Use the labeled frames in the textfield_mc timeline to apply effects to label_mc. textfield_mc label_mc label_txt€€џџџ?џџ,€€ HintџџџџOџџџ€€џџ CPicSpriteш  ш џџџџAfhgeneric_compLabelLABELlabel“ТJџїsEžЋ (Jяч€€џџџ?џџM8€€ ComponentџџџџO€џџ€€ €Œџџџ 3гZџŒџџџdџV3 button_mc€€џџџ?џџa€€ ButtonџџџџџOOџ€€€€џџџ?џџ2€€ IconџџџџOџOџ€€ €ќўџџџџџ Zџќўџџџџџdџљleft_mc€€џџџ?џџџџCPicPageџџ CPicLayerџџ CPicFrameџџCPicText€€ ((лfЃ@_sansџ(RoboHelp€€џџџ?џџ6€€ Layer 1џџџџO€џџ€€b€€ Leftџџџџ™3Ьџ€€ €tџџџ ZџtџџџdџrKright_mc€€џџџ?џџ™K€€ RightџџџџџџOџ€€€€€ YZџМѓџџџфЃШarialџџџџ(Label label_txt€€џџџ?џџ€P€€ LabelџџџџџOџџ€€€cd €€cdџџџ?џџnormal‚n€€€)џџ CDocumentPagePage 1Scene 1Ё&‹>џџџџэЧT?џџџџ€ Symbol 13RoboHelp ДІ> прЎ>  Symbol 13џџџџсЎ>џџџџ€Symbol 8Button PlaceholderДІ> LДІ>Symbol 8џџџџнсЎ>џџџџ€Symbol 6Left PlaceholderДІ> =ДІ> Symbol 6џџџџеТЎ>џџџџ€ Symbol 12Right Placeholder ДІ> ппЎ>*Placeholder Graphics/Left Placeholder copyџџџџО‡С>џџџџџh:€Placeholder GraphicsДІ> џџџџ"PublishQTProperties::QTSndSettingsџџCQTAudioSettingsџџШ€Symbol 3RightЈЛІ>'Symbol 3џџџџ‘†?џџџџ€Symbol 2LeftH'‹>Symbol 2џџџџ?џџџџ€Symbol 1Buttonб&‹>Symbol 1џџџџІ?џџџџ€ Symbol 25Generic FH buttonOy_>FGenericFHbuttonflashhelp_components.swf+C:\FlashComponents\FlashHelp_Components.flaGeneric FH buttonHИT?Oy_>HИT?LabelLABELlabel“ТJџїsEžЋ (JячџџџџpаШhhhhџџџџРРРџДz%PublishFormatProperties::htmlFileNameBlankButton.html"PublishHtmlProperties::StartPaused0!PublishGifProperties::PaletteName PublishRNWKProperties::speed256K0PublishFormatProperties::jpeg0Vector::Debugging Permitted0PublishHtmlProperties::Loop1"PublishQTProperties::MatchMovieDim1 PublishQTProperties::AlphaOption PublishQTProperties::LayerOptionPublishHtmlProperties::Units0$PublishPNGProperties::OptimizeColors1PublishQTProperties::Width550&PublishRNWKProperties::singleRateAudio0&PublishRNWKProperties::speedSingleISDN0%PublishFormatProperties::projectorMac0&PublishFormatProperties::flashFileNameBlankButton.swfVector::Compress Movie1PublishGifProperties::Smooth1#PublishRNWKProperties::flashBitRate1200%PublishRNWKProperties::mediaCopyright(c) 2000PublishFormatProperties::html0$PublishFormatProperties::pngFileNameBlankButton.png(PublishHtmlProperties::VerticalAlignment1PublishHtmlProperties::Quality4"PublishGifProperties::DitherOption"PublishRNWKProperties::exportAudio1 PublishRNWKProperties::speed384K0!PublishRNWKProperties::exportSMIL1Vector::Override Sounds0!PublishHtmlProperties::DeviceFont0"PublishPNGProperties::FilterOption'PublishRNWKProperties::mediaDescriptionPublishFormatProperties::gif0*PublishFormatProperties::generatorFileNameBlankButton.swtVector::Template0Vector::Protect0Vector::Quality80*PublishHtmlProperties::HorizontalAlignment1"PublishHtmlProperties::DisplayMenu1PublishGifProperties::Interlace0"PublishGifProperties::DitherSolids0PublishPNGProperties::Smooth1PublishPNGProperties::BitDepth24-bit with AlphaPublishJpegProperties::DPI4718592PublishQTProperties::Flatten1#PublishFormatProperties::qtFileNameBlankButton.movPublishGifProperties::Width550PublishGifProperties::Loop1PublishRNWKProperties::speed28K1!PublishRNWKProperties::mediaTitle$PublishRNWKProperties::mediaKeywordsPublishFormatProperties::flash1#PublishGifProperties::MatchMovieDim1#PublishGifProperties::PaletteOption"PublishPNGProperties::DitherOptionPublishJpegProperties::Quality80$PublishRNWKProperties::realVideoRate100000$PublishRNWKProperties::speedDualISDN0-PublishFormatProperties::projectorWinFileNameBlankButton.exePublishHtmlProperties::Align0#PublishPNGProperties::MatchMovieDim1#PublishPNGProperties::PaletteOption$PublishJpegProperties::MatchMovieDim1%PublishFormatProperties::jpegFileNameBlankButton.jpgVector::Omit Trace Actions0Vector::Debugging PasswordPublishHtmlProperties::Width550PublishHtmlProperties::Height400"PublishPNGProperties::DitherSolids0"PublishJpegProperties::Progressive0#PublishQTProperties::PlayEveryFrame0PublishFormatProperties::png0PublishFormatProperties::rnwk0-PublishFormatProperties::projectorMacFileNameBlankButton.hqxVector::TopDown0!PublishHtmlProperties::WindowMode0'PublishHtmlProperties::TemplateFileNameeC:\Documents and Settings\edigre\Application Data\Macromedia\Flash MX\Configuration\Html\Default.htmlPublishGifProperties::Height400PublishPNGProperties::Interlace0PublishJpegProperties::Size0"PublishFormatProperties::generator0Vector::Report0PublishGifProperties::LoopCount'PublishGifProperties::TransparentOptionPublishGifProperties::MaxColors255%PublishPNGProperties::RemoveGradients0PublishQTProperties::Height400PublishRNWKProperties::speed56K1PublishFormatProperties::qt0Vector::Stream Compress7Vector::Event Format0Vector::Version6$PublishGifProperties::OptimizeColors1"PublishRNWKProperties::audioFormat0Vector::Event Compress7PublishHtmlProperties::Scale0%PublishGifProperties::RemoveGradients0PublishPNGProperties::Width550PublishPNGProperties::Height400PublishJpegProperties::Height400 PublishRNWKProperties::speed512K0$PublishFormatProperties::gifFileNameBlankButton.gifVector::Stream Format0PublishGifProperties::Animated0&PublishGifProperties::TransparentAlpha128!PublishPNGProperties::Transparent0!PublishPNGProperties::PaletteNamePublishJpegProperties::Width550*PublishQTProperties::UseQTSoundCompression0PublishQTProperties::Looping0"PublishRNWKProperties::exportFlash1&PublishRNWKProperties::showBitrateDlog1(PublishRNWKProperties::speedCorporateLAN0"PublishRNWKProperties::mediaAuthorPropSheet::ActiveTab1599%PublishFormatProperties::defaultNames1%PublishFormatProperties::projectorWin0%PublishFormatProperties::rnwkFileNameBlankButton.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џЊџЬџџџџџџ €џџџ*џџџ]џџџџџЊџџдџџџџџџџk:€Placeholder GraphicsДІ> џџџџ"PublishQTProperties::QTSndSettingsџџCQTAudioSettingsџџШ