╨╧рб▒с>■  Ю■   Яб                                                                                                                                                                                                                                                                                                                                                                                                                                    Root Entry        pк|Yкr╧ГRASH∙Nqq├Ь└+Contents    ╓а,Page 1            ЬлSymbol 1            u╓¤                   ¤   K    ■        #    : !"98%&'()*+,-./01234567■   >@;<=J?■   ABCDEFGHI[fОMNOPQRSTUVWXYZ^\]■   _`abc■   Э{ghijkДmnopqrstuvwxyzП|}~АRoot Entry         pк|Yкr╧ГRASH@A╖ЖA]├Ь└+Contents    йа,Page 1            ЬлSymbol 1            u╓        ¤   ¤   K        ■        ¤   #■   : !"98%&'()*+,-./01234567■   >@;<=J?■   ABCDEFGHI[f▓MNOPQRSTUVWXYZ^\]■   _`abc■   Э{ghijkДmnopqrstuvwxyzП|}~АБВГДЕЖЗИЙКЛМН■                                       ШЩЪЫЮЭЯ■   абвг▒Ежзи■   клмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛╨                                                                    ■                                                                                                                                                                                               Symbol 2    ЕSymbol 3        $Ь&Symbol 4            >R Symbol 5    &xБВГДЕЖЗИЙКЛМН■   лРСТУФХЦ┐                    ЭЯ    абвг▒Е╙                                                                                                    └┴┬├─┼╞╟╚╔╩╦╠═╬╧╤    ╥■   ╘╒■   ╫╪┘┌█▄▌▐▀рстуфхцчшщъыь■                                                                               Symbol 2    ЕSymbol 3        $Ь&Symbol 4            >R Symbol 5    &xБВГДЕЖЗИЙКЛМНОПРСТУФ■   ЦЧШЩЪЫ■   ЭЮЯабвгдежзийклмно■                                                                                                                                                                                                                                                                                                                                       БВГДЕЖЗИЙКЛМНОПРСТУФ■   ЦЧШЩЪЫ■   ЭЮЯабвгдежзийклмно■                                                                                                                                                                                                                                                                                                                                         CPicPage   CPicLayer   CPicFrameАА   ?  Аu s&#initclip icon_mc._visible = false; textfield_mc._visible = false; highlight_mc._visible = false; _global.textNode = new Object; _global.textNode.nCount = 0; function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { // this cod  CPicPage   CPicLayer   CPicFrameАА   ?  +D ╫%#initclip icon_mc._visible = false; textfield_mc._visible = false; highlight_mc._visible = false; _global.textNode = new Object; _global.textNode.nCount = 0; function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { // this code is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNode.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Make sure the text field sizes properly this.userTextField_mc.label_mc.label_txt.autoSize = true; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.text = newText_str; this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionIn = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndStop("visible"); this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._wБВГЙИЖЗеХКЛМНОеРСТУФ■   ЦЧШЩЪЫЬ■   ▐                кжзий■   ║    ноп░╦┤╡(╢╖╕╣╗┬-╜╛▌└┴├C─┼╞╟╚╔╩▄╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█■   чх▀рстуфЇцшщъыьэюяЁёЄє■   їЎў°∙·√№¤■ idth) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHeight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.userIcon_mc._height) >(this.userTextField_mc._y+this.userTextField_mc._height)) { nHeight = (this.userIcon_mc._y+this.userIcon_mc._height) - YPos; } else { nHeight = (this.userTextField_mc._y+this.userTextField_mc._height) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.userTextField_mc._height; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } ////////////////////////////////////////////Symbol 24        д94Symbol 25            FБ4                        e is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNode.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); // C  CPicPage   CPicLayer   CPicFrameАА   ?   Х)#initclip icon_mc._visible = false; textfield_mc._visible = false; highlight_mc._visible = false; var g_textFormat = undefined; _global.textNode = new Object; _global.textNode.nCount = 0; function SetTextFormat(newTextFormat) { _parent.debug_trace("*******************************************************"); _parent.debug_trace(newTextFormat.font); _parent.debureate a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Make sure the text field sizes properly this.userTextField_mc.label_mc.label_txt.autoSize = true; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.text = newText_str; this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextF/////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node ////////////////////////////////////////////////////////  CPicPage   CPicLayer   CPicFrameАА   ?  %; г%#initclip icon_mc._visible = false; textfield_mc._visible = false; highlight_mc._visible = false; _global.textNode = new Object; _global.textNode.nCount = 0; function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { // this code is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNode.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Make sure the text field sizes properly this.userTextField_mc.label_mc.label_txt.autoSize = true; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.text = newText_str; this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionIn = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndStop("visible"); this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHeight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.userIcon_mc._height) >(this.userTextField_mc._y+this.userTextField_mc._height)) { nHeight = (this.userIcon_mc._y+this.userIcon_mc._height) - YPos; } else { nHeight = (this.userTextField_mc._y+this.userTextField_mc._height) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.userTextField_mc._height; } trace(nHeight); return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.unloadMovie(); this.userTextField_mc.unloadMovie(); this.userHighlight_mc.unloadMovie(); } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; #endinitclipАА TextNode Definition    OА  АА/////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = ield_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetState = function(bState) { this.bItemIn = bState; }; GenericTextNodeClass.prototype.TransitionIn = function() { if (this.bItemIn) { this.InNoTransition(); } else { this.bItg_trace("*******************************************************"); g_textFormat = newTextFormat; } function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { // this code is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNode.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlighx + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.unloadMovie(); this.userTextField_mc.unloadMovie(); this.userHighlight_mc.unloadMovie(); } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; #endinitclipАА TextNode Definition    OА  АА   ?  txАА| | d ╒]label_mcАА    ?  ЇemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); } }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndStop("visible"); this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHeight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.userIcon_mc._height) >(this.userTextField_mc._y+this.userTextField_mc._height)) { nHeight = (this.userIcon_mc._y+this.userIcon_mc._height) - YPos; } else { nHeight = (this.userTextField_mc._y+this.userTextField_mc._height) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.userTextField_mc._height; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } ///////////t_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_Symbol 6           Symbol 7             Symbol 8         ╨&Symbol 9      l'  CPicPage   CPicLayer   CPicFrameАА   ?  ─e  (#initclip icon_mc._visible = false; textfield_mc._visible = false; highlight_mc._visible = false; _global.textNode = new Object; _global.textNode.nCount = 0; function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { // this code is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNode.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.autoSize = true; this.userTextField_mc.label_mc.label_txt.text = newText_str; textFormatObj = this.userTextField_mc.label_mc.label_txt.getTextFormat(); var rect = textFormatObj.getTextExtent(newText_str) // this.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; this.userTextField_mc.label_mc.label_txt.autoSize = false; }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetState = function(bState) { this.bItemIn = bState; }; GenericTextNodeClass.prototype.TransitionIn = function() { if (this.bItemIn) { this.InNoTransition(); } else { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); } }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; if (this.bSelected) { this.userTextField_mc.gotoAndPlay("selected"); } else { this.userTextField_mc.gotoAndStop("visible"); } this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHe//////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.unloadMovie(); this.userTextField_mc.unloadMovie(); this.userHighlight_mc.unloadMovie(); } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; #endinitclipАА TextNode Definition    OА  АА       А        А      А ight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.userIcon_mc._height) >(this.userTextField_mc._y+this.userTextField_mc._height)) { nHeight = (this.userIcon_mc._y+this.userIcon_mc._height) - YPos; } else { nHeight = (this.userTextField_mc._y+this.userTextField_mc._height) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.userTextField_mc._height; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.removeMovieClip(); delete this.userIcon_mc; this.userTextField_mc.removeMovieClip(); delete this.userTextField_mc; this.userHighlight_mc.removeMovieClip(); delete this.userHighlight_mc; } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; #endinitclipАА TextNode Definition    OА  АА А   xяx А  АЩ╠ ╛я` АЩ3╠ ╗Рx АЩf╠ ┤xР АЩЩ╠ аPи АЩ╠╠ xPи АЩ ╠ dя└ А╠╠ ╚я` А╠3╠ ╚Рx А╠f╠ ╚xР А╠Щ╠ ╚Pи А╠╠╠ └ А╠ ╠ Pя╪ А ╠ ╨яx А 3╠ ╥яР А f  CPicPage   CPicLayer   CPicFrameАА   ?  ЬZ ▓0#initclip icon_mc._visible = false; textfield_mc._visible = false; highlight_mc._visible = false; var g_textFormat = undefined; var g_hoverFormat = undefined; if (_global.textNode == undefined) { _global.textNode = new Object; _global.textNode.nCount = 0; } function SetTextFormat(newTextFormat) { g_textFormat = newTextFormat; } function SetHoverFormat(newHov  CPicPage   CPicLayer   CPicFrameАА   ?  o  (#initclip icon_mc._visible = false; textfield_mc._visible = false; highlight_mc._visible = false; _global.textNode = new Object; _global.textNode.nCount = 0; function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { // this codmc.label_txt.autoSize = true; this.userTextField_mc.label_mc.label_txt.text = newText_str; textFormatObj = this.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items] } } this.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; this.userTextField_mc.label_mc.label_txt.autoSize = false; }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetState = function(bState) { this.bItemIn = bState; }; GenericTextNodeClass.prototype.TransitionIn = function() { if (this.bItemIn) { this.InNoTransition(); } else { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); } }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; if (this.bSelected) { this.userTextField_mc.gotoAndPlay("selected"); } else { this.userTextField_mc.gotoAndStop("visible"); } this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("sel  CPicPage   CPicLayer   CPicFrameАА   ?  '  (#initclip icon_mc._visible = false; textfield_mc._visible = false; highlight_mc._visible = false; _global.textNode = new Object; _global.textNode.nCount = 0; function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { // this code is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNode.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.autoSize = true; this.userTextField_mc.label_mc.label_txt.text = newText_str; textFormatObj = this.userTextField_mc.label_mc.label_txt.getTextFormat(); var rect = textFormatObj.getTextExtent(newText_str) // this.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; this.userTextField_mc.label_mc.label_txt.autoSize = false; }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetState = function(bState) { this.bItemIn = bState; }; GenericTextNodeClass.prototype.TransitionIn = function() { if (this.bItemIn) { this.InNoTransition(); } else { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); } }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; if (this.bSelected) { this.userTextField_mc.gotoAndPlay("selected"); } else { this.userTextField_mc.gotoAndStop("visible"); } this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHee is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNode.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.autoSize = true; this.userTextField_mc.label_mc.label_txt.text = newText_str; textFormatObj = this.userTextField_mc.label_mc.label_txt.getTextFormat(); var rect = textFormatObj.getTextExtent(newText_str) // this.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; this.userTextField_mc.label_mc.label_txt.autoSize = false; }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetState = function(bState) { this.bItemIn = bState; }; GenericTextNodeClass.prototype.TransitionIn = function() { if (this.bItemIn) { this.InNoTransition(); } else { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); } }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; if (this.bSelected) { this.userTextField_mc.gotoAndPlay("selected"); } else { this.userTextField_mc.gotoAndStop("visible"); } this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out ///////////////////////////////////////////////////////////////////////////ected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected");    ?  tsАА Icon    OА  АААА   ?  Л{ААА    ?  CААА    ?  esstop();ААА    ?  fstop();ААА    ?  zstop();ААА   ?  еlstop();АА Actions     OO АААА   ?  ЎqААА    ?  inyPААА   ?  visible╜ААА    ?  selectedўNААА this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width//////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHeight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.userIcon_mc._height) >(this.userTextField_mc._y+this.userTextField_mc._height)) { nHeight = (this.userIcon_mc._y+this.userIcon_mc._height) - YPos; } else { nHeight = (this.userTextField_mc._y+this.userTextField_mc._height) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.ight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.userIcon_mc._height) >(this.userTextField_mc._y+this.userTextField_mc._height)) { nHeight = (this.userIcon_mc._y+this.userIcon_mc._height) - YPos; } else { nHeight = (this.userTextField_mc._y+this.userTextField_mc._height) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.userTextField_mc._height; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.removeMovieClip(); delete this.userIcon_mc; this.userTextField_mc.removeMovieClip(); delete this.userTextField_mc; this.userHighlight_mc.removeMovieClip(); delete this.userHighlight_mc; } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; #endinitclipАА TextNode Definition    OА  АА /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHeight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.userIcon_mc._height) >(this.userTextField_mc._y+this.userTextField_mc._height)) { nHeight = (this.userIcon_mc._y+this.userIcon_mc._height) - YPos; } else { nHeight = (this.userTextField_mc._y+this.userTextField_mc._height) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.userTextField_mc._height; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.removeMovieClip(); delete this.userIcon_mc; this.userTextField_mc.removeMovieClip(); delete this.userTextField_mc; this.userHighlight_mc.removeMovieClip(); delete this.userHighlight_mc; } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; #endinitclipАА TextNode Definition    OА  АА    └└└  ┤    №   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 А  А3erFormat) { g_hoverFormat = newHoverFormat; } function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { // this code is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNo■    ■     !"#$%,'()*+■   -./01234567t9:;<=■   ?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrs■   Хvwxyz{|}~АБВГЙИЖЗеХКЛМНОеРСТУФ■   ЦЧШЩЪЫЬ■   ▐ ¤   ■   ¤   а    кжзий■   ║вноп░╦┤    ╡(╢╖╕╣╗┬-╜╛▌└┴├C─┼╞╟╚╔╩▄╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█■   чх▀рстуфЇцшщъыьэюяЁёЄє■   їЎў°∙·√№¤■ Symbol 24        д94Symbol 25            ПБ4                        ■                9 !"#$%&'■   )*+,д./012345678T:;<=>?@AB■   DE_                                                        UVWXY■                       `|bcdefghijklo        pqrstuvwxyz{■   }~АSymbol 20            ╝л1Symbol 21    л1Symbol 22            │л1Symbol 23    aл1Symbol 20            ╝л1Symbol 21    л1Symbol 22            │л1Symbol 23    aл1  CPicPage   CPicLayer   CPicFrameАА   ?  Дh @3#initclip icon_mc._visible = false; textfield_mc._visible = false; highlight_mc._visible = false; var g_textFormat = undefined; var g_hoverFormat = undefined; if (_global.textNode == undefined) { _global.textNode = new Object; _global.textNode.nCount = 0; } function SetTextFormat(newTextFormat) { g_textFormat = newTextFormat; } function SetHoverFormat(newHovuserTextField_mc._height; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.removeMovieClip(); delete this.userIcon_mc; this.userTextField_mc.removeMovieClip(); delete this.userTextField_mc; this.userHighlight_mc.removeMovieClip(); delete this.userHighlight_mc; } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; #endinitclipАА TextNode Definition    OА  ААerFormat) { g_hoverFormat = newHoverFormat; } function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { // this code is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNoSymbol 16            О*Symbol 17     м4+Symbol 18            ┐╨0Symbol 19    dл1  CPicPage   CPicLayer   CPicFrameАА   ?  Щh ;*#initclip icon_mc._visible = false; textfield_mc._visible = false; highlight_mc._visible = false; var g_textFormat = undefined; if (_global.textNode == undefined) { _global.textNode = new Object; _global.textNode.nCount = 0; } function SetTextFormat(newTextFormat) { _parent.debug_trace("*******************************************************"); _parent.debug_trace(newTextFormat.font); _parent.debug_trace("*******************************************************"); g_textFormat = newTextFormat; } function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { // this code is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNode.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); this.userIcon_mc.tabEnabled = false; this.userTextField_mc.tabEnabled = false; this.userHighlight_mc.tabEnabled = false; // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc.  CPicPage   CPicLayer   CPicFrame   CPicShapeААy ═╠╕ї  а╠ sА░`Ё░0 0Pт0р№АА   ?  =ZАА Layer 1    OА  АА .@label_mc  CPicPage   CPicLayer   CPicFrame   CPicSpriteя    я   dSymbol 10            L)Symbol 11     l)Symbol 12            8TSymbol 14    e)  CPicPage   CPicLayer   CPicFrameАА   ?  0F ▓0#initclip icon_mc._visible = false; textfield_mc._visible = false; highlight_mc._visible = false; var g_textFormat = undefined; var g_hoverFormat = undefined; if (_global.textNode == undefined) { _global.textNode = new Object; _global.textNode.nCount = 0; } function SetTextFormat(newTextFormat) { g_textFormat = newTextFormat; } function SetHoverFormat(newHov бlabel_mcАА   ?  ;,АА| | d "label_mcАА   ?  Ў>АА d Э@erFormat) { g_hoverFormat = newHoverFormat; } function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { // this code is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNode.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); this.userIcon_mc.tabEnabled = false; this.userTextField_mc.tabEnabled = false; this.userHighlight_mc.tabEnabled = false; // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; // Capture the onRollover and onRollout events this.userTextField_mc.onRollOver = this.Rollover; this.userIcon_mc.onRollOver = this.Rollover; this.userTextField_mc.onRollOut = this.Rollout; this.userIcon_mc.onRollOut = thisde.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); this.userIcon_mc.tabEnabled = false; this.userTextField_mc.tabEnabled = false; this.userHighlight_mc.tabEnabled = false; // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; .Rollout; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.autoSize = true; this.userTextField_mc.label_mc.label_txt.text = newText_str; textFormatObj = this.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) {   CPicPage   CPicLayer   CPicFrameАА   ?  sN ▓0#initclip icon_mc._visible = false; textfield_mc._visible = false; highlight_mc._visible = false; var g_textFormat = undefined; var g_hoverFormat = undefined; if (_global.textNode == undefined) { _global.textNode = new Object; _global.textNode.nCount = 0; } function SetTextFormat(newTextFormat) { g_textFormat = newTextFormat; } function SetHoverFormat(newHoverFormat) { g_hoverFormat = newHoverFormat; } function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { // this code is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNode.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); this.userIcon_mc.tabEnabled = false; this.userTextField_mc.tabEnabled = false; this.userHighlight_mc.tabEnabled = false; // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this;   CPicPage   CPicLayer   CPicFrameАА   ?  с ╫/#initclip icon_mc._visible = false; textfield_mc._visible = false; highlight_mc._visible = false; var g_textFormat = undefined; var g_hoverFormat = undefined; if (_global.textNode == undefined) { _global.textNode = new Object; _global.textNode.nCount = 0; } function SetTextFormat(newTextFormat) { g_textFormat = newTextFormat; } function SetHoverFormat(newHoverFormat) { g_hoverFormat = newHoverFormat; } function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { // this code is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNode.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); this.userIcon_mc.tabEnabled = false; this.userTextField_mc.tabEnabled = false; this.userHighlight_mc.tabEnabled = false; // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // Save initial height this.iconHeight = this.userIcon_mc._height; this.textFieldHeight = this.userTextField_mc._height; // increment the object count _global.textNode.nCount+=3 // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; // Capture the onRollover and onRollout events this.userTextField_mc.onRollOver = this.Rollover; this.userIcon_mc.onRollOver = this.Rollover; this.userTextField_mc.onRollOut = this.Rollout; this.userIcon_mc.onRollOut = this.Rollout; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.autoSize = true; this.userTextField_mc.label_mc.label_txt.text = newText_str; textFormatObj = this.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items] } } this.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; this.userTextField_mc.label_mc.label_txt.autoSize = false; }; /////////////////////////////////////////////////////////////////////////////////// // Control the hover font /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.RollOver = function() { var textFormatObj = this.Owner.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_hoverFormat[items]; } } this.Owner.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; GenericTextNodeClass.prototype.RollOut = function() { var textFormatObj = this.Owner.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items]; } } this.Owner.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetState = function(bState) { this.bItemIn = bState; }; GenericTextNodeClass.prototype.TransitionIn = function() { if (this.bItemIn) { this.InNoTransition(); } else { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); } }; ///////////////////////////////////////_visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.autoSize = true; this.userTextField_mc.label_mc.label_txt.text = newText_str; textFormatObj = this.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items] } } this.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; this.userTextField_mc.label_mc.label_txt.autoSize = false; }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetState = function(bState) { this.bItemIn = bState; }; GenericTextNodeClass.prototype.TransitionIn = function() { if (this.bItemIn) { this.InNoTransition(); } else { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); } }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; if (this.bSelected) { this.userTextField_mc.gotoAndPlay("selected"); } else { this.userTextField_mc.gotoAndStop("visible"); } this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHeight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.userIcon_mc._height) >(this.userTextField_mc._y+this.userTextField_mc._height)) { nHeight = (this.userIcon_mc._y+this.userIcon_mc._height) - YPos; } else { nHeight = (this.userTextField_mc._y+this.userTextField_mc._height) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.userTextField_mc._height; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.removeMovieClip(); delete this.userIcon_mc; this.userTextField_mc.removeMovieClip(); delete this.userTextField_mc; this.userHighlight_mc.removeMovieClip(); delete this.userHighlight_mc; } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; #endinitclipАА TextNode Definition    OА  АА     А f¤ `    z    АЩf к ╠       А   *   ]     к  ╘      Ц0л-//////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc. // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////de.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); this.userIcon_mc.tabEnabled = false; this.userTextField_mc.tabEnabled = false; this.userHighlight_mc.tabEnabled = false; // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; // Capture the onRollover and onRollout events this.userTextField_mc.onRollOver = this.Rollover; this.userIcon_mc.onRollOver = this.Rollover; this.userTextField_mc.onRollOut = this.Rollout; this.userIcon_mc.onRollOut = this.Rollout; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.autoSize = true; this.userTextField_mc.label_mc.label_txt.text = newText_str; textFormatObj = this.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items] } } this.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; this.userTextField_mc.label_mc.label_txt.autoSize = false; }; /////////////////////////////////////////////////////////////////////////////////// // Control the hover font /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.RollOver = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) ////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; // Capture the onRollover and onRollout events this.userTextField_mc.onRollOver = this.Rollover; this.userIcon_mc.onRollOver = this.Rollover; this.userTextField_mc.onRollOut = this.Rollout; this.userIcon_mc.onRollOut = thisonEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; if (this.bSelected) { this.userTextField_mc.gotoAndPlay("selected"); } else { this.userTextField_mc.gotoAndStop("visible"); } this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHeight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.userIcon_mc._height) >(this.userTextField_mc._y+this.userTextField_mc._height)) { nHeight = (this.userIcon_mc._y+this.userIcon_mc._height) - YPos; } else { nHeight = (this.userTextField_mc._y+this.userTextField_mc._height) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.userTextField_mc._height; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.removeMovieClip(); delete this.userIcon_mc; this.userTextField_mc.removeMovieClip(); delete this.userTextField_mc; this.userHighlight_mc.removeMovieClip(); delete this.userHighlight_mc; } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; if (this == _root) { var textObj = CreateNewObj(undefined,undefined); var bSelected = false; textObj.pfnClicked = function () { if (!bSelected) { textObj.Select(); bSelected = true; } else { textObj.Unselect(); bSelected = false; } } textObj.MoveTo(0,0); textObj.SetText("TextNode"); textObj.MakeVisible(); textObj.TransitionIn(); } #endinitclipАА TextNode Definition    OА  АА { textFormatObj[items] = g_hoverFormat[items]; } } theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; GenericTextNodeClass.prototype.RollOut = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items]; } } theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetState = function(bState) { this.bItemIn = bState; }; GenericTextNodeClass.prototype.TransitionIn = function() { if (this.bItemIn) { this.InNoTransition(); } else { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); } }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; if (this.bSelected) { this.userTextField_mc.gotoAndPlay("selected"); } else { this.userTextField_mc.gotoAndStop("visible"); } this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHeight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.userIcon_mc._height) >(this.userTextField_mc._y+this.userTextField_mc._height)) { nHeight = (this.userIcon_mc._y+this.userIcon_mc._height) - YPos; } else { nHeight = (this.userTextField_mc._y+this.userTextField_mc._height) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.userTextField_mc._height; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.removeMovieClip(); delete this.userIcon_mc; this.userTextField_mc.removeMovieClip(); delete this.userTextField_mc; this.userHighlight_mc.removeMovieClip(); delete this.userHighlight_mc; } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; if (this == _root) { var textObj = CreateNewObj(undefined,undefined); var bSelected = false; textObj.pfnClicked = function () { if (!bSelected) { textObj.Select(); bSelected = true; } else { textObj.Unselect(); bSelected = false; } } textObj.MoveTo(0,0); textObj.SetText("TextNode"); textObj.MakeVisible(); textObj.TransitionIn(); } #endinitclipАА TextNode Definition    OА  АА ╗яи А╠Щ  ┤я└ А╠╠  ая╪ А╠   xя╪ А   ╚яx А 3  ╚яР Symbol 16            О*Symbol 17    м4+Symbol 18            ┐╨0Symbol 19    dл1■   г¤        9 !"#$%&'■   )*+,д./012345678T:;<=>?@AB■   DE_GHIJKLMNOPQRSZUVWXY■   [\]^m`|bcdefghijklonЧpqrstuvwxyz{■   }~А.Rollout; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.autoSize = true; this.userTextField_mc.label_mc.label_txt.text = newText_str; textFormatObj = this.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items] } } this.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; this.userTextField_mc.label_mc.label_txt.autoSize = false; }; /////////////////////////////////////////////////////////////////////////////////// // Control the hover font /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.RollOver = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_hoverFormat[items]; } } theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; GenericTextNodeClass.prototype.RollOut = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items]; } } theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetState = function(bState) { this.bItemIn = bState; }; GenericTextNodeClass.prototype.TransitionIn = function() { if (this.bItemIn) { this.InNoTransition(); } else { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); } }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; if (this.bSelected) { this.userTextField_mc.gotoAndPlay("selected"); } else { this.userTextField_mc.gotoAndStop("visible"); } this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; ///////////////////////////////////  CPicPage   CPicLayer   CPicFrameАА   ?  u  ▓0#initclip icon_mc._visible = false; textfield_mc._visible = false; highlight_mc._visible = false; var g_textFormat = undefined; var g_hoverFormat = undefined; if (_global.textNode == undefined) { _global.textNode = new Object; _global.textNode.nCount = 0; } function SetTextFormat(newTextFormat) { g_textFormat = newTextFormat; } function SetHoverFormat(newHoverFormat) { g_hoverFormat = newHoverFormat; } function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { // this code is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNode.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); this.userIcon_mc.tabEnabled = false; this.userTextField_mc.tabEnabled = false; this.userHighlight_mc.tabEnabled = false; // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; // Capture the onRollover and onRollout events this.userTextField_mc.onRollOver = this.Rollover; this.userIcon_mc.onRollOver = this.Rollover; this.userTextField_mc.onRollOut = this.Rollout; this.userIcon_mc.onRollOut = this.Rollout; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.autoSize = true; this.userTextField_mc.label_mc.label_txt.text = newText_str; textFormatObj = this.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items] } } this.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; this.userTextField_mc.label_mc.label_txt.autoSize = false; }; /////////////////////////////////////////////////////////////////////////////////// // Control the hover font /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.RollOver = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_hoverFormat[items]; } } theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; GenericTextNodeClass.prototype.RollOut = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items]; } } theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetState = function(bState) { this.bItemIn = bState; }; GenericTextNodeClass.prototype.TransitionIn = function() { if (this.bItemIn) { this.InNoTransition(); } else { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); } }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; if (this.bSelected) { this.userTextField_mc.gotoAndPlay("selected"); } else { this.userTextField_mc.gotoAndStop("visible"); } this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visibl//////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHeight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.userIcon_mc._height) >(this.userTextField_mc._y+this.userTextField_mc._height)) { nHeight = (this.userIcon_mc._y+this.userIcon_mc._height) - YPos; } else { nHeight = (this.userTextField_mc._y+this.userTextField_mc._height) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.userTextField_mc._height; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.removeMovieClip(); delete this.userIcon_mc; this.userTextField_mc.removeMovieClip(); delete this.userTextField_mc; this.userHighlight_mc.removeMovieClip(); delete this.userHighlight_mc; } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; if (this == _root) { var textObj = CreateNewObj(undefined,undefined); var bSelected = false; textObj.pfnClicked = function () { if (!bSelected) { textObj.Select(); bSelected = true; } else { textObj.Unselect(); bSelected = false; } } textObj.MoveTo(0,0); textObj.SetText("TextNode"); textObj.MakeVisible(); textObj.TransitionIn(); } #endinitclipАА TextNode Definition    OА  ААlabel_mcАА    ?  СYАА    d    Лylabel_mcАА    ?  сАА d ┌slabel_mcАА   ?  АА| | d ╩&label_mcАА   ?  ░XАА Label Movie    OА  АААА   ?  Щ6ААА   ?   ААА    ?  ╣{stop();ААА    ?  rWstop();ААА   ?  Эstop();ААА   ?  Ipstop();АА Actions    O O АААА   ?  ,iААА   ?  inАJААА   ?  visible~ААА    ?  selected┼ААА    ?   unselectedЩhААА   ?  out╒< if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items] } } this.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; this.userTextField_mc.label_mc.label_txt.autoSize = false; }; /////////////////////////////////////////////////////////////////////////////////// // Control the hover font /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.RollOver = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_hoverFormat[items]; } } theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; GenericTextNodeClass.prototype.RollOut = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items]; } } theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetState = function(bState) { this.bItemIn = bState; }; GenericTextNodeClass.prototype.TransitionIn = function() { if (this.bItemIn) { this.InNoTransition(); } else { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); } }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; if (this.bSelected) { this.userTextField_mc.gotoAndPlay("selected"); } else { this.userTextField_mc.gotoAndStop("visible"); } this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHeight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcone = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHeight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.userIcon_mc._height) >(this.userTextField_mc._y+this.userTextField_mc._height)) { nHeight = (this.userIcon_mc._y+this.userIcon_mc._height) - YPos; } else { nHeight = (this.userTextField_mc._y+this.userTextField_mc._height) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.userTextField_mc._height; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.removeMovieClip(); delete this.userIcon_mc; this.userTextField_mc.removeMovieClip(); delete this.userTextField_mc; this.userHighlight_mc.removeMovieClip(); delete this.userHighlight_mc; } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; if (this == _root) { var textObj = CreateNewObj(undefined,undefined); var bSelected = false; textObj.pfnClicked = function () { if (!bSelected) { textObj.Select(); bSelected = true; } else { textObj.Unselect(); bSelected = false; } } textObj.MoveTo(0,0); textObj.SetText("TextNode"); textObj.MakeVisible(); textObj.TransitionIn(); } #endinitclipАА TextNode Definition    OА  АА; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; // Capture the onRollover and onRollout events this.userTextField_mc.onRollOver = this.Rollover; this.userIcon_mc.onRollOver = this.Rollover; this.userTextField_mc.onRollOut = this.Rollout; this.userIcon_mc.onRollOut = this.Rollout; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.autoSize = true; this.userTextField_mc.label_mc.label_txt.tex  CPicPage   CPicLayer   CPicFrameАА   ?  ╥g И3#initclip var g_textFormat = undefined; var g_hoverFormat = undefined; if (_global.textNode == undefined) { _global.textNode = new Object; _global.textNode.nCount = 0; } function SetTextFormat(newTextFormat) { g_textFormat = newTextFormat; } function SetHoverFormat(newHoverFormat) { g_hoverFormat = newHoverFormat; } function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { this._parent.highlight_mc._visible = false; this._parent.textfield_mc._visible = false; this._parent.icon_mc._visible = false; // this code is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNode.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); this.userIcon_mc.tabEnabled = false; this.userTextField_mc.tabEnabled = false; this.userHighlight_mc.tabEnabled = false; // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // Save initial height this.iconHeight = this.userIcon_mc._height; this.textFieldHeight = this.userTextField_mc._height; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; // Capture the onRollover and onRollout events this.userTextField_mc.onRollOver = this.Rollover; this.userIcon_mc.onRollOver = this.Rollover; this.userTextField_mc.onRollOut = this.Rollout; this.userIcon_mc.onRollOut = this.Rollout; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.autoSize = true; this.userTextField_mc.label_mc.label_txt.text = newText_str; textFormatObj = this.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items] } } // This is a hack for Lindows, Lindows will not display a // textfield unless the text field is bold if (textFormatObj.getTextExtent(newText_str).width == 0) textFormatObj.bold = true; this.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; this.userTextField_mc.label_mc.label_txt.autoSize = false; }; /////////////////////////////////////////////////////////////////////////////////// // Control the hover font /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.RollOver = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_hoverFormat[items]; } } // This is a hack for Lindows, Lindows will not display a // textfield unless the text field is bold if (textFormatObj.getTextExtent(newText_str).width == 0) textFormatObj.bold = true; theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; GenericTextNodeClass.prototype.RollOut = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items]; } } // This is a hack for Lindows, Lindows will not display a // textfield unless the text field is bold if (textFormatObj.getTextExtent(newText_str).width == 0) textFormatObj.bold = true; theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetState = function(bState) { this.bItemIn = bState; }; GenericTextNodeClass.prototype.TransitionIn = function() { if (this.bItemIn) { this.InNoTransition(); } else { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); } }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.protot_mc._y+this.userIcon_mc._height) >(this.userTextField_mc._y+this.userTextField_mc._height)) { nHeight = (this.userIcon_mc._y+this.userIcon_mc._height) - YPos; } else { nHeight = (this.userTextField_mc._y+this.userTextField_mc._height) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.userTextField_mc._height; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.removeMovieClip(); delete this.userIcon_mc; this.userTextField_mc.removeMovieClip(); delete this.userTextField_mc; this.userHighlight_mc.removeMovieClip(); delete this.userHighlight_mc; } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; if (this == _root) { var textObj = CreateNewObj(undefined,undefined); var bSelected = false; textObj.pfnClicked = function () { if (!bSelected) { textObj.Select(); bSelected = true; } else { textObj.Unselect(); bSelected = false; } } textObj.MoveTo(0,0); textObj.SetText("TextNode"); textObj.MakeVisible(); textObj.TransitionIn(); } #endinitclipАА TextNode Definition    OА  ААype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; if (this.bSelected) { this.userTextField_mc.gotoAndPlay("selected"); } else { this.userTextField_mc.gotoAndStop("visible"); } this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.usert = newText_str; textFormatObj = this.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items] } } // This is a hack for Lindows, Lindows will not display a // textfield unless the text field is bold if (textFormatObj.getTextExtent(newText_str).width == 0) textFormatObj.bold = true; this.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; this.userTextField_mc.label_mc.label_txt.autoSize = false; }; /////////////////////////////////////////////////////////////////////////////////// // Control the hover font /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeCla  CPicPage   CPicLayer   CPicFrameАА   ?  ╓k ▓0#initclip icon_mc._visible = false; textfield_mc._visible = false; highlight_mc._visible = false; var g_textFormat = undefined; var g_hoverFormat = undefined; if (_global.textNode == undefined) { _global.textNode = new Object; _global.textNode.nCount = 0; } function SetTextFormat(newTextFormat) { g_textFormat = newTextFormat; } function SetHoverFormat(newHoverFormat) { g_hoverFormat = newHoverFormat; } function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { // this code is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNode.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); this.userIcon_mc.tabEnabled = false; this.userTextField_mc.tabEnabled = false; this.userHighlight_mc.tabEnabled = false; // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; // Capture the onRollover and onRollout events this.userTextField_mc.onRollOver = this.Rollover; this.userIcon_mc.onRollOver = this.Rollover; this.userTextField_mc.onRollOut = this.Rollout; this.userIcon_mc.onRollOut = this.Rollout; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.autoSize = true; this.userTextField_mc.label_mc.label_txt.text = newText_str; textFormatObj = this.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items] } } this.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; this.userTextField_mc.label_mc.label_txt.autoSize = false; }; /////////////////////////////////////////////////////////////////////////////////// // Control the hover font /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.RollOver = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_hoverFormat[items]; } } theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; GenericTextNodeClass.prototype.RollOut = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items]; } } theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetState = function(bState) { this.bItemIn = bState; }; GenericTextNodeClass.prototype.TransitionIn = function() { if (this.bItemIn) { this.InNoTransition(); } else { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); } }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.usTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHeight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.iconHeight) >(this.userTextField_mc._y+this.textFieldHeight)) { nHeight = (this.userIcon_mc._y+this.iconHeight) - YPos; } else { nHeight = (this.userTextField_mc._y+this.textFieldHeight) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.textFerHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; if (this.bSelected) { this.userTextField_mc.gotoAndPlay("selected"); } else { this.userTextField_mc.gotoAndStop("visible"); } this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHeight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.userIcon_mc._height) >(this.userTextField_mc._y+this.userTextField_mc._height)) { nHeight = (this.userIcon_mc._y+this.userIcon_mc._height) - YPos; } else { nHeight = (this.userTextField_mc._y+this.userTextField_mc._height) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.userTextField_mc._height; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.removeMovieClip(); delete this.userIcon_mc; this.userTextField_mc.removeMovieClip(); delete this.userTextField_mc; this.userHighlight_mc.removeMovieClip(); delete this.userHighlight_mc; } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; if (this == _root) { var textObj = CreateNewObj(undefined,undefined); var bSelected = false; textObj.pfnClicked = function () { if (!bSelected) { textObj.Select(); bSelected = true; } else { textObj.Unselect(); bSelected = false; } } textObj.MoveTo(0,0); textObj.SetText("TextNode"); textObj.MakeVisible(); textObj.TransitionIn(); } #endinitclipАА TextNode Definition    OА  ААss.prototype.RollOver = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_hoverFormat[items]; } } // This is a hack for Lindows, Lindows will not display a // textfield unless the text field is bold if (textFormatObj.getTextExtent(newText_str).width == 0) textFormatObj.bold = true; theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; GenericTextNodeClass.prototype.RollOut = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items]; } } // This is a hack for Lindows, Lindows will not display a // textfield unless the text field is bold if (textFormatObj.getTextExtent(newText_str).width == 0) textFormatObj.bold = true; theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetState = function(bState) { this.bItemIn = bState; }; GenericTextNodeClass.prototype.TransitionIn = function() { if (this.bItemIn) { this.InNoTransition(); } else { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); } }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; if (this.bSelected) { this.userTextField_mc.gotoAndPlay("selected"); } else { this.userTextField_mc.gotoAndStop("visible"); } this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHeight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.iconHeight) >(this.userTextField_mc._y+this.textFieldHeight)) { nHeight = (this.userIcon_mc._y+this.iconHeight) - YPos; } else { nHeight = (this.userTextField_mc._y+this.textFieldHeight) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.textFieldHeight; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.removeMovieClip(); delete this.userIcon_mc; this.userTextField_mc.removeMovieClip(); delete this.userTextField_mc; this.userHighlight_mc.removeMovieClip(); delete this.userHighlight_mc; } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; if (this == _root) { var textObj = CreateNewObj(undefined,undefined); var bSelected = false; textObj.pfnClicked = function () { if (!bSelected) { textObj.Select(); bSelected = true; } else { textObj.Unselect(); bSelected = false; } } textObj.MoveTo(0,0); textObj.SetText("TextNode"); textObj.MakeVisible(); textObj.TransitionIn(); } #endinitclipАА TextNode Definition    OА  ААaultNames1%PublishFormatProperties::projectorWin0%PublishFormatProperties::rnwkFileNameskin_textNode.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яSymbol 10            L)Symbol 11     l)Symbol 12            8TSymbol 14    e)  CPicPage   CPicLayer   CPicFrameАА   ?  Л И3#initclip var g_textFormat = undefined; var g_hoverFormat = undefined; if (_global.textNode == undefined) { _global.textNode = new Object; _global.textNode.nCount = 0; } function SetTextFormat(newTextFormat) { g_textFormat = newTextFormat; } function SetHoverFormat(newHoverFormat) { g_hoverFormat = newHoverFormat; } function CreateNewObj(pfnClicked,dataClicked) { var Obj = new GenericTextNodeClass(true,pfnClicked,dataClicked); return Obj; } function GenericTextNodeClass(bCreate,pfnClicked,dataClicked) { this._parent.highlight_mc._visible = false; this._parent.textfield_mc._visible = false; this._parent.icon_mc._visible = false; // this code is to make sure that a new object is not created when we register the class if (!bCreate || bCreate == undefined) { return; } // Duplicate the movie clips this.userIcon_mc = icon_mc.duplicateMovieClip("icon"+_global.textNode.nCount,_global.textNode.nCount); this.userTextField_mc = textfield_mc.duplicateMovieClip("text"+_global.textNode.nCount,_global.textNode.nCount+1); this.userHighlight_mc = highlight_mc.duplicateMovieClip("highlight"+_global.textNode.nCount,_global.textNode.nCount+2); this.userIcon_mc.tabEnabled = false; this.userTextField_mc.tabEnabled = false; this.userHighlight_mc.tabEnabled = false; // Create a reference to this object in the icon and the textfield this.userIcon_mc.Owner = this; this.userTextField_mc.Owner = this; // set the data to be returned when the object is clicked to undefined this.pfnClicked = pfnClicked; this.dataClicked = dataClicked; // Can the item be clicked this.bItemIn = false; // Set selected to false this.bSelected = false; // Set visible to false this.bIsTextVisible = false; this.bIsIconVisible = false; // Save initial height this.iconHeight = this.userIcon_mc._height; this.textFieldHeight = this.userTextField_mc._height; // increment the object count _global.textNode.nCount+=3; // Initialize object this.Init(); } GenericTextNodeClass.prototype = new MovieClip(); /////////////////////////////////////////////////////////////////////////////////// // Initialize the object /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Init = function() { if (this.userHighlight_mc.getDepth() > this.userTextField_mc.getDepth()) { this.userHighlight_mc.swapDepths(this.userTextField_mc); } // Make the movie clips initially invisible this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; // Position the highlight over the textfield this.userHighlight_mc._x = this.userTextField_mc._x; this.userHighlight_mc._y = this.userTextField_mc._y; // Capture the onClick event this.userTextField_mc.onPress = this.Clicked; this.userIcon_mc.onPress = this.Clicked; // Capture the onRollover and onRollout events this.userTextField_mc.onRollOver = this.Rollover; this.userIcon_mc.onRollOver = this.Rollover; this.userTextField_mc.onRollOut = this.Rollout; this.userIcon_mc.onRollOut = this.Rollout; }; /////////////////////////////////////////////////////////////////////////////////// // Set the text of the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetText = function(newText_str) { this.userTextField_mc.label_mc.label_txt.autoSize = true; this.userTextField_mc.label_mc.label_txt.text = newText_str; textFormatObj = this.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items] } } // This is a hack for Lindows, Lindows will not display a // textfield unless the text field is bold if (textFormatObj.getTextExtent(newText_str).width == 0) textFormatObj.bold = true; this.userTextField_mc.label_mc.label_txt.seieldHeight; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.removeMovieClip(); delete this.userIcon_mc; this.userTextField_mc.removeMovieClip(); delete this.userTextField_mc; this.userHighlight_mc.removeMovieClip(); delete this.userHighlight_mc; } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; if (this == _root && nItemCount == undefined) { var textObj = CreateNewObj(undefined,undefined); var bSelected = false; textObj.pfnClicked = function () { if (!bSelected) { textObj.Select(); bSelected = true; } else { textObj.Unselect(); bSelected = false; } } textObj.MoveTo(0,0); textObj.SetText("TextNode"); textObj.MakeVisible(); textObj.Transiti  CPicPage   CPicLayer   CPicFrame   CPicShapeАА8   8     WА X)тFу║╫╣тууу║╫╣уGу)FGАА   ?  ж.АА Layer 1    OА  АА  CPicPage   CPicLayer   CPicFrameААtЧ¤ єh0Шт0 ■0h0р   ?  &АА Layer 1    OА  АААА|   CPicPage   CPicLayer   CPicFrame   CPicSymbol╨а ╨а  АА   ?  a<onIn(); } #endinitclip АА TextNode Definition    OА  АА   ?  Ostop();АА Actions     OO АА  CPicPage   CPicLayer   CPicFrame   CPicSprite d I, highlight_mcАА   АА╨╢ лк З╨╢\$  АА   ?  ilАА╨╚ └╨╚  АА   ?  П(ААА    ?  a:ААА   ?  ═"АА Box    Щ3╠ АААР Р d АА    ?  ╤}АА╪    ╪   d АА    ?  Э^ААР Рd АА   ?  ЬHАА Objects    OА  ААА╪    ╪    Ч  CPicPage   CPicLayer   CPicFrame  CPicTextАА ╠((╨=ГЁArial "(Label label_txtАА   ?  $ АА TextField    OА  АА; АА   ?  АА Objects     O  АААА   ?  raАА Layer 5      O АААА    ?  inrkААА   ?  visibleц2ААА    ?  out@ААА   ?  щАА Labels     OO ААЗstop();АА Labels    O O ААА  CPicPage   CPicLayer   CPicFrame   CPicSymbol     АА)    ?   unselectedы!ААА    ?  out АА Labels    O O ААА    ?  ЁqААА    ?  Дstop();ААА   ?  Ostop();АА Actions     OO АА  CPicPage   CPicLayer   CPicFrame   CPicSprite d Їi highlight_mcАА   ?  K>АА Highlight    Щ3╠ ААА№    №   d ╤9 textfield_mcАА   ?  2АА Textfield    O O ААААа Аа    e"fhgeneric_compLabel defaultValue·┐g LдIа┴БбЦъя АА   ?  AАА Icon    OА  АААА   ?  PuАА Component     OO АА)   CDocumentPagePage 1Scene 1╩з>    uъ2?    А Symbol 12Box жм╕>$ Symbol 12    жм╕>    АSymbol 1Icon_ЙФ>0..\RunTime_WildFire1\Source\testNav\textnode.flaskin objects/Icon╬─ж>_ЙФ>╣I░>    АSymbol 2Icon PlaceholderхЛФ>%з>0..\RunTime_WildFire1\Source\testNav\textnode.flaskin objects/Obj_icon/Symbol 16в╦Ф>в╦Ф>гLз>    АSymbol 4 textfieldнйФ>|0..\RunTime_WildFire1\Source\testNav\textnode.flaskin objects/textfield╗╜ж>нйФ>|lz?    АSymbol 5label┐-з>00..\RunTime_WildFire1\Source\testNav\textnode.fla skin objects/Obj_textfield/field╞Ф>ЗмФ>ЙE┌░>    АSymbol 6 highlightшЙФ> 0..\RunTime_WildFire1\Source\testNav\textnode.flaskin objects/highlightН╛ж>шЙФ> ъ?    АSymbol 7Highlight PlaceholderхЛФ>%h-з>/0..\RunTime_WildFire1\Source\testNav\textnode.fla#skin objects/Obj_highlight/Symbol 4jКФ>jКФ> ъ?    А Symbol 25Generic FH Textnode Component╘N╕>7FGenericFHTextNodeFlashHelp_Components.swf+C:\FlashComponents\FlashHelp_Components.flaGeneric FH Textnode ComponentG:,?╘N╕>7G:,?Label defaultValue·┐g LдIа┴БбЦъя     p╨╚Нhhhh    └└└  ┤z PublishRNWKProperties::speed256K0!PublishGifProperties::PaletteName"PublishHtmlProperties::StartPaused0%PublishFormatProperties::htmlFileNameskin_textNode.html PublishQTProperties::LayerOption PublishQTProperties::AlphaOption"PublishQTProperties::MatchMovieDim1PublishHtmlProperties::Loop1Vector::Debugging Permitted0PublishFormatProperties::jpeg0&PublishRNWKProperties::speedSingleISDN0&PublishRNWKProperties::singleRateAudio0PublishQTProperties::Width300$PublishPNGProperties::OptimizeColors1PublishHtmlProperties::Units0%PublishRNWKProperties::mediaCopyright(c) 2000#PublishRNWKProperties::flashBitRate1200PublishGifProperties::Smooth1Vector::Compress Movie1&PublishFormatProperties::flashFileNameskin_textNode.swf%PublishFormatProperties::projectorMac0!PublishRNWKProperties::exportSMIL1 PublishRNWKProperties::speed384K0"PublishRNWKProperties::exportAudio1"PublishGifProperties::DitherOptionPublishHtmlProperties::Quality4(PublishHtmlProperties::VerticalAlignment1$PublishFormatProperties::pngFileNameskin_textNode.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::generatorFileNameskin_textNode.swtPublishFormatProperties::gif0$PublishRNWKProperties::mediaKeywords!PublishRNWKProperties::mediaTitlePublishRNWKProperties::speed28K1PublishGifProperties::Loop1PublishGifProperties::Width300#PublishFormatProperties::qtFileNameskin_textNode.mov$PublishRNWKProperties::speedDualISDN0$PublishRNWKProperties::realVideoRate100000PublishJpegProperties::Quality80"PublishPNGProperties::DitherOption#PublishGifProperties::PaletteOption#PublishGifProperties::MatchMovieDim1PublishFormatProperties::flash1$PublishJpegProperties::MatchMovieDim1#PublishPNGProperties::PaletteOption#PublishPNGProperties::MatchMovieDim1PublishHtmlProperties::Align0-PublishFormatProperties::projectorWinFileNameskin_textNode.exe#PublishQTProperties::PlayEveryFrame0"PublishJpegProperties::Progressive0"PublishPNGProperties::DitherSolids0PublishHtmlProperties::Height100PublishHtmlProperties::Width300Vector::Debugging PasswordVector::Omit Trace Actions0%PublishFormatProperties::jpegFileNameskin_textNode.jpgPublishJpegProperties::Size0PublishPNGProperties::Interlace0PublishGifProperties::Height100'PublishHtmlProperties::TemplateFileNameeC:\Documents and Settings\edigre\Application Data\Macromedia\Flash MX\Configuration\Html\Default.html!PublishHtmlProperties::WindowMode0Vector::TopDown0-PublishFormatProperties::projectorMacFileNameskin_textNode.hqxPublishFormatProperties::rnwk0PublishFormatProperties::png0PublishRNWKProperties::speed56K1PublishQTProperties::Height100%PublishPNGProperties::RemoveGradients0PublishGifProperties::MaxColors255'PublishGifProperties::TransparentOptionPublishGifProperties::LoopCountVector::Report0"PublishFormatProperties::generator0"PublishRNWKProperties::audioFormat0$PublishGifProperties::OptimizeColors1Vector::Version6Vector::Event Format0Vector::Stream Compress7PublishFormatProperties::qt0 PublishRNWKProperties::speed512K0PublishJpegProperties::Height100PublishPNGProperties::Height100PublishPNGProperties::Width300%PublishGifProperties::RemoveGradients0PublishHtmlProperties::Scale0Vector::Event Compress7"PublishRNWKProperties::mediaAuthor(PublishRNWKProperties::speedCorporateLAN0&PublishRNWKProperties::showBitrateDlog1"PublishRNWKProperties::exportFlash1PublishQTProperties::Looping0*PublishQTProperties::UseQTSoundCompression0PublishJpegProperties::Width300!PublishPNGProperties::PaletteName!PublishPNGProperties::Transparent0&PublishGifProperties::TransparentAlpha128PublishGifProperties::Animated0Vector::Stream Format0$PublishFormatProperties::gifFileNameskin_textNode.gif"PublishQTProperties::PausedAtStart0%PublishQTProperties::ControllerOption0PublishPNGProperties::MaxColors255%PublishFormatProperties::rnwkFileNameskin_textNode.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 к ╠       А   *   ]     к  ╘      кh:АPlaceholder GraphicsхЛФtTextFormat(textFormatObj); this.userHighlight_mc.gotoAndStop("out"); this.userHighlight_mc._width = this.userTextField_mc.label_mc.label_txt._width; this.userHighlight_mc._height = this.userTextField_mc.label_mc.label_txt._height; this.userHighlight_mc._visible = false; this.userTextField_mc.label_mc.label_txt.autoSize = false; }; /////////////////////////////////////////////////////////////////////////////////// // Control the hover font /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.RollOver = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_hoverFormat[items]; } } // This is a hack for Lindows, Lindows will not display a // textfield unless the text field is bold if (textFormatObj.getTextExtent(newText_str).width == 0) textFormatObj.bold = true; theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; GenericTextNodeClass.prototype.RollOut = function(overContext) { if (overContext != undefined) { theNode = overContext.Owner; } else { theNode = this.Owner; } var textFormatObj = theNode.userTextField_mc.label_mc.label_txt.getTextFormat(); for (items in g_textFormat) { if (eval("g_textFormat."+items) != undefined) { textFormatObj[items] = g_textFormat[items]; } } // This is a hack for Lindows, Lindows will not display a // textfield unless the text field is bold if (textFormatObj.getTextExtent(newText_str).width == 0) textFormatObj.bold = true; theNode.userTextField_mc.label_mc.label_txt.setTextFormat(textFormatObj); }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node onto the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.SetState = function(bState) { this.bItemIn = bState; }; GenericTextNodeClass.prototype.TransitionIn = function() { if (this.bItemIn) { this.InNoTransition(); } else { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; this.userTextField_mc.gotoAndPlay("In"); this.userIcon_mc.gotoAndPlay("In"); } }; /////////////////////////////////////////////////////////////////////////////////// // Transition the text node off of the screen /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.TransitionOut = function() { this.bItemIn = false; if (this.bSelected) { this.userHighlight_mc.gotoAndPlay("out"); this.bSelected = false; } this.userTextField_mc.gotoAndPlay("out"); this.userIcon_mc.gotoAndPlay("out"); this.userTextField_mc.onEnterFrame = this.HideOnOut; this.userICon_mc.onEnterFrame = this.HideOnOut; }; GenericTextNodeClass.prototype.InNoTransition = function() { this.bItemIn = true; this.bIsTextVisible = true; this.bIsIconVisible = true; if (this.bSelected) { this.userTextField_mc.gotoAndPlay("selected"); } else { this.userTextField_mc.gotoAndStop("visible"); } this.userIcon_mc.gotoAndStop("visible"); }; /////////////////////////////////////////////////////////////////////////////////// // Checks the current frame and hides the text if it is the end of the transition out /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.HideOnOut = function() { if (this._currentframe == this._totalframes) { if (this == this.Owner.userTextField_mc) { this.Owner.bIsTextVisible = false; } else { this.Owner.bIsIconVisible = false; } this.onEnterFrame = null; this._visible = false; } }; /////////////////////////////////////////////////////////////////////////////////// // Highlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Select = function() { this.bSelected = true; this.userTextField_mc.gotoAndPlay("selected"); this.userIcon_mc.gotoAndPlay("selected"); this.userHighlight_mc._visible = true; this.userHighlight_mc.gotoAndPlay("in"); }; /////////////////////////////////////////////////////////////////////////////////// // unhighlight the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Unselect = function() { this.bSelected = false; this.userTextField_mc.gotoAndPlay("unselected"); this.userIcon_mc.gotoAndPlay("unselected"); this.userHighlight_mc.gotoAndPlay("out"); }; /////////////////////////////////////////////////////////////////////////////////// // handles the case when the text node is clicked. /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.Clicked = function() { if (this.Owner.bItemIn) { this.Owner.pfnClicked(this.Owner.dataClicked); } }; /////////////////////////////////////////////////////////////////////////////////// // Get the node width /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetWidth = function() { var XPos; var nWidth; if (this.userIcon_mc._x < this.userTextField_mc._x) { XPos = this.userIcon_mc._x; } else { XPos = this.userTextField_mc._x; } if ((this.userIcon_mc._x+this.userIcon_mc._width) >(this.userTextField_mc._x+this.userTextField_mc._width)) { nWidth = (this.userIcon_mc._x+this.userIcon_mc._width) - XPos; } else { nWidth = (this.userTextField_mc._x+this.userTextField_mc._width) - XPos; } if (this.userIcon_mc == undefined) { nWidth = this.userTextField_mc._width; } return nWidth; }; /////////////////////////////////////////////////////////////////////////////////// // Get the node height /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.GetHeight = function() { var YPos; var nHeight; if (this.userIcon_mc._y < this.userTextField_mc._y) { YPos = this.userIcon_mc._y; } else { YPos = this.userTextField_mc._y; } if ((this.userIcon_mc._y+this.iconHeight) >(this.userTextField_mc._y+this.textFieldHeight)) { nHeight = (this.userIcon_mc._y+this.iconHeight) - YPos; } else { nHeight = (this.userTextField_mc._y+this.textFieldHeight) - YPos; } if (this.userIcon_mc == undefined) { nHeight = this.textFieldHeight; } return nHeight; }; /////////////////////////////////////////////////////////////////////////////////// // Make invisible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeInvisible = function() { this.userIcon_mc._visible = false; this.userTextField_mc._visible = false; this.userHighlight_mc._visible = false; } /////////////////////////////////////////////////////////////////////////////////// // Make visible /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MakeVisible = function() { this.userIcon_mc._visible = true; this.userTextField_mc._visible = true; if (this.bSelected) { this.userHighlight_mc._visible = true; } } /////////////////////////////////////////////////////////////////////////////////// // Position the text node /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClass.prototype.MoveTo = function(x,y) { // Save Original values var iconX = this.userIcon_mc._x; var iconY = this.userIcon_mc._y; var textX = this.userTextField_mc._x; var textY = this.userTextField_mc._y; // Calculate offsets var offX = textX - iconX; var offY = textY - iconY; if (this.userIcon_mc == undefined) { offX = 0; offY = 0; } // Move Objects this.userIcon_mc._x = x; this.userTextField_mc._x = x + offX; this.userHighlight_mc._x = x + offX; this.userIcon_mc._y = y; this.userTextField_mc._y = y + offY; this.userHighlight_mc._y = y + offY; }; GenericTextNodeClass.prototype.DestroyNode = function() { // delete all the variables delete this.userIcon_mc.Owner; delete this.userTextField_mc.Owner; delete this.bSelected; delete this.bIsTextVisible; delete this.bIsIconVisible; // unload the movies this.userIcon_mc.removeMovieClip(); delete this.userIcon_mc; this.userTextField_mc.removeMovieClip(); delete this.userTextField_mc; this.userHighlight_mc.removeMovieClip(); delete this.use>%    "PublishQTProperties::QTSndSettings  CQTAudioSettings  ╚rHighlight_mc; } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; if (this == _root && nItemCount == undefined) { var textObj = CreateNewObj(undefined,undefined); var bSelected = false; textObj.pfnClicked = function () { if (!bSelected) { textObj.Select(); bSelected = true; } else { textObj.Unselect(); bSelected = false; } } textObj.MoveTo(0,0); textObj.SetText("TextNode"); textObj.MakeVisible(); textObj.TransitionIn(); } #endinitclip АА TextNode Definition    OА  АА  Дstop();ААА   ?  Ostop();АА Actions     OO АА  CPicPage   CPicLayer   CPicFrame   CPicSprite d O highlight_mcАА   ?  1АА Highlight    Щ3╠ ААА№    №   d ╫0 textfield_mcАА   ?  tzАА Textfield    O O ААААа Аа    ░3fhgeneric_compLabel defaultValue·┐g LдIа┴БбЦъя АА   ?  ┘АА Icon    OА  АААА   ?  pАА Component     OO АА)   CDocumentPagePage 1Scene 1╩з>    ,╚T?    А Symbol 12Box жм╕>$ Symbol 12    жм╕>    АSymbol 1Icon_ЙФ>0..\RunTime_WildFire1\Source\testNav\textnode.flaskin objects/Icon╬─ж>_ЙФ>╣I░>    АSymbol 2Icon PlaceholderхЛФ>%з>0..\RunTime_WildFire1\Source\testNav\textnode.flaskin objects/Obj_icon/Symbol 16в╦Ф>в╦Ф>гLз>    АSymbol 4 textfieldнйФ>|0..\RunTime_WildFire1\Source\testNav\textnode.flaskin objects/textfield╗╜ж>нйФ>|lz?    АSymbol 5label┐-з>00..\RunTime_WildFire1\Source\testNav\textnode.fla skin objects/Obj_textfield/field╞Ф>ЗмФ>ЙE┌░>    АSymbol 6 highlightшЙФ> 0..\RunTime_WildFire1\Source\testNav\textnode.flaskin objects/highlightН╛ж>шЙФ> ъ?    АSymbol 7Highlight PlaceholderхЛФ>%h-з>/0..\RunTime_WildFire1\Source\testNav\textnode.fla#skin objects/Obj_highlight/Symbol 4jКФ>jКФ> ъ?    А Symbol 25Generic FH Textnode Component╘N╕>7FGenericFHTextNodeflashhelp_components.swf+C:\FlashComponents\FlashHelp_Components.flaGeneric FH Textnode ComponentG:,?    ,╚T?Label defaultValue·┐g LдIа┴БбЦъя     p╨╚Нhhhh    └└└  ┤z%PublishFormatProperties::htmlFileNameskin_textNode.html"PublishHtmlProperties::StartPaused0!PublishGifProperties::PaletteName PublishRNWKProperties::speed256K0PublishFormatProperties::jpeg0Vector::Debugging Permitted0PublishHtmlProperties::Loop1"PublishQTProperties::MatchMovieDim1 PublishQTProperties::AlphaOption PublishQTProperties::LayerOptionPublishHtmlProperties::Units0$PublishPNGProperties::OptimizeColors1PublishQTProperties::Width300&PublishRNWKProperties::singleRateAudio0&PublishRNWKProperties::speedSingleISDN0%PublishFormatProperties::projectorMac0&PublishFormatProperties::flashFileNameskin_textNode.swfVector::Compress Movie1PublishGifProperties::Smooth1#PublishRNWKProperties::flashBitRate1200%PublishRNWKProperties::mediaCopyright(c) 2000PublishFormatProperties::html0$PublishFormatProperties::pngFileNameskin_textNode.png(PublishHtmlProperties::VerticalAlignment1PublishHtmlProperties::Quality4"PublishGifProperties::DitherOption"PublishRNWKProperties::exportAudio1 PublishRNWKProperties::speed384K0!PublishRNWKProperties::exportSMIL1Vector::Override Sounds0!PublishHtmlProperties::DeviceFont0"PublishPNGProperties::FilterOption'PublishRNWKProperties::mediaDescriptionPublishFormatProperties::gif0*PublishFormatProperties::generatorFileNameskin_textNode.swtVector::Template0Vector::Protect0Vector::Quality80*PublishHtmlProperties::HorizontalAlignment1"PublishHtmlProperties::DisplayMenu1PublishGifProperties::Interlace0"PublishGifProperties::DitherSolids0PublishPNGProperties::Smooth1PublishPNGProperties::BitDepth24-bit with AlphaPublishJpegProperties::DPI4718592PublishQTProperties::Flatten1#PublishFormatProperties::qtFileNameskin_textNode.movPublishGifProperties::Width300PublishGifProperties::Loop1PublishRNWKProperties::speed28K1!PublishRNWKProperties::mediaTitle$PublishRNWKProperties::mediaKeywordsPublishFormatProperties::flash1#PublishGifProperties::MatchMovieDim1#PublishGifProperties::PaletteOption"PublishPNGProperties::DitherOptionPublishJpegProperties::Quality80$PublishRNWKProperties::realVideoRate100000$PublishRNWKProperties::speedDualISDN0-PublishFormatProperties::projectorWinFileNameskin_textNode.exePublishHtmlProperties::Align0#PublishPNGProperties::MatchMovieDim1#PublishPNGProperties::PaletteOption$PublishJpegProperties::MatchMovieDim1%PublishFormatProperties::jpegFileNameskin_textNode.jpgVector::Omit Trace Actions0Vector::Debugging PasswordPublishHtmlProperties::Width300PublishHtmlProperties::Height100"PublishPNGProperties::DitherSolids0"PublishJpegProperties::Progressive0#PublishQTProperties::PlayEveryFrame0PublishFormatProperties::png0PublishFormatProperties::rnwk0-PublishFormatProperties::projectorMacFileNameskin_textNode.hqxVector::TopDown0!PublishHtmlProperties::WindowMode0'PublishHtmlProperties::TemplateFileNameeC:\Documents and Settings\edigre\Application Data\Macromedia\Flash MX\Configuration\Html\Default.htmlPublishGifProperties::Height100PublishPNGProperties::Interlace0PublishJpegProperties::Size0"PublishFormatProperties::generator0Vector::Report0PublishGifProperties::LoopCount'PublishGifProperties::TransparentOptionPublishGifProperties::MaxColors255%PublishPNGProperties::RemoveGradients0PublishQTProperties::Height100PublishRNWKProperties::speed56K1PublishFormatProperties::qt0Vector::Stream Compress7Vector::Event Format0Vector::Version6$PublishGifProperties::OptimizeColors1"PublishRNWKProperties::audioFormat0Vector::Event Compress7PublishHtmlProperties::Scale0%PublishGifProperties::RemoveGradients0PublishPNGProperties::Width300PublishPNGProperties::Height100PublishJpegProperties::Height100 PublishRNWKProperties::speed512K0$PublishFormatProperties::gifFileNameskin_textNode.gifVector::Stream Format0PublishGifProperties::Animated0&PublishGifProperties::TransparentAlpha128!PublishPNGProperties::Transparent0!PublishPNGProperties::PaletteNamePublishJpegProperties::Width300*PublishQTProperties::UseQTSoundCompression0PublishQTProperties::Looping0"PublishRNWKProperties::exportFlash1&PublishRNWKProperties::showBitrateDlog1(PublishRNWKProperties::speedCorporateLAN0"PublishRNWKProperties::mediaAuthorPropSheet::ActiveTab1599%PublishFormatProperties::defaultNames1%PublishFormatProperties::projectorWin0%PublishFormatProperties::rnwkFileNameskin_textNode.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  ╚