ࡱ>  7Root Entryp|YrRASH4~Q$ContentsPage 1d Symbol 8VB /@!"#$%&'()*+,-.B123456789:;<=>?SAqCDEFGHIJKLMNOPQRXTUVW`8abcdefghijklmnoprstwxyz{|}~Root Entryp|YrRASH@0G$ContentsPage 1d Symbol 8VBY /@!"#$%&'()*+,-.B123456789:;<=>?SAqCDEFGHIJKLMNOPQRXTUVW`8abcdefghijklmnoprstwxyz{|}~[    Symbol 7  uSymbol 1Q Symbol 2 nSymbol 3oSymbol 7  uSymbol 1Q Symbol 2 nSymbol 3oSymbol 21+Symbol 22 )Symbol 23*Symbol 242   !#$%&'()*+,-./01234A6789:<=>?@BCDEFGIJKLMNOPRSTUWXYZ[]^_`abcefghijklrnopqstuvwxyz{|}~   !#$%&'()*+,-./01234A6789:<=>?@BCDEFGIJKLMNOPRSTUWXYZ[]^_`abcefghijklrnopqstuvwxyz{|}~CPicPage CPicLayer CPicFrame?t*if (this.Fade) { _parent.bFade = true; } #initclip arrowHeight = 15; widthBuffer = 10; marginTop = 5; window_mc._visible = false; highlight_mc._visible = false; textfield_mc._visible = false; icon_mc._visible = false; inputbg_mc._visible = false; function TopicListDialog(xPos,yPos,yOffset) { this.userWindow_mc = window_mc.duplicateMovieClip("theWindow"+_global.textNode.nCount,_global.textNode.nCount); this.userWindow_mc.Owner = this; _global.textNode.nCount++; this.xPos = xPos; this.yPos = yPos; // Arrows this.upArrow_mc = undefined; this.downArrow_mc = undefined; // Are the arrows Enabled this.nArrows = 0; // The Arrow Interval for scrolling this.arrowInterval = undefined; // Set the maximum width and height this.maxWidth = Stage.width; this.maxHeight = Stage.height - yOffset; this.yOffset = yOffset; // stores an array of internal textnodes this.textNode_array = new Array; // stores the textnode height this.nodeHeight = 0; // store the maximum textnode width this.maxNodeWidth = 0; // store the number of displayable items this.displayItemCount = 0; // the currently displayed top index this.topIndex = 0; this.lastIndex = 0; // Current Alpha value this.curAlpha = 0; // Save the callback function once defined this.pfnCallback = undefined; // create mouse listener this.mouseListener = new Object; this.mouseListener.onMouseDown = this.ClickOut; this.mouseListener.Owner = this; Mouse.addListener(this.mouseListener); } TopicListDialog.prototype.ClickOut = function() { if (!this.Owner.userWindow_mc.hitTest(_xmouse,_ymouse,true)) { this.Owner.pfnCallBack(-1); } } TopicListDialog.prototype.DisplayTopicDialog = function(topicList_array,pfnCallBack) { this.userWindow_mc._visible = true; this.pfnCallBack = pfnCallBack; this.FillList(topicList_array,pfnCallBack); if (bFade) { this.curAlpha = 0; this.SetAlpha(this.curAlpha); this.curAlpha+=10; this.userWindow_mc.onEnterFrame = this.FadeIn; } } TopicListDialog.prototype.FadeIn = function() { var theList = this.Owner; if (theList.curAlpha>100) { this.onEnterFrame = undefined; } else { theList.SetAlpha(theList.curAlpha) theList.curAlpha+=10; } } TopicListDialog.prototype.FadeOut = function() { var theList = this.Owner; if (theList.curAlpha<0) { this.onEnterFrame = undefined; theList.Destroy(); } else { theList.SetAlpha(theList.curAlpha) theList.curAlpha-=10; } } TopicListDialog.prototype.SetAlpha = function(newAlpha) { this.userWindow_mc._alpha = newAlpha; var i = 0; var curYPos = this.userWindow_mc._y + (arrowHeight*this.nArrows); while (i < this.textNode_array.length && (curYPos + this.nodeHeight) <= (this.userWindow_mc._y + this.userWindow_mc._height - (arrowHeight*this.nArrows))) { this.textNode_array[i].userIcon_mc._alpha = newAlpha; this.textNode_array[i].userHighlight_mc._alpha = newAlpha; if (newAlpha == 0) { this.textNode_array[i].userTextField_mc.label_mc._visible=false; } else { this.textNode_array[i].userTextField_mc.label_mc._visible=true; } this.textNode_array[i].userTextField_mc._alpha = newAlpha; this.textNode_array[i].userTextField_mc.label_mc._alpha = newAlpha; this.textNode_array[i].userTextField_mc.label_mc.label_txt._alpha = newAlpha; curYPos += this.nodeHeight; i++; } } TopicListDialog.prototype.FillList = function(topicList_array,pfnCallBack) { var i = 0; for (i = 0; i < topicList_array.length; i++) { this.textNode_array[i] = CreateNewObj(pfnCallBack,i); this.textNode_array[i].SetText(topicList_array[i].displayName_str); var nodeWidth = this.textNode_array[i].GetWidth(); if (nodeWidth > this.maxNodeWidth) { this.maxNodeWidth = nodeWidth; } } this.nodeHeight = this.textNode_array[0].GetHeight(); this.SizeWindow(); this.PositionWindow(); this.UpdateDisplay(this.topIndex); } TopicListDialog.prototype.SizeWindow = function() { var totalHeight = this.nodeHeight * this.textNode_array.length +marginTop; this.userWindow_mc._width = this.maxNodeWidth+widthBuffer; if (totalHeight > this.maxHeight) { this.displayItemCount = Math.floor((this.maxHeight - (arrowHeight*2))/this.nodeHeight); totalHeight = (this.displayItemCount* this.nodeHeight)+ (arrowHeight*2) this.userWindow_mc._height = totalHeight; this.EnableArrows(); this.nArrows = 1; } else { this.displayItemCount = Math.floor(totalHeight/this.nodeHeight); this.userWindow_mc._height = totalHeight; } } TopicListDialog.prototype.PositionWindow = function() { // Set X Position var oldXPos = this.userWindow_mc._x; this.userWindow_mc._x = this.xPos; if (this.xPos+this.userWindow_mc._width > Stage.width) { this.userWindow_mc._x = Stage.width - this.userWindow_mc._width; } if (this.userWindow_mc._x < 0) { this.userWindow_mc._x = 0; } var deltaX = this.userWindow_mc._x - oldXPos; // Set Y Position var oldYPos = this.userWindow_mc._y; this.userWindow_mc._y = this.yPos; if (this.yPos+this.userWindow_mc._height>Stage.height) { this.userWindow_mc._y = Stage.height - this.userWindow_mc._height; } var deltaY = this.userWindow_mc._y - oldYPos; if (this.nArrows>0) { this.upArrow_mc._x +=deltaX; this.upArrow_mc._y +=deltaY; this.downArrow_mc._x +=deltaX; this.downArrow_mc._y +=deltaY; } } TopicListDialog.prototype.UpdateDisplay = function(nIndex) { var curYPos = this.userWindow_mc._y + (arrowHeight*this.nArrows); if (this.nArrows == 0) { curYPos +=marginTop; } var i = nIndex; if (this.lastIndex < nIndex) { this.textNode_array[this.lastIndex].MakeInvisible(); } else { this.textNode_array[this.lastIndex+(this.displayItemCount-1) ].MakeInvisible(); } while (i < this.textNode_array.length && (curYPos + this.nodeHeight) <= (this.userWindow_mc._y + this.userWindow_mc._height - (arrowHeight*this.nArrows))) { this.textNode_array[i].MoveTo(this.userWindow_mc._x + 5, curYPos); var nodeWidth = this.textNode_array[i].GetWidth(); if (nodeWidth > this.maxNodeWidth) { newWidth = nodeWidth - this.maxNodeWidth; this.textNode_array[i].userTextField_mc._width -= newWidth; } curYPos += this.nodeHeight; this.textNode_array[i].SetState(true); this.textNode_array[i].TransitionIn(); this.textNode_array[i].MakeVisible(); i++; } this.lastIndex = nIndex; } TopicListDialog.prototype.EnableArrows = function() { this.DrawArrows(); this.CenterArrows(); } TopicListDialog.prototype.DrawArrows = function() { // Create and draw up arrow this.upArrow_mc = createEmptyMovieClip("UpArrow",1000000); this.upArrow_mc.moveTo(3,8); this.upArrow_mc.lineStyle(2,0x555555,100); this.upArrow_mc.lineTo(8,3); this.upArrow_mc.lineTo(13,8); this.upArrow_mc.lineStyle(1,0x555555,0); this.upArrow_mc.moveTo(0,0); this.upArrow_mc.beginFill(0x000000,0); this.upArrow_mc.lineTo(0,10); this.upArrow_mc.lineTo(15,10); this.upArrow_mc.lineTo(15,0); this.upArrow_mc.lineTo(0,0); this.upArrow_mc.endFill(); this.upArrow_mc.onPress = this.UpArrowPressed; this.upArrow_mc.onRelease = this.UpArrowReleased; this.upArrow_mc.Owner = this; this.upArrow_mc._visible = false; // Create and draw down arrow this.downArrow_mc = createEmptyMovieClip("DownArrow",1000001); this.downArrow_mc.moveTo(3,3); this.downArrow_mc.lineStyle(2,0x555555,100); this.downArrow_mc.lineTo(8,8); this.downArrow_mc.lineTo(13,3); this.downArrow_mc.lineStyle(1,0x555555,0); this.downArrow_mc.moveTo(0,0); this.downArrow_mc.beginFill(0x000000,0); this.downArrow_mc.lineTo(0,10); this.downArCPicPage CPicLayer CPicFrameCPicText (( @_sans( label_txt?fL LCPicPage CPicLayer CPicFrame CPicSymbolh h ?c Layer 1Oayer 1OmeCPicTexCPicPage CPicLayer CPicFrame CPicSprite dnlabel_mc?CPicPage CPicLayer CPicFrame?W%#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 codrow_mc.lineTo(15,10); this.downArrow_mc.lineTo(15,0); this.downArrow_mc.lineTo(0,0); this.downArrow_mc.endFill(); this.downArrow_mc.moveTo(0,100); this.downArrow_mc.onPress = this.DownArrowPressed; this.downArrow_mc.onRelease = this.DownArrowReleased; this.downArrow_mc.Owner = this; } TopicListDialog.prototype.UpArrowPressed = function() { this.Owner.downArrow_mc._visible = true; this.Owner.topIndex--; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex > 0) { this.OwnerCPicPage CPicLayer CPicFrame?vX#initclip arrowHeight = 15; widthBuffer = 10; marginTop = 5; window_mc._visible = false; highlight_mc._visible = false; textfield_mc._visible = false; icon_mc._visible = false; inputbg_mc._visible = false; function TopicListDialog(xPos,yPos,yOffset) { this.userWindow_mc = window_mc; this.xPos = xPos; this.yPos = yPos; // Arrows this.upArrow_mc = undefined; this.downArrow_mc = undefined; // Are the arrows Enabled this.nArrows = 0; // Set the maximum width and height this.maxWidth = Stage.width; this.maxHeight = Stage.height - yOffset; this.yOffset = yOffset; // stores an array of internal textnodes this.textNode_array = new Array; // stores the textnode height this.nodeHeight = 0; // store the maximum textnode width this.maxNodeWidth = 0; // store the number of displayable items this.displayItemCount = 0; // the currently displayed top index this.topIndex = 0; this.lastIndex = 0; // Save the callback function once defined this.pfnCallback = undefined; // create mouse listener this.mouseListener = new Object; this.mouseListener.onMouseDown = this.ClickOut; this.mouseListener.Owner = this; Mouse.addListener(this.mouseListener); } TopicListDialog.prototype.ClickOut = function() { if (!this.Owner.userWindow_mc.hitTest(_xmouse,_ymouse,true)) { this.Owner.pfnCallBack(-1); } } TopicListDialog.prototype.DisplayTopicDialog = function(topicList_array,pfnCallBack) { this.userWindow_mc._visible = true; this.pfnCallBack = pfnCallBack; this.FillList(topicList_array,pfnCallBack); } TopicListDialog.prototype.FillList = function(topicList_array,pfnCallBack) { var i = 0; for (i = 0; i < topicList_array.length; i++) { this.textNode_array[i] = CreateNewObj(pfnCallBack,i); this.textNode_array[i].SetText(topicList_array[i].displayName_str); var nodeWidth = this.textNode_array[i].GetWidth(); if (nodeWidth > this.maxNodeWidth) { this.maxNodeWidth = nodeWidth; } } this.nodeHeight = this.textNode_array[0].GetHeight(); this.SizeWindow(); this.PositionWindow(); this.UpdateDisplay(this.topIndex); } TopicListDialog.prototype.SizeWindow = function() { var totalHeight = this.nodeHeight * this.textNode_array.length +marginTop; this.userWindow_mc._width = this.maxNodeWidth+widthBuffer; if (totalHeight > this.maxHeight) { this.displayItemCount = Math.floor((this.maxHeight - (arrowHeight*2))/this.nodeHeight); _parent.debug_trace(this.displayItemCount); totalHeight = (this.displayItemCount* this.nodeHeight)+ (arrowHeight*2) this.userWindow_mc._height = totalHeight; this.EnableArrows(); this.nArrows = 1; } else { this.displayItemCount = Math.floor(totalHeight/this.nodeHeight); this.userWindow_mc._height = totalHeight; } } TopicListDialog.prototype.PositionWindow = function() { // Set X Position var oldXPos = this.userWindow_mc._x; this.userWindow_mc._x = this.xPos; if (this.xPos+this.userWindow_mc._width > Stage.width) { this.userWindow_mc._x = Stage.width - this.userWindow_mc._width; } if (this.userWindow_mc._x < 0) { this.userWindow_mc._x = 0; } var deltaX = this.userWindow_mc._x - oldXPos; // Set Y Position var oldYPos = this.userWindow_mc._y; this.userWindow_mc._y = this.yPos; if (this.yPos+this.userWindow_mc._height>Stage.height) { this.userWindow_mc._y = Stage.height - this.userWindow_mc._height; } var deltaY = this.userWindow_mc._y - oldYPos; if (this.nArrows>0) { this.upArrow_mc._x +=deltaX; this.upArrow_mc._y +=deltaY; this.downArrow_mc._x +=deltaX; this.downArrow_mc._y +=deltaY; } } TopicListDialog.prototype.UpdateDisplay = function(nIndex) { var curYPos = this.userWindow_mc._y + (arrowHeight*this.nArrows); if (this.nArrows == 0) { curYPos +=marginTop; } var i = nIndex; if (this.lastIndex < nIndex) { this.textNode_array[this.lastIndex].MakeInvisible(); } else { this.textNode_array[this.lastIndex+(this.displayItemCount-1) ].MakeInvisible(); } while (i < this.textNode_array.length && (curYPos + this.nodeHeight) <= (this.userWindow_mc._y + this.userWindow_mc._height - (arrowHeight*this.nArrows))) { this.textNode_array[i].MoveTo(this.userWindow_mc._x + 5, curYPos); var nodeWidth = this.textNode_array[i].GetWidth(); if (nodeWidth > this.maxNodeWidth) { newWidth = nodeWidth - this.maxNodeWidth; this.textNode_array[i].userTextField_mc._width -= newWidth; } curYPos += this.nodeHeight; this.textNode_array[i].SetState(true); this.textNode_array[i].TransitionIn(); this.textNode_array[i].MakeVisible(); i++; } this.lastIndex = nIndex; } TopicListDialog.prototype.EnableArrows = function() { this.DrawArrows(); this.CenterArrows(); } TopicListDialog.prototype.DrawArrows = function() { // Create and draw up arrow this.upArrow_mc = createEmptyMovieClip("UpArrow",1000000); this.upArrow_mc.moveTo(3,8); this.upArrow_mc.lineStyle(2,0x555555,100); this.upArrow_mc.lineTo(8,3); this.upArrow_mc.lineTo(13,8); this.upArrow_mc.lineStyle(1,0x555555,0); this.upArrow_mc.moveTo(0,0); this.upArrow_mc.beginFill(0x000000,0); this.upArrow_mc.lineTo(0,10); this.upArrow_mc.lineTo(15,10); this.upArrow_mc.lineTo(15,0); this.upArrow_mc.lineTo(0,0); this.upArrow_mc.endFill(); this.upArrow_mc.onPress = this.UpArrowPressed; this.upArrow_mc.Owner = this; this.upArrow_mc._visible = false; // Create and draw down arrow this.downArrow_mc = createEmptyMovieClip("DownArrow",1000001); this.downArrow_mc.moveTo(3,3); this.downArrow_mc.lineStyle(2,0x555555,100); this.downArrow_mc.lineTo(8,8); this.downArrow_mc.lineTo(13,3); this.downArrow_mc.lineStyle(1,0x555555,0); this.downArrow_mc.moveTo(0,0); this.downArrow_mc.beginFill(0x000000,0); this.downArrow_mc.lineTo(0,10); this.downArrow_mc.lineTo(15,10); this.downArrow_mc.lineTo(15,0); this.downArrow_mc.lineTo(0,0); this.downArrow_mc.endFill(); this.downArrow_mc.moveTo(0,100); this.downArrow_mc.onPress = this.DownArrowPressed; this.downArrow_mc.Owner = this; } TopicListDialog.prototype.UpArrowPressed = function() { this.Owner.downArrow_mc._visible = true; this.Owner.topIndex--; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex == 0) { this._visible = false; } } TopicListDialog.prototype.DownArrowPressed = function() { this.Owner.upArrow_mc._visible = true; this.Owner.topIndex++; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex == this.Owner.textNode_array.length-this.Owner.displayItemCount) { this._visible=false; } } TopicListDialog.prototype.CenterArrows = function() { // Position Up Arrow this.upArrow_mc._y = this.userWindow_mc._y; this.upArrow_mc._x = this.userWindow_mc._x + (this.userWindow_mc._width - this.upArrow_mc._width)/2; // Position Down Arrow this.downArrow_mc._y = (this.userWindow_mc._y + this.userWindow_mc._height) - this.downArrow_mc._height-2; this.downArrow_mc._x = this.upArrow_mc._x; } TopicListDialog.prototype.Close = function() { var i = 0; for (i = 0; i < this.textNode_array.length; i++) { this.textNode_array[i].DestroyNode(); delete this.textNode_array[i]; } delete this.textNode_array; this.upArrow_mc.removeMovieClip(); this.downArrow_mc.removeMovieClip(); this.userWindow_mc._visible = false; Mouse.removeListener(this.mouseListener); } #endinitclip Layer 1Oe 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); // CCPicPage CPicLayer CPicFrame?7'#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.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..arrowInterval = setInterval(this.Owner.UpArrowDown,300,this.Owner); } else { this.Owner.upArrow_mc._visible = false; } } TopicListDialog.prototype.UpArrowDown = function(theList) { theList.topIndex--; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.UpArrowDown,75,theList); if (theList.topIndex == 0) { theList.upArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.UpArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.DownArrowPressed = function() { this.Owner.upArrow_mc._visible = true; this.Owner.topIndex++; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex < this.Owner.textNode_array.length-this.Owner.displayItemCount) { this.Owner.arrowInterval = setInterval(this.Owner.DownArrowDown,300,this.Owner); } else { this._visible=false; } } TopicListDialog.prototype.DownArrowDown = function(theListreate 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; } 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.unloadMovie(); this.userTextField_mc.unloadMovie(); this.userHighlight_mc.unloadMovie(); } // Register the clauserTextField_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.unloadMovie(); this.userTextField_mc.unloadMovie(); this.userHighlight_mc.unloadMovie(); } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; #endinitclip TextNode DefinitionOss Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; #endinitclip TextNode DefinitionO}iLabel defaultValueg LI /HvarName defaultValueK0F@brh 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 codSymbol 45-1Symbol 4694Symbol 37"2Symbol 38$'1Symbol 39S2Symbol 40&)~1?@ Layer 1O this.userTextField_mc.label_mc.label_txt._heighCPicPage CPicLayer CPicFrame CPicShape f:000U1=:?[ LaSymbol 11\Symbol 12 ;nSymbol 13&Symbol 14v)?L ?` Layer 1O?Wre 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.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 /////////////////////////////////////////////////////////////////////////////////// GenericTextNodeClas) { theList.topIndex++; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.DownArrowDown,75,theList); if (theList.topIndex == theList.textNode_array.length-theList.displayItemCount) { theList.downArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.DownArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.CenterArrows = function() { // Position Up Arrow this.upArrow_mc._y = this.userWindow_mc._y; this.upArrow_mc._x = this.userWindow_mc._x + (this.userWindow_mc._width - this.upArrow_mc._width)/2; // Position Down Arrow this.downArrow_mc._y = (this.userWindow_mc._y + this.userWindow_mc._height) - this.downArrow_mc._height-2; this.downArrow_mc._x = this.upArrow_mc._x; } TopicListDialog.prototype.Close = function() { if (bFade) { this.curAlpha = 90; this.userWindow_mc.onEnterFrame = this.FadeOut; } else { this.Destroy(); } } TopicListDialog.prototype.Destroy = function() { var i = 0; for (i = 0; i < this.textNode_array.length; i++) { this.textNode_array[i].DestroyNode(); delete this.textNode_array[i]; } delete this.textNode_array; this.upArrow_mc.removeMovieClip(); delete this.upArrow_mc; this.downArrow_mc.removeMovieClip(); delete this.downArrow_mc; this.userWindow_mc.removeMovieClip(); this.userWindow_mc.Owner = undefined; delete this.userWindow_mc; Mouse.removeListener(this.mouseListener); delete this.xPos; delete this.yPos; delete this.nArrows; delete this.arrowInterval; delete this.maxWidth; delete this.maxHeight; delete this.yOffset; delete this.nodeHeight; delete this.maxNodeWidth; delete this.displayItemCount; delete this.topIndex; delete this.lastIndex; delete this.curAlpha; _parent.bTopicDialogOpen = false; } #endinitclip Layer 1OCPicPage CPicLayer CPicFrame?d;*#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.debugCPicPage 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; // 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.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 DefinitionO_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 cli?Fstop();?stop(); ActionsOOCPicPage CPicLayer CPicFrame CPicShapeFjsX000XCPicPage CPicLayer CPicFrame?4 (#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.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 s.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 DefinitionOCPicPage CPicLayer CPicFrame?0]*if (this.Fade) { _parent.bFade = true; } #initclip arrowHeight = 15; widthBuffer = 10; marginTop = 5; window_mc._visible = false; highlight_mc._visible = false; textfield_mc._visible = false; icon_mc._visible = false; inputbg_mc._visible = false; function TopicListDialog(xPos,yPos,yOffset) { this.userWindow_mc = window_mc.duplicateMovieClip("theWindow"+_global.textNode.nCount,_global.textNode.nCount); this.userWindow_mc.Owner = this; _global.textNode.nCount++; this.xPos = xPos; this.yPos = yPos; // Arrows this.upArrow_mc = undefined; this.downArrow_mc = undefined; // Are the arrows Enabled this.nArrows = 0; // The Arrow Interval for scrolling this.arrowInterval = undefined; // Set the maximum width and height this.maxWidth = Stage.width; this.maxHeight = Stage.height - yOffset; this.yOffset = yOffset; // stores an array of internal textnodes this.textNode_array = new Array; // stores the textnode height this.nodeHeight = 0; // store the maximum textnode width this.maxNodeWidth = 0; // store the number of displayable items this.displayItemCount = 0; // the currently displayed top index this.topIndex = 0; this.lastIndex = 0; // Current Alpha value this.curAlpha = 0; // Save the callback function once defined this.pfnCallback = undefined; // create mouse listener this.mouseListener = new Object; this.mouseListener.onMouseDown = this.ClickOut; this.mouseListener.Owner = this; Mouse.addListener(this.mouseListener); } TopicListDialog.prototype.ClickOut = function() { if (!this.Owner.userWindow_mc.hitTest(_xmouse,_ymouse,true)) { this.Owner.pfnCallBack(-1); } } TopicListDialog.prototype.DisplayTopicDialog = function(topicList_array,pfnCallBack) { this.userWindow_mc._visible = true; this.pfnCallBack = pfnCallBack; this.FillList(topicList_array,pfnCallBack); if (bFade) { this.curAlpha = 0; this.SetAlpha(this.curAlpha); this.curAlpha+=10; this.userWindow_mc.onEnterFrame = this.FadeIn; } } TopicListDialog.prototype.FadeIn = function() { var theList = this.Owner; if (theList.curAlpha>100) { this.onEnterFrame = undefined; } else { theList.SetAlpha(theList.curAlpha) theList.curAlpha+=10; } } TopicListDialog.prototype.FadeOut = function() { var theList = this.Owner; if (theList.curAlpha<0) { this.onEnterFrame = undefined; theList.Destroy(); } else { theList.SetAlpha(theList.curAlpha) theList.curAlpha-=10; } } TopicListDialog.prototype.SetAlpha = function(newAlpha) { this.userWindow_mc._alpha = newAlpha; var i = 0; var curYPos = this.userWindow_mc._y + (arrowHeight*this.nArrows); while (i < this.textNode_array.length && (curYPos + this.nodeHeight) <= (this.userWindow_mc._y + this.userWindow_mc._height - (arrowHeight*this.nArrows))) { this.textNode_array[i].userIcon_mc._alpha = newAlpha; this.textNode_array[i].userHighlight_mc._alpha = newAlpha; if (newAlpha == 0) { this.textNode_array[i].userTextField_mc.label_mc._visible=false; } else { this.textNode_array[i].userTextField_mc.label_mc._visible=true; } this.textNode_array[i].userTextField_mc._alpha = newAlpha; this.textNode_array[i].userTextField_mc.label_mc._alpha = newAlpha; this.textNode_array[i].userTextField_mc.label_mc.label_txt._alpha = newAlpha; curYPos += this.nodeHeight; i++; } } TopicListDialog.prototype.FillList = function(topicList_array,pfnCallBack) { var i = 0; for (i = 0; i < topicList_array.length; i++) { this.textNode_array[i] = CreateNewObj(pfnCallBack,i); this.textNode_array[i].SetText(topicList_array[i].displayName_str); var nodeWidth = this.textNode_array[i].GetWidth(); if (nodeWidth > this.maxNodeWidth) { this.maxNodeWidth = nodeWidth; } } this.nodeHeight = this.textNode_array[0].GetHeight(); this.SizeWindow(); this.PositionWindow(); this.UpdateDisplay(this.topIndex); } TopicListDialog.prototype.SizeWindow = function() { var totalHeight = this.nodeHeight * this.textNode_array.length +marginTop; this.userWindow_mc._width = this.maxNodeWidth+widthBuffer; if (totalHeight > this.maxHeight) { this.displayItemCount = Math.floor((this.maxHeight - (arrowHeight*2))/this.nodeHeight); totalHeight = (this.displayItemCount* this.nodeHeight)+ (arrowHeight*2) this.userWindow_mc._height = totalHeight; this.EnableArrows(); this.nArrows = 1; } else { this.displayItemCount = Math.floor(totalHeight/this.nodeHeight); this.userWindow_mc._height = totalHeight; } } TopicListDialog.prototype.PositionWindow = function() { // Set X Position var oldXPos = this.userWindow_mc._x; this.userWindow_mc._x = this.xPos; if (this.xPos+this.userWindow_mc._width > Stage.width) { this.userWindow_mc._x = Stage.width - this.userWindow_mc._width; } if (this.userWindow_mc._x < 0) { this.userWindow_mc._x = 0; } var deltaX = this.userWindow_mc._x - oldXPos; // Set Y Position var oldYPos = this.userWindow_mc._y; this.userWindow_mc._y = this.yPos; if (this.yPos+this.userWindow_mc._height>Stage.height) { this.userWindow_mc._y = Stage.height - this.userWindow_mc._height; } var deltaY = this.userWindow_mc._y - oldYPos; if (this.nArrows>0) { this.upArrow_mc._x +=deltaX; this.upArrow_mc._y +=deltaY; this.downArrow_mc._x +=deltaX; this.downArrow_mc._y +=deltaY; } } TopicListDialog.prototype.UpdateDisplay = function(nIndex) { var curYPos = this.userWindow_mc._y + (arrowHeight*this.nArrows); if (this.nArrows == 0) { curYPos +=marginTop; } var i = nIndex; if (this.lastIndex < nIndex) { this.textNode_array[this.lastIndex].MakeInvisible(); } else { this.textNode_array[this.lastIndex+(this.displayItemCount-1) ].MakeInvisible(); } while (i < this.textNode_array.length && (curYPos + this.nodeHeight) <= (this.userWindow_mc._y + this.userWindow_mc._height - (arrowHeight*this.nArrows))) { this.textNode_array[i].MoveTo(this.userWindow_mc._x + 5, curYPos); var nodeWidth = this.textNode_array[i].GetWidth(); if (nodeWidth > this.maxNodeWidth) { newWidth = nodeWidth - this.maxNodeWidth; this.textNode_array[i].userTextField_mc._width -= newWidth; } curYPos += this.nodeHeight; this.textNode_array[i].SetState(true); this.textNode_array[i].TransitionIn(); this.textNode_array[i].MakeVisible(); i++; } this.lastIndex = nIndex; } TopicListDialog.prototype.EnableArrows = function() { this.DrawArrows(); this.CenterArrows(); } TopicListDialog.prototype.DrawArrows = function() { // Create and draw up arrow this.upArrow_mc = createEmptyMovieClip("UpArrow",1000000); this.upArrow_mc.moveTo(3,8); this.upArrow_mc.lineStyle(2,0x555555,100); this.upArrow_mc.lineTo(8,3); this.upArrow_mc.lineTo(13,8); this.upArrow_mc.lineStyle(1,0x555555,0); this.upArrow_mc.moveTo(0,0); this.upArrow_mc.beginFill(0x000000,0); this.upArrow_mc.lineTo(0,10); this.upArrow_mc.lineTo(15,10); this.upArrow_mc.lineTo(15,0); this.upArrow_mc.lineTo(0,0); this.upArrow_mc.endFill(); this.upArrow_mc.onPress = this.UpArrowPressed; this.upArrow_mc.onRelease = this.UpArrowReleased; this.upArrow_mc.Owner = this; this.upArrow_mc._visible = false; // Create and draw down arrow this.downArrow_mc = createEmptyMovieClip("DownArrow",1000001); this.downArrow_mc.moveTo(3,3); this.downArrow_mc.lineStyle(2,0x555555,100); this.downArrow_mc.lineTo(8,8); this.downArrow_mc.lineTo(13,3); this.downArrow_mc.lineStyle(1,0x555555,0); this.downArrow_mc.moveTo(0,0); this.downArrow_mc.beginFill(0x000000,0); this.downArrow_mc.lineTo(0,10); this.downArrow_mc.lineTo(15,10); this.downArrow_mc.lineTo(15,0); this.downArrow_mc.lineTo(0,0); this.downArrow_mc.endFill(); this.downArrow_mc.moveTo(0,100); this.downArrow_mc.onPress = this.DownArrowPressed; this.downArrow_mc.onRelease = this.DownArrowReleased; this.downArrow_mc.Owner = this; } TopicListDialog.prototype.UpArrowPressed = function() { this.Owner.downArrow_mc._visible = true; this.Owner.topIndex--; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex > 0) { this.Owner.arrowInterval = setInterval(this.Owner.UpArrowDown,300,this.Owner); } else { this.Owner.upArrow_mc._visible = false; } } TopicListDialog.prototype.UpArrowDown = function(theList) { theList.topIndex--; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.UpArrowDown,75,theList); if (theList.topIndex == 0) { theList.upArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.UpArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.DownArrowPressed = function() { this.Owner.upArrow_mc._visible = true; this.Owner.topIndex++; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex < this.Owner.textNode_array.length-this.Owner.displayItemCount) { this.Owner.arrowInterval = setInterval(this.Owner.DownArrowDown,300,this.Owner); } else { this._visible=false; } } TopicListDialog.prototype.DownArrowDown = function(theList) { theList.topIndex++; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.DownArrowDown,75,theList); if (theList.topIndex == theList.textNode_array.length-theList.displayItemCount) { theList.downArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.DownArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.CenterArrows = function() { // Position Up Arrow this.upArrow_mc._y = this.userWindow_mc._y; this.upArrow_mc._x = this.userWindow_mc._x + (this.userWindow_mc._width - this.upArrow_mc._width)/2; // Position Down Arrow this.downArrow_mc._y = (this.userWindow_mc._y + this.userWindow_mc._height) - this.downArrow_mc._height-2; this.downArrow_mc._x = this.upArrow_mc._x; } TopicListDialog.prototype.Close = function() { if (bFade) { this.curAlpha = 90; this.userWindow_mc.onEnterFrame = this.FadeOut; } else { this.Destroy(); } } TopicListDialog.prototype.Destroy = function() { var i = 0; for (i = 0; i < this.textNode_array.length; i++) { this.textNode_array[i].DestroyNode(); delete this.textNode_array[i]; } delete this.textNode_array; this.upArrow_mc.removeMovieClip(); delete this.upArrow_mc; this.downArrow_mc.removeMovieClip(); delete this.downArrow_mc; this.userWindow_mc.removeMovieClip(); this.userWindow_mc.Owner = undefined; delete this.userWindow_mc; Mouse.removeListener(this.mouseListener); delete this.xPos; delete this.yPos; delete this.nArrows; delete this.arrowInterval; delete this.maxWidth; delete this.maxHeight; delete this.yOffset; delete this.nodeHeight; delete this.maxNodeWidth; delete this.displayItemCount; delete this.topIndex; delete this.lastIndex; delete this.curAlpha; _parent.bTopicDialogOpen = false; } #endinitclip Layer 1OCPicPage CPicLayer CPicFrame?82if (this.Fade) { _parent.bFade = true; } #initclip arrowHeight = 15; widthBuffer = 10; marginTop = 5; window_mc._visible = false; highlight_mc._visible = false; textfield_mc._visible = false; icon_mc._visible = false; inputbg_mc._visible = false; function TopicListDialog(xPos,yPos,yOffset) { this.userWindow_mc = window_mc.duplicateMovieClip("theWindow"+_global.textNode.nCount,_global.textNode.nCount); this.userWindow_mc.Owner = this; _global.textNode.nCount++; this.xPos = xPos; this.yPos = yPos; // Arrows this.upArrow_mc = undefined; this.downArrow_mc = undefined; // Are the arrows Enabled this.nArrows = 0; // The Arrow Interval for scrolling this.arrowInterval = undefined; // Set the maximum width and height this.maxWidth = Stage.width; this.maxHeight = Stage.height - yOffset; this.yOffset = yOffset; // stores an array of internal textnodes this.textNode_array = new Array; // stores the textnode height this.nodeHeight = 0; // store the maximum textnode width this.maxNodeWidth = 0; // store the number of displayable items this.displayItemCount = 0; // the currently displayed top index this.topIndex = 0; this.lastIndex = 0; // Current Alpha value this.curAlpha = 0; // Save the callback function once defined this.pfnCallback = undefined; // Selected node this.nSelected = -1; // create mouse listener this.mouseListener = new Object; this.mouseListener.onMouseDown = this.ClickOut; this.mouseListener.Owner = this; Mouse.addListener(this.mouseListener); } TopicListDialog.prototype.KeyPressed = function(keyCode) { switch(keyCode) { case 13: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.pfnCallBack(0); this.nSelected = 0; } else { this.textNode_array[this.nSelected].Select(); this.pfnCallBack(this.nSelected); this.nSelected = this.nSelected; } _parent.debug_trace("Enter"); break; } case 38: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected>this.topIndex) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); } else if (this.topIndex>0) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); this.downArrow_mc._visible = true; this.topIndex--; this.UpdateDisplay(this.topIndex); } _parent.debug_trace("Up"); break; } case 40: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected"+ Stage.height); } var deltaY = this.userWindow_mc._y - oldYPos; if (this.nArrows>0) { this.upArrow_mc._x +=deltaX; this.upArrow_mc._y +=deltaY; this.downArrow_mc._x +=deltaX; this.downArrow_mc._y +=deltaY; } } TopicListDialog.prototype.UpdateDisplay = function(nIndex) { var curYPos = this.userWindow_mc._y + (arrowHeight*this.nArrows); if (this.nArrows == 0) { curYPos +=marginTop; } var i = nIndex; if (this.lastIndex < nIndex) { this.textNode_array[this.lastIndex].MakeInvisible(); } else { this.textNode_array[this.lastIndex+(this.displayItemCount-1) ].MakeInvisible(); } while (i < this.textNode_array.length && (curYPos + this.nodeHeight) <= (this.userWindow_mc._y + this.userWindow_mc._height - (arrowHeight*this.nArrows))) { this.textNode_array[i].MoveTo(this.userWindow_mc._x + 5, curYPos); var nodeWidth = this.textNode_array[i].GetWidth(); if (nodeWidth > this.maxNodeWidth) { newWidth = nodeWidth - this.maxNodeWidth; this.textNode_array[i].userTextField_mc._width -= newWidth; } curYPos += this.nodeHeight; this.textNode_array[i].SetState(true); this.textNode_array[i].TransitionIn(); this.textNode_array[i].MakeVisible(); i++; } this.lastItem = i - 1; this.lastIndex = nIndex; } TopicListDialog.prototype.EnableArrows = function() { this.DrawArrows(); this.CenterArrows(); } TopicListDialog.prototype.DrawArrows = function() { // Create and draw up arrow this.upArrow_mc = createEmptyMovieClip("UpArrow",1000000); this.upArrow_mc.moveTo(3,8); this.upArrow_mc.lineStyle(2,0x555555,100); this.upArrow_mc.lineTo(8,3); this.upArrow_mc.lineTo(13,8); this.upArrow_mc.lineStyle(1,0x555555,0); this.upArrow_mc.moveTo(0,0); this.upArrow_mc.beginFill(0x000000,0); this.upArrow_mc.lineTo(0,10); this.upArrow_mc.lineTo(15,10); this.upArrow_mc.lineTo(15,0); this.upArrow_mc.lineTo(0,0); this.upArrow_mc.endFill(); this.upArrow_mc.onPress = this.UpArrowPressed; this.upArrow_mc.onRelease = this.UpArrowReleased; this.upArrow_mc.Owner = this; this.upArrow_mc._visible = false; // Create and draw down arrow this.downArrow_mc = createEmptyMovieClip("DownArrow",1ps 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 tvisible /////////////////////////////////////////////////////////////////////////////////// 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 DefinitionOCPicPage CPicLayer CPicFrame?@*if (this.Fade) { _parent.bFade = true; } #initclip arrowHeight = 15; widthBuffer = 10; marginTop = 5; window_mc._visible = false; highlight_mc._visible = false; textfield_mc._visible = false; icon_mc._visible = false; inputbg_mc._visible = false; function TopicListDialog(xPos,yPos,yOffset) { this.userWindow_mc = window_mc.duplicateMovieClip("theWindow"+_global.textNode.nCount,_global.textNode.nCount); this.userWindow_mc.Owner = this; _global.textNode.nCount++; this.xPos = xPos; this.yPos = yPos; // Arrows this.upArrow_mc = undefined; this.downArrow_mc = undefined; // Are the arrows Enabled this.nArrows = 0; // The Arrow Interval for scrolling this.arrowInterval = undefined; // Set the maximum width and height this.maxWidth = Stage.width; this.maxHeight = Stage.height - yOffset; this.yOffset = yOffset; // stores an array of internal textnodes this.textNode_array = new Array; // stores the textnode height this.nodeHeight = 0; // store the maximum textnode width this.maxNodeWidth = 0; // store the number of displayable items this.displayItemCount = 0; // the currently displayed top index this.topIndex = 0; this.lastIndex = 0; // Current Alpha value this.curAlpha = 0; // Save the callback function once defined this.pfnCallback = undefined; // create mouse listener this.mouseListener = new Object; this.mouseListener.onMouseDown = this.ClickOut; this.mouseListener.Owner = this; Mouse.addListener(this.mouseListener); } TopicListDialog.prototype.ClickOut = function() { if (!this.Owner.userWindow_mc.hitTest(_xmouse,_ymouse,true)) { this.Owner.pfnCallBack(-1); } } TopicListDialog.prototype.DisplayTopicDialog = function(topicList_array,pfnCallBack) { this.userWindow_mc._visible = true; this.pfnCallBack = pfnCallBack; this.FillList(topicList_array,pfnCallBack); if (bFade) { this.curAlpha = 0; this.SetAlpha(this.curAlpha); this.curAlpha+=10; this.userWindow_mc.onEnterFrame = this.FadeIn; } } TopicListDialog.prototype.FadeIn = function() { var theList = this.Owner; if (theList.curAlpha>100) { this.onEnterFrame = undefined; } else { theList.SetAlpha(theList.curAlpha) theList.curAlpha+=10; } } TopicListDialog.prototype.FadeOut = function() { var theList = this.Owner; if (theList.curAlpha<0) { this.onEnterFrame = undefined; theList.Destroy(); } else { theList.SetAlpha(theList.curAlpha) theList.curAlpha-=10; } } TopicListDialog.prototype.SetAlpha = function(newAlpha) { this.userWindow_mc._alpha = newAlpha; var i = 0; var curYPos = this.userWindow_mc._y + (arrowHeight*this.nArrows); while (i < this.textNode_array.length && (curYPos + this.nodeHeight) <= (this.userWindow_mc._y + this.userWindow_mc._height - (arrowHeight*this.nArrows))) { this.textNode_array[i].userIcon_mc._alpha = newAlpha; this.textNode_array[i].userHighlight_mc._alpha = newAlpha; if (newAlpha == 0) { this.textNode_array[i].userTextField_mc.label_mc._visible=false; } else { this.textNode_array[i].userTextField_mc.label_mc._visible=true; } this.textNode_array[i].userTextField_mc._alpha = newAlpha; this.textNode_array[i].userTextField_mc.label_mc._alpha = newAlpha; this.textNode_array[i].userTextField_mc.label_mc.label_txt._alpha = newAlpha; curYPos += this.nodeHeight; i++; } } TopicListDialog.prototype.FillList = function(topicList_array,pfnCallBack) { var i = 0; for (i = 0; i < topicList_array.length; i++) { this.textNode_array[i] = CreateNewObj(pfnCallBack,i); this.textNode_array[i].SetText(topicList_array[i].displayName_str); var nodeWidth = this.textNode_array[i].GetWidth(); if (nodeWidth > this.maxNodeWidth) { this.maxNodeWidth = nodeWidth; } } this.nodeHeight = this.textNode_array[0].GetHeight(); this.SizeWindow(); this.PositionWindow(); this.UpdateDisplay(this.topIndex); } TopicListDialog.prototype.SizeWindow = function() { var totalHeight = this.nodeHeight * this.textNode_array.length +marginTop; this.userWindow_mc._width = this.maxNodeWidth+widthBuffer; if (totalHeight > this.maxHeight) { this.displayItemCount = Math.floor((this.maxHeight - (arrowHeight*2))/this.nodeHeight); totalHeight = (this.displayItemCount* this.nodeHeight)+ (arrowHeight*2) this.userWindow_mc._height = totalHeight; this.EnableArrows(); this.nArrows = 1; } else { this.displayItemCount = Math.floor(totalHeight/this.nodeHeight); this.userWindow_mc._height = totalHeight; } } TopicListDialog.prototype.PositionWindow = function() { // Set X Position var oldXPos = this.userWindow_mc._x; this.userWindow_mc._x = this.xPos; if (this.xPos+this.userWindow_mc._width > Stage.width) { this.userWindow_mc._x = Stage.width - this.userWindow_mc._width; } if (this.userWindow_mc._x < 0) { this.userWindow_mc._x = 0; } var deltaX = this.userWindow_mc._x - oldXPos; // Set Y Position var oldYPos = this.userWindow_mc._y; this.userWindow_mc._y = this.yPos; if (this.yPos+this.userWindow_mc._height>Stage.height) { this.userWindow_mc._y = Stage.height - this.userWindow_mc._height; } var deltaY = this.userWindow_mc._y - oldYPos; if (this.nArrows>0) { this.upArrow_mc._x +=deltaX; this.upArrow_mc._y +=deltaY; this.downArrow_mc._x +=deltaX; this.downArrow_mc._y +=deltaY; } } TopicListDialog.prototype.UpdateDisplay = function(nIndex) { var curYPos = this.userWindow_mc._y + (arrowHeight*this.nArrows); if (this.nArrows == 0) { curYPos +=marginTop; } var i = nIndex; if (this.lastIndex < nIndex) { this.textNode_array[this.lastIndex].MakeInvisible(); } else { this.textNode_array[this.lastIndex+(this.displayItemCount-1) ].MakeInvisible(); } while (i < this.textNode_array.length && (curYPos + this.nodeHeight) <= (this.userWindow_mc._y + this.userWindow_mc._height - (arrowHeight*this.nArrows))) { this.textNode_array[i].MoveTo(this.userWindow_mc._x + 5, curYPos); var nodeWidth = this.textNode_array[i].GetWidth(); if (nodeWidth > this.maxNodeWidth) { newWidth = nodeWidth - this.maxNodeWidth; this.textNode_array[i].userTextField_mc._width -= newWidth; } curYPos += this.nodeHeight; this.textNode_array[i].SetState(true); this.textNode_array[i].TransitionIn(); this.textNode_array[i].MakeVisible(); i++; } this.lastIndex = nIndex; } TopicListDialog.prototype.EnableArrows = function() { this.DrawArrows(); this.CenterArrows(); } TopicListDialog.prototype.DrawArrows = function() { // Create and draw up arrow this.upArrow_mc = createEmptyMovieClip("UpArrow",1000000); this.upArrow_mc.moveTo(3,8); this.upArrow_mc.lineStyle(2,0x555555,100); this.upArrow_mc.lineTo(8,3); this.upArrow_mc.lineTo(13,8); this.upArrow_mc.lineStyle(1,0x555555,0); this.upArrow_mc.moveTo(0,0); this.upArrow_mc.beginFill(0x000000,0); this.upArrow_mc.lineTo(0,10); this.upArrow_mc.lineTo(15,10); this.upArrow_mc.lineTo(15,0); this.upArrow_mc.lineTo(0,0); this.upArrow_mc.endFill(); this.upArrow_mc.onPress = this.UpArrowPressed; this.upArrow_mc.onRelease = this.UpArrowReleased; this.upArrow_mc.Owner = this; this.upArrow_mc._visible = false; // Create and draw down arrow this.downArrow_mc = createEmptyMovieClip("DownArrow",1000001); this.downArrow_mc.moveTo(3,3); this.downArrow_mc.lineStyle(2,0x555555,100); this.downArrow_mc.lineTo(8,8); this.downArrow_mc.lineTo(13,3); this.downArrow_mc.lineStyle(1,0x555555,0); this.downArrow_mc.moveTo(0,0); this.downArrow_mc.beginFill(0x000000,0); this.downArrow_mc.lineTo(0,10); this.downArrow_mc.lineTo(15,10); this.downArrow_mc.lineTo(15,0); this.downArrow_mc.lineTo(0,0); this.downArrow_mc.endFill(); this.downArrow_mc.moveTo(0,100); this.downArrow_mc.onPress = this.DownArrowPressed; this.downArrow_mc.onRelease = this.DownArrowReleased; this.downArrow_mc.Owner = this; } TopicListDialog.prototype.UpArrowPressed = function() { this.Owner.downArrow_mc._visible = true; this.Owner.topIndex--; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex > 0) { this.Owner.arrowInterval = setInterval(this.Owner.UpArrowDown,300,this.Owner); } else { this.Owner.upArrow_mc._visible = false; } } TopicListDialog.prototype.UpArrowDown = function(theList) { theList.topIndex--; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.UpArrowDown,75,theList); if (theList.topIndex == 0) { theList.upArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.UpArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.DownArrowPressed = function() { this.Owner.upArrow_mc._visible = true; this.Owner.topIndex++; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex < this.Owner.textNode_array.length-this.Owner.displayItemCount) { this.Owner.arrowInterval = setInterval(this.Owner.DownArrowDown,300,this.Owner); } else { this._visible=false; } } TopicListDialog.prototype.DownArrowDown = function(theList) { theList.topIndex++; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.DownArrowDown,75,theList); if (theList.topIndex == theList.textNode_array.length-theList.displayItemCount) { theList.downArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.DownArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.CenterArrows = function() { // Position Up Arrow this.upArrow_mc._y = this.userWindow_mc._y; this.upArrow_mc._x = this.userWindow_mc._x + (this.userWindow_mc._width - this.upArrow_mc._width)/2; // Position Down Arrow this.downArrow_mc._y = (this.userWindow_mc._y + this.userWindow_mc._height) - this.downArrow_mc._height-2; this.downArrow_mc._x = this.upArrow_mc._x; } TopicListDialog.prototype.Close = function() { if (bFade) { this.curAlpha = 90; this.userWindow_mc.onEnterFrame = this.FadeOut; } else { this.Destroy(); } } TopicListDialog.prototype.Destroy = function() { var i = 0; for (i = 0; i < this.textNode_array.length; i++) { this.textNode_array[i].DestroyNode(); delete this.textNode_array[i]; } delete this.textNode_array; this.upArrow_mc.removeMovieClip(); delete this.upArrow_mc; this.downArrow_mc.removeMovieClip(); delete this.downArrow_mc; this.userWindow_mc.removeMovieClip(); this.userWindow_mc.Owner = undefined; delete this.userWindow_mc; Mouse.removeListener(this.mouseListener); delete this.xPos; delete this.yPos; delete this.nArrows; delete this.arrowInterval; delete this.maxWidth; delete this.maxHeight; delete this.yOffset; delete this.nodeHeight; delete this.maxNodeWidth; delete this.displayItemCount; delete this.topIndex; delete this.lastIndex; delete this.curAlpha; _parent.bTopicDialogOpen = false; } #endinitclip Layer 1Ohe 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.Symbol 299*Symbol 30!2Symbol 31u4+Symbol 32 2Symbol 4BSymbol 5"DSymbol 6 0(Symbol 10 5PSymbol 330Symbol 34%1Symbol 35#cSymbol 36o ?]a Layer 1O?CPicPage CPicLayer CPicFrameZ00T0>?S Layer 2OOCPicPage CPicLayer CPicFrame?.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.gotoAndSSymbol 15 +Symbol 16+Symbol 17Z)Symbol 18H Symbol 41Z3Symbol 42(+Z3Symbol 431Symbol 44*,Z3].^\ xwCPicPage CPicLayer CPicFrame?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.textNotop("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; Symbol 451CPicPage CPicLayer CPicFrame?u70#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(newHovSymbol 25M2Symbol 26*Symbol 27m Symbol 282de.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?SLm2if (this.Fade) { _parent.bFade = true; } #initclip arrowHeight = 15; widthBuffer = 10; marginTop = 5; window_mc._visible = false; highlight_mc._visible = false; textfield_mc._visible = false; icon_mc._visible = false; inputbg_mc._visible = false; function TopicListDialog(xPos,yPos,yOffset) { this.userWindow_mc = window_mc.duplicateMovieClip("theWindow"+_global. } 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 /////////////////////////////////////////////////////////////////////////////////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.debuInit(); } 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.g_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.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 DefinitionOCPicPage CPicLayer CPicFrame?-B)#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); // 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(); 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 = th000001); this.downArrow_mc.moveTo(3,3); this.downArrow_mc.lineStyle(2,0x555555,100); this.downArrow_mc.lineTo(8,8); this.downArrow_mc.lineTo(13,3); this.downArrow_mc.lineStyle(1,0x555555,0); this.downArrow_mc.moveTo(0,0); this.downArrow_mc.beginFill(0x000000,0); this.downArrow_mc.lineTo(0,10); this.downArrow_mc.lineTo(15,10); this.downArrow_mc.lineTo(15,0); this.downArrow_mc.lineTo(0,0); this.downArrow_mc.endFill(); this.downArrow_mc.moveTo(0,100); this.downArrow_mc.onPress = this.DownArrowPressed; this.downArrow_mc.onRelease = this.DownArrowReleased; this.downArrow_mc.Owner = this; } TopicListDialog.prototype.UpArrowPressed = function() { this.Owner.downArrow_mc._visible = true; this.Owner.topIndex--; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex > 0) { this.Owner.arrowInterval = setInterval(this.Owner.UpArrowDown,300,this.Owner); } else { this.Owner.upArrow_mc._visible = false; } } TopicListDialog.prototype.UpArrowDown = function(theList) { theList.topIndex--; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.UpArrowDown,75,theList); if (theList.topIndex == 0) { theList.upArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.UpArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.DownArrowPressed = function() { this.Owner.upArrow_mc._visible = true; this.Owner.topIndex++; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex < this.Owner.textNode_array.length-this.Owner.displayItemCount) { this.Owner.arrowInterval = setInterval(this.Owner.DownArrowDown,300,this.Owner); } else { this._visible=false; } } TopicListDialog.prototype.DownArrowDown = function(theList) { theList.topIndex++; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.DownArrowDown,75,theList); if (theList.topIndex == theList.textNode_array.length-theList.displayItemCount) { theList.downArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.DownArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.CenterArrows = function() { // Position Up Arrow this.upArrow_mc._y = this.userWindow_mc._y; this.upArrow_mc._x = this.userWindow_mc._x + (this.userWindow_mc._width - this.upArrow_mc._width)/2; // Position Down Arrow this.downArrow_mc._y = (this.userWindow_mc._y + this.userWindow_mc._height) - this.downArrow_mc._height-2; this.downArrow_mc._x = this.upArrow_mc._x; } TopicListDialog.prototype.Close = function() { if (bFade) { this.curAlpha = 90; this.userWindow_mc.onEnterFrame = this.FadeOut; } else { this.Destroy(); } } TopicListDialog.prototype.Destroy = function() { var i = 0; for (i = 0; i < this.textNode_array.length; i++) { this.textNode_array[i].DestroyNode(); delete this.textNode_array[i]; } delete this.textNode_array; this.upArrow_mc.removeMovieClip(); delete this.upArrow_mc; this.downArrow_mc.removeMovieClip(); delete this.downArrow_mc; this.userWindow_mc.removeMovieClip(); this.userWindow_mc.Owner = undefined; delete this.userWindow_mc; Mouse.removeListener(this.mouseListener); delete this.xPos; delete this.yPos; delete this.nArrows; delete this.arrowInterval; delete this.maxWidth; delete this.maxHeight; delete this.yOffset; delete this.nodeHeight; delete this.maxNodeWidth; delete this.displayItemCount; delete this.topIndex; delete this.lastIndex; delete this.curAlpha; _parent.bTopicDialogOpen = false; } #endinitclip Layer 1O// 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.userIconyer 1Of`zf?in%r?6o?outN LabelsOOk window_mcCPicPage CPicLayer CPicFrame?rn)#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); // 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(); 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; }; /////////////////////////is.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 DefinitionOCPicPage CPicLayer CPicFrame?Ip2if (this.Fade) { _parent.bFade = true; } #initclip arrowHeight = 15; widthBuffer = 10; marginTop = 5; window_mc._visible = false; highlight_mc._visible = false; textfield_mc._visible = false; icon_mc._visible = false; inputbg_mc._visible = false; function TopicListDialog(xPos,yPos,yOffset) { this.userWindow_mc = window_mc.duplicateMovieClip("theWindow"+_global.textNode.nCount,_global.textNode.nCount); this.userWindow_mc.Owner = this; _global.textNode.nCount++; this.xPos = xPos; this.yPos = yPos; // Arrows this.upArrow_mc = undefined; this.downArrow_mc = undefined; // Are the arrows Enabled this.nArrows = 0; // The Arrow Interval for scrolling this.arrowInterval = undefined; // Set the maximum width and height this.maxWidth = Stage.width; this.maxHeight = Stage.height - yOffset; this.yOffset = yOffset; // stores an array of internal textnodes this.textNode_array = new Array; // stores the textnode height this.nodeHeight = 0; // store the maximum textnode width this.maxNodeWidth = 0; // store the number of displayable items this.displayItemCount = 0; // the currently displayed top index this.topIndex = 0; this.lastIndex = 0; // Current Alpha value this.curAlpha = 0; // Save the callback function once defined this.pfnCallback = undefined; // Selected node this.nSelected = -1; // create mouse listener this.mouseListener = new Object; this.mouseListener.onMouseDown = this.ClickOut; this.mouseListener.Owner = this; Mouse.addListener(this.mouseListener); } TopicListDialog.prototype.KeyPressed = function(keyCode) { switch(keyCode) { case 13: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.pfnCallBack(0); this.nSelected = 0; } else { this.textNode_array[this.nSelected].Select(); this.pfnCallBack(this.nSelected); this.nSelected = this.nSelected; } _parent.debug_trace("Enter"); break; } case 38: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected>this.topIndex) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); } else if (this.topIndex>0) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); this.downArrow_mc._visible = true; this.topIndex--; this.UpdateDisplay(this.topIndex); } _parent.debug_trace("Up"); break; } case 40: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected"+ Stage.height); } var deltaY = this.userWindow_mc._y - oldYPos; if (this.nArrows>0) { this.upArrow_mc._x +=deltaX; this.upArrow_mc._y +=deltaY; this.downArrow_mc._x +=deltaX; this.downArrow_mc._y +=deltaY; } } TopicListDialog.prototype.UpdateDisplay = function(nIndex) { var curYPos = this.userWindow_mc._y + (arrowHeight*this.nArrows); if (this.nArrows == 0) { curYPos +=marginTop; } var i = nIndex; if (this.lastIndex < nIndex) { this.textNode_array[this.lastIndex].MakeInvisible(); } else { this.textNode_array[this.lastIndex+(this.displayItemCount-1) ].MakeInvisible(); } while (i < this.textNode_array.length && (curYPos + this.nodeHeight) <= (this.userWindow_mc._y + this.userWindow_mc._height - (arrowHeight*this.nArrows))) { this.textNode_array[i].MoveTo(this.userWindow_mc._x + 5, curYPos); var nodeWidth = this.textNode_array[i].GetWidth(); if (nodeWidth > this.maxNodeWidth) { newWidth = nodeWidth - this.maxNodeWidth; this.textNode_array[i].userTextField_mc._width -= newWidth; } curYPos += this.nodeHeight; this.textNode_array[i].SetState(true); this.textNode_array[i].TransitionIn(); this.textNode_array[i].MakeVisible(); i++; } this.lastItem = i - 1; this.lastIndex = nIndex; } TopicListDialog.prototype.EnableArrows = function() { this.DrawArrows(); this.CenterArrows(); } TopicListDialog.prototype.DrawArrows = function() { // Create and draw up arrow this.upArrow_mc = createEmptyMovieClip("UpArrow",1000000); this.upArrow_mc.moveTo(3,8); this.upArrow_mc.lineStyle(2,0x555555,100); this.upArrow_mc.lineTo(8,3); this.upArrow_mc.lineTo(13,8); this.upArrow_mc.lineStyle(1,0x555555,0); this.upArrow_mc.moveTo(0,0); this.upArrow_mc.beginFill(0x000000,0); this.upArrow_mc.lineTo(0,10); this.upArrow_mc.lineTo(15,10); this.upArrow_mc.lineTo(15,0); this.upArrow_mc.lineTo(0,0); this.upArrow_mc.endFill(); this.upArrow_mc.onPress = this.UpArrowPressed; this.upArrow_mc.onRelease = this.UpArrowReleased; this.upArrow_mc.Owner = this; this.upArrow_mc._visible = false; // Create and draw down arrow this.downArrow_mc = createEmptyMovieClip("DownArrow",1000001); this.downArrow_mc.moveTo(3,3); this.downArrow_mc.lineStyle(2,0x555555,100); this.downArrow_mc.lineTo(8,8); this.downArrow_mc.lineTo(13,3); this.downArrow_mc.lineStyle(1,0x555555,0); this.downArrow_mc.moveTo(0,0); this.downArrow_mc.beginFill(0x000000,0); this.downArrow_mc.lineTo(0,10); this.downArrow_mc.lineTo(15,10); this.downArrow_mc.lineTo(15,0); this.downArrow_mc.lineTo(0,0); this.downArrow_mc.endFill(); this.downArrow_mc.moveTo(0,100); this.downArrow_mc.onPress = this.DownArrowPressed; this.downArrow_mc.onRelease = this.DownArrowReleased; this.downArrow_mc.Owner = this; } TopicListDialog.prototype.UpArrowPressed = function() { this.Owner.downArrow_mc._visible = true; this.Owner.topIndex--; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex > 0) { this.Owner.arrowInterval = setInterval(this.Owner.UpArrowDown,300,this.Owner); } else { this.Owner.upArrow_mc._visible = false; } } TopicListDialog.prototype.UpArrowDown = function(theList) { theList.topIndex--; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.UpArrowDown,75,theList); if (theList.topIndex == 0) { theList.upArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.UpArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.DownArrowPressed = function() { this.Owner.upArrow_mc._visible = true; this.Owner.topIndex++; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex < this.Owner.textNode_array.length-this.Owner.displayItemCount) { this.Owner.arrowInterval = setInterval(this.Owner.DownArrowDown,300,this.Owner); } else { this._visible=false; } } TopicListDialog.prototype.DownArrowDown = function(theList) { theList.topIndex++; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.DownArrowDown,75,theList); if (theList.topIndex == theList.textNode_array.length-theList.displayItemCount) { theList.downArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.DownArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.CenterArrows = function() { // Position Up Arrow this.upArrow_mc._y = this.userWindow_mc._y; this.upArrow_mc._x = this.userWindow_mc._x + (this.userWindow_mc._width - this.upArrow_mc._width)/2; // Position Down Arrow this.downArrow_mc._y = (this.userWindow_mc._y + this.userWindow_mc._height) - this.downArrow_mc._height-2; this.downArrow_mc._x = this.upArrow_mc._x; } TopicListDialog.prototype.Close = function() { if (bFade) { this.curAlpha = 90; this.userWindow_mc.onEnterFrame = this.FadeOut; } else { this.Destroy(); } } TopicListDialog.prototype.Destroy = function() { var i = 0; for (i = 0; i < this.textNode_array.length; i++) { this.textNode_array[i].DestroyNode(); delete this.textNode_array[i]; } delete this.textNode_array; this.upArrow_mc.removeMovieClip(); delete this.upArrow_mc; this.downArrow_mc.removeMovieClip(); delete this.downArrow_mc; this.userWindow_mc.removeMovieClip(); this.userWindow_mc.Owner = undefined; delete this.userWindow_mc; Mouse.removeListener(this.mouseListener); delete this.xPos; delete this.yPos; delete this.nArrows; delete this.arrowInterval; delete this.maxWidth; delete this.maxHeight; delete this.yOffset; delete this.nodeHeight; delete this.maxNodeWidth; delete this.displayItemCount; delete this.topIndex; delete this.lastIndex; delete this.curAlpha; _parent.bTopicDialogOpen = false; } #endinitclip Layer 1O_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 = _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 ////////////////////////////////////////////// // 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(); /////////////////////////////////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.textNo////////////////////////////////////////////////////////// // 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 DefinitionOCPicPage CPicLayer CPicFrame?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(newHovCPicPage CPicLayer CPicFrame?wQ2if (this.Fade) { _parent.bFade = true; } #initclip arrowHeight = 15; widthBuffer = 10; marginTop = 5; window_mc._visible = false; highlight_mc._visible = false; textfield_mc._visible = false; icon_mc._visible = false; inputbg_mc._visible = false; function TopicListDialog(xPos,yPos,yOffset) { this.userWindow_mc = window_mc.duplicateMovieClip("theWindow"+_global.textNode.nCount,_global.textNode.nCount); this.userWindow_mc.Owner = this; _global.textNode.nCount++; this.xPos = xPos; this.yPos = yPos; // Arrows this.upArrow_mc = undefined; this.downArrow_mc = undefined; // Are the arrows Enabled this.nArrows = 0; // The Arrow Interval for scrolling this.arrowInterval = undefined; // Set the maximum width and height this.maxWidth = Stage.width; this.maxHeight = Stage.height - yOffset; this.yOffset = yOffset; // stores an array of internal textnodes this.textNode_array = new Array; // stores the textnode height this.nodeHeight = 0; // store the maximum textnode width this.maxNodeWidth = 0; // store the number of displayable items this.displayItemCount = 0; // the currently displayed top index this.topIndex = 0; this.lastIndex = 0; // Current Alpha value this.curAlpha = 0; // Save the callback function once defined this.pfnCallback = undefined; // Selected node this.nSelected = -1; // create mouse listener this.mouseListener = new Object; this.mouseListener.onMouseDown = this.ClickOut; this.mouseListener.Owner = this; Mouse.addListener(this.mouseListener); } TopicListDialog.prototype.KeyPressed = function(keyCode) { switch(keyCode) { case 13: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.pfnCallBack(0); this.nSelected = 0; } else { this.textNode_array[this.nSelected].Select(); this.pfnCallBack(this.nSelected); this.nSelected = this.nSelected; } _parent.debug_trace("Enter"); break; } case 38: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected>this.topIndex) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); } else if (this.topIndex>0) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); this.downArrow_mc._visible = true; this.topIndex--; this.UpdateDisplay(this.topIndex); } _parent.debug_trace("Up"); break; } case 40: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected"+ Stage.height); } var deltaY = this.userWindow_mc._y - oldYPos; if (this.nArrows>0) { this.upArrow_mc._x +=deltaX; this.upArrow_mc._y +=deltaY; this.downArrow_mc._x +=deltaX; this.downArrow_mc._y +=deltaY; } } TopicListDialog.prototype.UpdateDisplay = function(nIndex) { var curYPos = this.userWindow_mc._y + (arrowHeight*this.nArrows); if (this.nArrows == 0) { curYPos +=marginTop; } var i = nIndex; if (this.lastIndex < nIndex) { this.textNode_array[this.lastIndex].MakeInvisible(); } else { this.textNode_array[this.lastIndex+(this.displayItemCount-1) ].MakeInvisible(); } while (i < this.textNode_array.length && (curYPos + this.nodeHeight) <= (this.userWindow_mc._y + this.userWindow_mc._height - (arrowHeight*this.nArrows))) { this.textNode_array[i].MoveTo(this.userWindow_mc._x + 5, curYPos); var nodeWidth = this.textNode_array[i].GetWidth(); if (nodeWidth > this.maxNodeWidth) { newWidth = nodeWidth - this.maxNodeWidth; this.textNode_array[i].userTextField_mc._width -= newWidth; } curYPos += this.nodeHeight; this.textNode_array[i].SetState(true); this.textNode_array[i].TransitionIn(); this.textNode_array[i].MakeVisible(); i++; } this.lastItem = i - 1; this.lastIndex = nIndex; } TopicListDialog.prototype.EnableArrows = function() { this.DrawArrows(); this.CenterArrows(); } TopicListDialog.prototype.DrawArrows = function() { // Create and draw up arrow this.upArrow_mc = createEmptyMovieClip("UpArrow",1000000); this.upArrow_mc.moveTo(3,8); this.upArrow_mc.lineStyle(2,0x555555,100); this.upArrow_mc.lineTo(8,3); this.upArrow_mc.lineTo(13,8); this.upArrow_mc.lineStyle(1,0x555555,0); this.upArrow_mc.moveTo(0,0); this.upArrow_mc.beginFill(0x000000,0); this.upArrow_mc.lineTo(0,10); this.upArrow_mc.lineTo(15,10); this.upArrow_mc.lineTo(15,0); this.upArrow_mc.lineTo(0,0); this.upArrow_mc.endFill(); this.upArrow_mc.onPress = this.UpArrowPressed; this.upArrow_mc.onRelease = this.UpArrowReleased; this.upArrow_mc.Owner = this; this.upArrow_mc._visible = false; // Create and draw down arrow this.downArrow_mc = createEmptyMovieClip("DownArrow",1000001); this.downArrow_mc.moveTo(3,3); this.downArrow_mc.lineStyle(2,0x555555,100); this.downArrow_mc.lineTo(8,8); this.downArrow_mc.lineTo(13,3); this.downArrow_mc.lineStyle(1,0x555555,0); this.downArrow_mc.moveTo(0,0); this.downArrow_mc.beginFill(0x000000,0); this.downArrow_mc.lineTo(0,10); this.downArrow_mc.lineTo(15,10); this.downArrow_mc.lineTo(15,0); this.downArrow_mc.lineTo(0,0); this.downArrow_mc.endFill(); this.downArrow_mc.moveTo(0,100); this.downArrow_mc.onPress = this.DownArrowPressed; this.downArrow_mc.onRelease = this.DownArrowReleased; this.downArrow_mc.Owner = this; } TopicListDialog.prototype.UpArrowPressed = function() { this.Owner.downArrow_mc._visible = true; this.Owner.topIndex--; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex > 0) { this.Owner.arrowInterval = setInterval(this.Owner.UpArrowDown,300,this.Owner); } else { this.Owner.upArrow_mc._visible = false; } } TopicListDialog.prototype.UpArrowDown = function(theList) { theList.topIndex--; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.UpArrowDown,75,theList); if (theList.topIndex == 0) { theList.upArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.UpArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.DownArrowPressed = function() { this.Owner.upArrow_mc._visible = true; this.Owner.topIndex++; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex < this.Owner.textNode_array.length-this.Owner.displayItemCount) { this.Owner.arrowInterval = setInterval(this.Owner.DownArrowDown,300,this.Owner); } else { this._visible=false; } } TopicListDialog.prototype.DownArrowDown = function(theList) { theList.topIndex++; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.DownArrowDown,75,theList); if (theList.topIndex == theList.textNode_array.length-theList.displayItemCount) { theList.downArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.DownArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.CenterArrows = function() { // Position Up Arrow this.upArrow_mc._y = this.userWindow_mc._y; this.upArrow_mc._x = this.userWindow_mc._x + (this.userWindow_mc._width - this.upArrow_mc._width)/2; // Position Down Arrow this.downArrow_mc._y = (this.userWindow_mc._y + this.userWindow_mc._height) - this.downArrow_mc._height-2; this.downArrow_mc._x = this.upArrow_mc._x; } TopicListDialog.prototype.Close = function() { if (bFade) { this.curAlpha = 90; this.userWindow_mc.onEnterFrame = this.FadeOut; } else { this.Destroy(); } } TopicListDialog.prototype.Destroy = function() { var i = 0; for (i = 0; i < this.textNode_array.length; i++) { this.textNode_array[i].DestroyNode(); delete this.textNode_array[i]; } delete this.textNode_array; this.upArrow_mc.removeMovieClip(); delete this.upArrow_mc; this.downArrow_mc.removeMovieClip(); delete this.downArrow_mc; this.userWindow_mc.removeMovieClip(); this.userWindow_mc.Owner = undefined; delete this.userWindow_mc; Mouse.removeListener(this.mouseListener); delete this.xPos; delete this.yPos; delete this.nArrows; delete this.arrowInterval; delete this.maxWidth; delete this.maxHeight; delete this.yOffset; delete this.nodeHeight; delete this.maxNodeWidth; delete this.displayItemCount; delete this.topIndex; delete this.lastIndex; delete this.curAlpha; _parent.bTopicDialogOpen = false; } #endinitclip Layer 1Ox + 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_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; ].^  xw_CPicPage CPicLayer CPicFrame?c Layer 2OO fffp mLPffff SPQPLMq_000?  Layer 1OnCPicPage CPicLayer CPicFrame CPicSymbol ? W"CPicPage CPicLayer CPicFrame?.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 = fa // 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; }; ///////////////////CPicPage CPicLayer CPicFrame?I{/#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; lse; // 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) { // 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 = fa//////////////////////////////////////////////////////////////// // 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) 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_textFormc; this.userHighlight_mc.removeMovieClip(); delete this.userHighlight_mc; } // Register the class Object.registerClass("FGenericFHTextNode", GenericTextNodeClass); var bLoaded = true; #endinitclip TextNode DefinitionOCPicPage CPicLayer CPicFrame?&F1if (this.Fade) { _parent.bFade = true; } #initclip arrowHeight = 15; widthBuffer = 10; marginTop = 5; window_mc._visible = false; highlight_mc._visible = false; textfield_mc._visible = false; icon_mc._visible = false; inputbg_mc._visible = false; function TopicListDialog(xPos,yPos,yOffset) { this.userWindow_mc = window_mc.duplicateMovieClip("theWindow"+_global.textNode.nCount,_global.textNode.nCount); this.userWindow_mc.Owner = this; _global.textNode.nCount++; this.xPos = xPos; this.yPos = yPos; // Arrows this.upArrow_mc = undefined; this.downArrow_mc = undefined; // Are the arrows Enabled this.nArrows = 0; // The Arrow Interval for scrolling this.arrowInterval = undefined; // Set the maximum width and height this.maxWidth = Stage.width; this.maxHeight = Stage.height - yOffset; this.yOffset = yOffset; // stores an array of internal textnodes this.textNode_array = new Array; // stores the textnode height this.nodeHeight = 0; // store the maximum textnode width this.maxNodeWidth = 0; // store the number of displayable items this.displayItemCount = 0; // the currently displayed top index this.topIndex = 0; this.lastIndex = 0; // Current Alpha value this.curAlpha = 0; // Save the callback function once defined this.pfnCallback = undefined; // Selected node this.nSelected = -1; // create mouse listener this.mouseListener = new Object; this.mouseListener.onMouseDown = this.ClickOut; this.mouseListener.Owner = this; Mouse.addListener(this.mouseListener); } TopicListDialog.prototype.KeyPressed = function(keyCode) { switch(keyCode) { case 13: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.pfnCallBack(0); this.nSelected = 0; } else { this.textNode_array[this.nSelected].Select(); this.pfnCallBack(this.nSelected); this.nSelected = this.nSelected; } _parent.debug_trace("Enter"); break; } case 38: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected>this.topIndex) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); } else if (this.topIndex>0) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); this.downArrow_mc._visible = true; this.topIndex--; this.UpdateDisplay(this.topIndex); } _parent.debug_trace("Up"); break; } case 40: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected 0) { this.Owner.arrowInterval = setInterval(this.Owner.UpArrowDown,300,this.Owner); } else { this.Owner.upArrow_mc._visible = false; } } TopicListDialog.prototype.UpArrowDown = function(theList) { theList.topIndex--; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.UpArrowDown,75,theList); if (theList.topIndex == 0) { theList.upArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.UpArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.DownArrowPressed = function() { this.Owner.upArrow_mc._visible = true; this.Owner.topIndex++; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex < this.Owner.textNode_array.length-this.Owner.displayItemCount) { this.Owner.arrowInterval = setInterval(this.Owner.DownArrowDown,300,this.Owner); } else { this._visible=false; } } TopicListDialog.prototype.DownArrowDown = function(theList) { theList.topIndex++; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.DownArrowDown,75,theList); if (theList.topIndex == theList.textNode_array.length-theList.displayItemCount) { theList.downArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.DownArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.CenterArrows = function() { // Position Up Arrow this.upArrow_mc._y = this.userWindow_mc._y; this.upArrow_mc._x = this.userWindow_mc._x + (this.userWindow_mc._width - this.upArrow_mc._width)/2; // Position Down Arrow this.downArrow_mc._y = (this.userWindow_mc._y + this.userWindow_mc._height) - this.downArrow_mc._height-2; this.downArrow_mc._x = this.upArrow_mc._x; } TopicListDialog.prototype.Close = function() { if (bFade) { this.curAlpha = 90; this.userWindow_mc.onEnterFrame = this.FadeOut; } else { this.Destroy(); } } TopicListDialog.prototype.Destroy = function() { var i = 0; for (i = 0; i < this.textNode_array.length; i++) { this.textNode_array[i].DestroyNode(); delete this.textNode_array[i]; } delete this.textNode_array; this.upArrow_mc.removeMovieClip(); delete this.upArrow_mc; this.downArrow_mc.removeMovieClip(); delete this.downArrow_mc; this.userWindow_mc.removeMovieClip(); this.userWindow_mc.Owner = undefined; delete this.userWindow_mc; Mouse.removeListener(this.mouseListener); delete this.xPos; delete this.yPos; delete this.nArrows; delete this.arrowInterval; delete this.maxWidth; delete this.maxHeight; delete this.yOffset; delete this.nodeHeight; delete this.maxNodeWidth; delete this.displayItemCount; delete this.topIndex; delete this.lastIndex; delete this.curAlpha; _parent.bTopicDialogOpen = false; } #endinitclip Layer 1Omat[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(); } lse; // 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 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; .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"); } }; /////////////////////////////////////////////////////////////////////////////////// // 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 DefinitionO { 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_textForCPicPage CPicLayer CPicFrame?M1if (this.Fade) { _parent.bFade = true; } #initclip arrowHeight = 15; widthBuffer = 10; marginTop = 5; window_mc._visible = false; highlight_mc._visible = false; textfield_mc._visible = false; icon_mc._visible = false; inputbg_mc._visible = false; function TopicListDialog(xPos,yPos,yOffset) { this.userWindow_mc = window_mc.duplicateMovieClip("theWindow"+_global.textNode.nCount,_global.textNode.nCount); this.userWindow_mc.Owner = this; _global.textNode.nCount++; this.xPos = xPos; this.yPos = yPos; // Arrows this.upArrow_mc = undefined; this.downArrow_mc = undefined; // Are the arrows Enabled this.nArrows = 0; // The Arrow Interval for scrolling this.arrowInterval = undefined; // Set the maximum width and height this.maxWidth = Stage.width; this.maxHeight = Stage.height - yOffset; this.yOffset = yOffset; // stores an array of internal textnodes this.textNode_array = new Array; // stores the textnode height this.nodeHeight = 0; // store the maximum textnode width this.maxNodeWidth = 0; // store the number of displayable items this.displayItemCount = 0; // the currently displayed top index this.topIndex = 0; this.lastIndex = 0; // Current Alpha value this.curAlpha = 0; // Save the callback function once defined this.pfnCallback = undefined; // Selected node this.nSelected = -1; // create mouse listener this.mouseListener = new Object; this.mouseListener.onMouseDown = this.ClickOut; this.mouseListener.Owner = this; Mouse.addListener(this.mouseListener); } TopicListDialog.prototype.KeyPressed = function(keyCode) { switch(keyCode) { case 13: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.pfnCallBack(0); this.nSelected = 0; } else { this.textNode_array[this.nSelected].Select(); this.pfnCallBack(this.nSelected); this.nSelected = this.nSelected; } _parent.debug_trace("Enter"); break; } case 38: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected>this.topIndex) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); } else if (this.topIndex>0) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); this.downArrow_mc._visible = true; this.topIndex--; this.UpdateDisplay(this.topIndex); } _parent.debug_trace("Up"); break; } case 40: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected 0) { this.Owner.arrowInterval = setInterval(this.Owner.UpArrowDown,300,this.Owner); } else { this.Owner.upArrow_mc._visible = false; } } TopicListDialog.prototype.UpArrowDown = function(theList) { theList.topIndex--; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.UpArrowDown,75,theList); if (theList.topIndex == 0) { theList.upArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.UpArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.DownArrowPressed = function() { this.Owner.upArrow_mc._visible = true; this.Owner.topIndex++; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex < this.Owner.textNode_array.length-this.Owner.displayItemCount) { this.Owner.arrowInterval = setInterval(this.Owner.DownArrowDown,300,this.Owner); } else { this._visible=false; } } TopicListDialog.prototype.DownArrowDown = function(theList) { theList.topIndex++; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.DownArrowDown,75,theList); if (theList.topIndex == theList.textNode_array.length-theList.displayItemCount) { theList.downArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.DownArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.CenterArrows = function() { // Position Up Arrow this.upArrow_mc._y = this.userWindow_mc._y; this.upArrow_mc._x = this.userWindow_mc._x + (this.userWindow_mc._width - this.upArrow_mc._width)/2; // Position Down Arrow this.downArrow_mc._y = (this.userWindow_mc._y + this.userWindow_mc._height) - this.downArrow_mc._height-2; this.downArrow_mc._x = this.upArrow_mc._x; } TopicListDialog.prototype.Close = function() { if (bFade) { this.curAlpha = 90; this.userWindow_mc.onEnterFrame = this.FadeOut; } else { this.Destroy(); } } TopicListDialog.prototype.Destroy = function() { var i = 0; for (i = 0; i < this.textNode_array.length; i++) { this.textNode_array[i].DestroyNode(); delete this.textNode_array[i]; } delete this.textNode_array; this.upArrow_mc.removeMovieClip(); delete this.upArrow_mc; this.downArrow_mc.removeMovieClip(); delete this.downArrow_mc; this.userWindow_mc.removeMovieClip(); this.userWindow_mc.Owner = undefined; delete this.userWindow_mc; Mouse.removeListener(this.mouseListener); delete this.xPos; delete this.yPos; delete this.nArrows; delete this.arrowInterval; delete this.maxWidth; delete this.maxHeight; delete this.yOffset; delete this.nodeHeight; delete this.maxNodeWidth; delete this.displayItemCount; delete this.topIndex; delete this.lastIndex; delete this.curAlpha; _parent.bTopicDialogOpen = false; } #endinitclip Layer 1Omat[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 ==///////////////////////////////////// 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 DefinitionO3333303f3PPH33Px`33Px33PCPicPage CPicLayer CPicFrame?I1if (this.Fade) { _parent.bFade = true; } #initclip arrowHeight = 15; widthBuffer = 10; marginTop = 5; window_mc._visible = false; highlight_mc._visible = false; textfield_mc._visible = false; icon_mc._visible = false; inputbg_mc._visible = false; function TopicListDialog(xPos,yPos,yOffset) { this.userWindow_mc = window_mc.duplicateMovieClip("theWindow"+_global.textNode.nCount,_global.textNode.nCount); this.userWindow_mc.Owner = this; _global.textNode.nCount++; this.xPos = xPos; this.yPos = yPos; // Arrows this.upArrow_mc = undefined; this.downArrow_mc = undefined; // Are the arrows Enabled this.nArrows = 0; // The Arrow Interval for scrolling this.arrowInterval = undefined; // Set the maximum width and height this.maxWidth = Stage.width; this.maxHeight = Stage.height - yOffset; this.yOffset = yOffset; // stores an array of internal textnodes this.textNode_array = new Array; // stores the textnode height this.nodeHeight = 0; // store the maximum textnode width this.maxNodeWidth = 0; // store the number of displayable items this.displayItemCount = 0; // the currently displayed top index this.topIndex = 0; this.lastIndex = 0; // Current Alpha value this.curAlpha = 0; // Save the callback function once defined this.pfnCallback = undefined; // Selected node this.nSelected = -1; // create mouse listener this.mouseListener = new Object; this.mouseListener.onMouseDown = this.ClickOut; this.mouseListener.Owner = this; Mouse.addListener(this.mouseListener); } TopicListDialog.prototype.KeyPressed = function(keyCode) { switch(keyCode) { case 13: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.pfnCallBack(0); this.nSelected = 0; } else { this.textNode_array[this.nSelected].Select(); this.pfnCallBack(this.nSelected); this.nSelected = this.nSelected; } _parent.debug_trace("Enter"); break; } case 38: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected>this.topIndex) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); } else if (this.topIndex>0) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); this.downArrow_mc._visible = true; this.topIndex--; this.UpdateDisplay(this.topIndex); } _parent.debug_trace("Up"); break; } case 40: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected(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 DefinitionO; if (theList.curAlpha>100) { this.onEnterFrame = undefined; } else { theList.SetAlpha(theList.curAlpha) theList.curAlpha+=10; } } TopicListDialog.prototype.FadeOut = function() { var theList = this.Owner; if (theList.curAlpha<0) { this.onEnterFrame = undefined; theList.Destroy(); } else { theList.SetAlpha(theList.curAlpha) theList.curAlpha-=10; } } TopicListDialog.prototype.SetAlpha = function(newAlpha) { this.userWindow_mc._alpha = newAlpha; var i = 0; var curYPos = this.userWindow_mc._y + (arrowHeight*this.nArrows); while (i < this.textNode_array.length && (curYPos + this.nodeHeight) <= (this.userWindow_mc._y + this.userWindow_mc._height - (arrowHeight*this.nArrows))) { this.textNode_array[i].userIcon_mc._alpha = newAlpha; this.textNode_array[i].userHighlight_mc._alpha = newAlpha; this.textNode_array[i].userTextField_mc._alpha = newAlpha; curYPos += this.nodeHeight; i++; } } TopicListDialog.prototype.FillList = function(topicList_array,pfnCallBack) { var i textNode.nCount,_global.textNode.nCount); this.userWindow_mc.Owner = this; _global.textNode.nCount++; this.xPos = xPos; this.yPos = yPos; // Arrows this.upArrow_mc = undefined; this.downArrow_mc = undefined; // Are the arrows Enabled this.nArrows = 0; // The Arrow Interval for scrolling this.arrowInterval = undefined; // Set the maximum width and height this.maxWidth = Stage.width; this.maxHeight = Stage.height - yOffset; this.yOffset = yOffset; // stores an array of internal textno= 0; for (i = 0; i < topicList_array.length; i++) { this.textNode_array[i] = CreateNewObj(this.OnClick,i); this.textNode_array[i].Owner = this; this.textNode_array[i].SetText(topicList_array[i].displayName_str); var nodeWidth = this.textNode_array[i].GetWidth(); if (nodeWidth > this.maxNodeWidth) { this.maxNodeWidth = nodeWidth; } } this.nodeHeight = this.textNode_array[0].GetHeight(); this.SizeWindow(); this.PositionWindow(); this.UpdateDisplay(this.topIndex); } TopicListDialog.prototype.OnClick = function(nIndex) { this.Owner.textNode_array[nIndex].Select(); this.Owner.pfnCallBack(nIndex); } TopicListDialog.prototype.SizeWindow = function() { var totalHeight = this.nodeHeight * this.textNode_array.length +marginTop; this.userWindow_mc._width = this.maxNodeWidth+widthBuffer; if (totalHeight > this.maxHeight) { this.displayItemCount = Math.floor((this.maxHeight - (arrowHeight*2))/this.nodeHeight); totalHeight = (this.displayItemCount* this.nodeHeight)+ (arrowHeight*2) this.userWindow_mc._height = totalHeight+1; this.EnableArrows(); this.nArrows = 1; } else { this.displayItemCount = Math.floor(totalHeight/this.nodeHeight); this.userWindow_mc._height = totalHeight+1; } } TopicListDialog.prototype.PositionWindow = function() { // Set X Position var oldXPos = this.userWindow_mc._x; this.userWindow_mc._x = this.xPos; if (this.xPos+this.userWindow_mc._width > Stage.width) { this.userWindow_mc._x = Stage.width - this.userWindow_mc._width; } if (this.userWindow_mc._x < 0) { this.userWindow_mc._x = 0; } var deltaX = this.userWindow_mc._x - oldXPos; // Set Y Position var oldYPos = this.userWindow_mc._y; this.userWindow_mc._y = this.yPos; if (this.userWindow_mc._y + this.userWindow_mc._height > Stage.height - _parent.indexYPosition) { this.userWindow_mc._y = Stage.height - this.userWindow_mc._height - _parent.indexYPosition; } var deltaY = this.userWindow_mc._y - oldYPos; if (this.nArrows>0) { this.upArrow_mc._x +=deltaX; this.upArrow_mc._y +=deltaY; this.downArrow_mc._x +=deltaX; this.downArrow_mc._y +=deltaY; } } TopicListDialog.prototype.UpdateDisplay = function(nIndex) { var curYPos = this.userWindow_mc._y + (arrowHeight*this.nArrows); if (this.nArrows == 0) { curYPos +=marginTop; } var i = nIndex; if (this.lastIndex < nIndex) { this.textNode_array[this.lastIndex].MakeInvisible(); } else { this.textNode_array[this.lastIndex+(this.displayItemCount-1) ].MakeInvisible(); } while (i < this.textNode_array.length && (curYPos + this.nodeHeight) <= (this.userWindow_mc._y + this.userWindow_mc._height - (arrowHeight*this.nArrows))) { this.textNode_array[i].MoveTo(this.userWindow_mc._x + 5, curYPos); var nodeWidth = this.textNode_array[i].GetWidth(); if (nodeWidth > this.maxNodeWidth) { newWidth = nodeWidth - this.maxNodeWidth; this.textNode_array[i].userTextField_mc._width -= newWidth; } curYPos += this.nodeHeight; this.textNode_array[i].SetState(true); this.textNode_array[i].TransitionIn(); this.textNode_array[i].MakeVisible(); i++; } this.lastItem = i - 1; this.lastIndex = nIndex; } TopicListDialog.prototype.EnableArrows = function() { this.DrawArrows(); this.CenterArrows(); } TopicListDialog.prototype.DrawArrows = function() { // Create and draw up arrow this.upArrow_mc = createEmptyMovieClip("UpArrow",1000000); this.upArrow_mc.moveTo(3,8); this.upArrow_mc.lineStyle(2,0x555555,100); this.upArrow_mc.lineTo(8,3); this.upArrow_mc.lineTo(13,8); this.upArrow_mc.lineStyle(1,0x555555,0); this.upArrow_mc.moveTo(0,0); this.upArrow_mc.beginFill(0x000000,0); this.upArrow_mc.lineTo(0,10); this.upArrow_mc.lineTo(15,10); this.upArrow_mc.lineTo(15,0); this.upArrow_mc.lineTo(0,0); this.upArrow_mc.endFill(); this.upArrow_mc.onPress = this.UpArrowPressed; this.upArrow_mc.onRelease = this.UpArrowReleased; this.upArrow_mc.Owner = this; this.upArrow_mc._visible = false; // Create and draw down arrow this.downArrow_mc = createEmptyMovieClip("DownArrow",1000001); this.downArrow_mc.moveTo(3,3); this.downArrow_mc.lineStyle(2,0x555555,100); this.downArrow_mc.lineTo(8,8); this.downArrow_mc.lineTo(13,3); this.downArrow_mc.lineStyle(1,0x555555,0); this.downArrow_mc.moveTo(0,0); this.downArrow_mc.beginFill(0x000000,0); this.downArrow_mc.lineTo(0,10); this.downArrow_mc.lineTo(15,10); this.downArrow_mc.lineTo(15,0); this.downArrow_mc.lineTo(0,0); this.downArrow_mc.endFill(); this.downArrow_mc.moveTo(0,100); this.downArrow_mc.onPress = this.DownArrowPressed; this.downArrow_mc.onRelease = this.DownArrowReleased; this.downArrow_mc.Owner = this; } TopicListDialog.prototype.UpArrowPressed = function() { this.Owner.downArrow_mc._visible = true; this.Owner.topIndex--; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex > 0) { this.Owner.arrowInterval = setInterval(this.Owner.UpArrowDown,300,this.Owner); } else { this.Owner.upArrow_mc._visible = false; } } TopicListDialog.prototype.UpArrowDown = function(theList) { theList.topIndex--; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.UpArrowDown,75,theList); if (theList.topIndex == 0) { theList.upArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.UpArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.DownArrowPressed = function() { this.Owner.upArrow_mc._visible = true; this.Owner.topIndex++; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex < this.Owner.textNode_array.length-this.Owner.displayItemCount) { this.Owner.arrowInterval = setInterval(this.Owner.DownArrowDown,300,this.Owner); } else { this._visible=false; } } TopicListDialog.prototype.DownArrowDown = function(theList) { theList.topIndex++; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.DownArrowDown,75,theList); if (theList.topIndex == theList.textNode_array.length-theList.displayItemCount) { theList.downArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.DownArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.CenterArrows = function() { // Position Up Arrow this.upArrow_mc._y = this.userWindow_mc._y; this.upArrow_mc._x = this.userWindow_mc._x + (this.userWindow_mc._width - this.upArrow_mc._width)/2; // Position Down Arrow this.downArrow_mc._y = (this.userWindow_mc._y + this.userWindow_mc._height) - this.downArrow_mc._height-2; this.downArrow_mc._x = this.upArrow_mc._x; } TopicListDialog.prototype.Close = function() { if (bFade) { this.curAlpha = 90; this.userWindow_mc.onEnterFrame = this.FadeOut; } else { this.Destroy(); } } TopicListDialog.prototype.Destroy = function() { var i = 0; for (i = 0; i < this.textNode_array.length; i++) { this.textNode_array[i].DestroyNode(); delete this.textNode_array[i]; } delete this.textNode_array; this.upArrow_mc.removeMovieClip(); delete this.upArrow_mc; this.downArrow_mc.removeMovieClip(); delete this.downArrow_mc; this.userWindow_mc.removeMovieClip(); this.userWindow_mc.Owner = undefined; delete this.userWindow_mc; Mouse.removeListener(this.mouseListener); delete this.xPos; delete this.yPos; delete this.nArrows; delete this.arrowInterval; delete this.maxWidth; delete this.maxHeight; delete this.yOffset; delete this.nodeHeight; delete this.maxNodeWidth; delete this.displayItemCount; delete this.topIndex; delete this.lastIndex; delete this.curAlpha; _parent.bTopicDialogOpen = false; } #endinitclip Layer 1O////////////////////////////////////////////////// // 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 = fa  L  # !"$&m'()*+,-./01234589:;<=>?@ABCDEFGHIJKMNOPQRTUVWXYZ[\]^_`abcdefghijklnopqrstuvwxyz{|}~lse; // 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._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 DefinitionOf`zf 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 DefinitionOCPicPage CPicLayer CPicFrame?1if (this.Fade) { _parent.bFade = true; } #initclip arrowHeight = 15; widthBuffer = 10; marginTop = 5; window_mc._visible = false; highlight_mc._visible = false; textfield_mc._visible = false; icon_mc._visible = false; inputbg_mc._visible = false; function TopicListDialog(xPos,yPos,yOffset) { this.userWindow_mc = window_mc.duplicateMovieClip("theWindow"+_global.textNode.nCount,_global.textNode.nCount); this.userWindow_mc.Owner = this; _global.textNode.nCount++; this.xPos = xPos; this.yPos = yPos; // Arrows this.upArrow_mc = undefined; this.downArrow_mc = undefined; // Are the arrows Enabled this.nArrows = 0; // The Arrow Interval for scrolling this.arrowInterval = undefined; // Set the maximum width and height this.maxWidth = Stage.width; this.maxHeight = Stage.height - yOffset; this.yOffset = yOffset; // stores an array of internal textnodes this.textNode_array = new Array; // stores the textnode height this.nodeHeight = 0; // store the maximum textnode width this.maxNodeWidth = 0; // store the number of displayable items this.displayItemCount = 0; // the currently displayed top index this.topIndex = 0; this.lastIndex = 0; // Current Alpha value this.curAlpha = 0; // Save the callback function once defined this.pfnCallback = undefined; // Selected node this.nSelected = -1; // create mouse listener this.mouseListener = new Object; this.mouseListener.onMouseDown = this.ClickOut; this.mouseListener.Owner = this; Mouse.addListener(this.mouseListener); } TopicListDialog.prototype.KeyPressed = function(keyCode) { switch(keyCode) { case 13: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.pfnCallBack(0); this.nSelected = 0; } else { this.textNode_array[this.nSelected].Select(); this.pfnCallBack(this.nSelected); this.nSelected = this.nSelected; } _parent.debug_trace("Enter"); break; } case 38: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected>this.topIndex) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); } else if (this.topIndex>0) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); this.downArrow_mc._visible = true; this.topIndex--; this.UpdateDisplay(this.topIndex); } _parent.debug_trace("Up"); break; } case 40: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected 0) { this.Owner.arrowInterval = setInterval(this.Owner.UpArrowDown,300,this.Owner); } else { this.Owner.upArrow_mc._visible = false; } } TopicListDialog.prototype.UpArrowDown = function(theList) { theList.topIndex--; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.UpArrowDown,75,theList); if (theList.topIndex == 0) { theList.upArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.UpArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.DownArrowPressed = function() { this.Owner.upArrow_mc._visible = true; this.Owner.topIndex++; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex < this.Owner.textNode_array.length-this.Owner.displayItemCount) { this.Owner.arrowInterval = setInterval(this.Owner.DownArrowDown,300,this.Owner); } else { this._visible=false; } } TopicListDialog.prototype.DownArrowDown = function(theList) { theList.topIndex++; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.DownArrowDown,75,theList); if (theList.topIndex == theList.textNode_array.length-theList.displayItemCount) { theList.downArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.DownArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.CenterArrows = function() { // Position Up Arrow this.upArrow_mc._y = this.userWindow_mc._y; this.upArrow_mc._x = this.userWindow_mc._x + (this.userWindow_mc._width - this.upArrow_mc._width)/2; // Position Down Arrow this.downArrow_mc._y = (this.userWindow_mc._y + this.userWindow_mc._height) - this.downArrow_mc._height-2; this.downArrow_mc._x = this.upArrow_mc._x; } TopicListDialog.prototype.Close = function() { if (bFade) { this.curAlpha = 90; this.userWindow_mc.onEnterFrame = this.FadeOut; } else { this.Destroy(); } } TopicListDialog.prototype.Destroy = function() { var i = 0; for (i = 0; i < this.textNode_array.length; i++) { this.textNode_array[i].DestroyNode(); delete this.textNode_array[i]; } delete this.textNode_array; this.upArrow_mc.removeMovieClip(); delete this.upArrow_mc; this.downArrow_mc.removeMovieClip(); delete this.downArrow_mc; this.userWindow_mc.removeMovieClip(); this.userWindow_mc.Owner = undefined; delete this.userWindow_mc; Mouse.removeListener(this.mouseListener); delete this.xPos; delete this.yPos; delete this.nArrows; delete this.arrowInterval; delete this.maxWidth; delete this.maxHeight; delete this.yOffset; delete this.nodeHeight; delete this.maxNodeWidth; delete this.displayItemCount; delete this.topIndex; delete this.lastIndex; delete this.curAlpha; _parent.bTopicDialogOpen = false; } #endinitclip Layer 1Odes this.textNode_array = new Array; // stores the textnode height this.nodeHeight = 0; // store the maximum textnode width this.maxNodeWidth = 0; // store the number of displayable items this.displayItemCount = 0; // the currently displayed top index this.topIndex = 0; this.lastIndex = 0; // Current Alpha value this.curAlpha = 0; // Save the callback function once defined this.pfnCallback = undefined; // Selected node this.nSelected = -1; // create mouse listener this.mouseListener = new Object; this.mouseListener.onMouseDown = this.ClickOut; this.mouseListener.Owner = this; Mouse.addListener(this.mouseListener); } TopicListDialog.prototype.KeyPressed = function(keyCode) { switch(keyCode) { case 13: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.pfnCallBack(0); this.nSelected = 0; } else { this.textNode_array[this.nSelected].Select(); this.pfnCallBack(this.nSelected); this.nSelected = this.nSelected; } _parent.debug_trace("Enter"); break; } case 38: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected>this.topIndex) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); } else if (this.topIndex>0) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); this.downArrow_mc._visible = true; this.topIndex--; this.UpdateDisplay(this.topIndex); } _parent.debug_trace("Up"); break; } case 40: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected 0) { this.Owner.arrowInterval = setInterval(this.Owner.UpArrowDown,300,this.Owner); } else { this.Owner.upArrow_mc._visible = false; } } TopicListDialog.prototype.UpArrowDown = function(theList) { theList.topIndex--; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.UpArrowDown,75,theList); if (theList.topIndex == 0) { theList.upArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.UpArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.DownArrowPressed = function() { this.Owner.upArrow_mc._visible = true; this.Owner.topIndex++; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex < this.Owner.textNode_array.length-this.Owner.displayItemCount) { this.Owner.arrowInterval = setInterval(this.Owner.DownArrowDown,300,this.Owner); } else { this._visible=false; } } TopicListDialog.prototype.DownArrowDown = function(theList) { theList.topIndex++; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.DownArrowDown,75,theList); if (theList.topIndex == theList.textNode_array.length-theList.displayItemCount) { theList.downArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.DownArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.CenterArrows = function() { // Position Up Arrow this.upArrow_mc._y = this.userWindow_mc._y; this.upArrow_mc._x = this.userWindow_mc._x + (this.userWindow_mc._width - this.upArrow_mc._width)/2; // Position Down Arrow this.downArrow_mc._y = (this.userWindow_mc._y + this.userWindow_mc._height) - this.downArrow_mc._height-2; this.downArrow_mc._x = this.upArrow_mc._x; } TopicListDialog.prototype.Close = function() { if (bFade) { this.curAlpha = 90; this.userWindow_mc.onEnterFrame = this.FadeOut; } else { this.Destroy(); } } TopicListDialog.prototype.Destroy = function() { var i = 0; for (i = 0; i < this.textNode_array.length; i++) { this.textNode_array[i].DestroyNode(); delete this.textNode_array[i]; } delete this.textNode_array; this.upArrow_mc.removeMovieClip(); delete this.upArrow_mc; this.downArrow_mc.removeMovieClip(); delete this.downArrow_mc; this.userWindow_mc.removeMovieClip(); this.userWindow_mc.Owner = undefined; delete this.userWindow_mc; Mouse.removeListener(this.mouseListener); delete this.xPos; delete this.yPos; delete this.nArrows; delete this.arrowInterval; delete this.maxWidt%6g      !"#$%&'()*+,-J/0123457v:;<=>?@ABCDEFGHIyKLNOPQRSTUVWXYZ[\]^_`abcdefhijklmnopqrstu 6z{|}h; delete this.maxHeight; delete this.yOffset; delete this.nodeHeight; delete this.maxNodeWidth; delete this.displayItemCount; delete this.topIndex; delete this.lastIndex; delete this.curAlpha; _parent.bTopicDialogOpen = false; } #endinitclip Layer 1O_ll Layer 1Oame CPicSprCPicPage CPicLayer CPicFrameCPicText #-R Arial BlackI\z"(??C Layer 1Ome CPicSymCPicPage CPicLayer CPicFrame CPicShape CPicSprite  #P}  CPicSymbolq  q$?/ Layer 3OOdCPicPage CPicLayer CPicFramezV0000?Q Layer 1Od 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._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(undefineCPicPage CPicLayer CPicFrame?Mm2if (this.Fade) { _parent.bFade = true; } #initclip arrowHeight = 15; widthBuffer = 10; marginTop = 5; window_mc._visible = false; highlight_mc._visible = false; textfield_mc._visible = false; icon_mc._visible = false; inputbg_mc._visible = false; function TopicListDialog(xPos,yPos,yOffset) { this.userWindow_mc = window_mc.duplicateMovieClip("theWindow"+_global.textNode.nCount,_global.textNode.nCount); this.userWindow_mc.Owner = this; _global.textNode.nCount++; this.xPos = xPos; this.yPos = yPos; // Arrows this.upArrow_mc = undefined; this.downArrow_mc = undefined; // Are the arrows Enabled this.nArrows = 0; // The Arrow Interval for scrolling this.arrowInterval = undefined; // Set the maximum width and height this.maxWidth = Stage.width; this.maxHeight = Stage.height - yOffset; this.yOffset = yOffset; // stores an array of internal textnodes this.textNode_array = new Array; // stores the textnode height this.nodeHeight = 0; // store the maximum textnode width this.maxNodeWidth = 0; // store the number of displayable items this.displayItemCount = 0; // the currently displayed top index this.topIndex = 0; this.lastIndex = 0; // Current Alpha value this.curAlpha = 0; // Save the callback function once defined this.pfnCallback = undefined; // Selected node this.nSelected = -1; // create mouse listener this.mouseListener = new Object; this.mouseListener.onMouseDown = this.ClickOut; this.mouseListener.Owner = this; Mouse.addListener(this.mouseListener); } TopicListDialog.prototype.KeyPressed = function(keyCode) { switch(keyCode) { case 13: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.pfnCallBack(0); this.nSelected = 0; } else { this.textNode_array[this.nSelected].Select(); this.pfnCallBack(this.nSelected); this.nSelected = this.nSelected; } _parent.debug_trace("Enter"); break; } case 38: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected>this.topIndex) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); } else if (this.topIndex>0) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); this.downArrow_mc._visible = true; this.topIndex--; this.UpdateDisplay(this.topIndex); } _parent.debug_trace("Up"); break; } case 40: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected 0) { this.Owner.arrowInterval = setInterval(this.Owner.UpArrowDown,300,this.Owner); } else { this.Owner.upArrow_mc._visible = false; } } TopicListDialog.prototype.UpArrowDown = function(theList) { theList.topIndex--; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.UpArrowDown,75,theList); if (theList.topIndex == 0) { theList.upArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.UpArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.DownArrowPressed = function() { this.Owner.upArrow_mc._visible = true; this.Owner.topIndex++; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex < this.Owner.textNode_array.length-this.Owner.displayItemCount) { this.Owner.arrowInterval = setInterval(this.Owner.DownArrowDown,300,this.Owner); } else { this._visible=false; } } TopicListDialog.prototype.DownArrowDown = function(theList) { theList.topIndex++; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.DownArrowDown,75,theList); if (theList.topIndex == theList.textNode_array.length-theList.displayItemCount) { theList.downArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.DownArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.CenterArrows = function() { // Position Up Arrow this.upArrow_mc._y = this.userWindow_mc._y; this.upArrow_mc._x = this.userWindow_mc._x + (this.userWindow_mc._width - this.upArrow_mc._width)/2; // Position Down Arrow this.downArrow_mc._y = (this.userWindow_mc._y + this.userWindow_mc._height) - this.downArrow_mc._height-2; this.downArrow_mc._x = this.upArrow_mc._x; } TopicListDialog.prototype.Close = function() { if (bFade) { this.curAlpha = 90; this.userWindow_mc.onEnterFrame = this.FadeOut; } else { this.Destroy(); } } TopicListDialog.prototype.Destroy = function() { var i = 0; for (i = 0; i < this.textNode_array.length; i++) { this.textNode_array[i].DestroyNode(); delete this.textNode_array[i]; } delete this.textNode_array; this.upArrow_mc.removeMovieClip(); delete this.upArrow_mc; this.downArrow_mc.removeMovieClip(); delete this.downArrow_mc; this.userWindow_mc.removeMovieClip(); this.userWindow_mc.Owner = undefined; delete this.userWindow_mc; Mouse.removeListener(this.mouseListener); delete this.xPos; delete this.yPos; delete this.nArrows; delete this.arrowInterval; delete this.maxWidth; delete this.maxHeight; delete this.yOffset; delete this.nodeHeight; delete this.maxNodeWidth; delete this.displayItemCount; delete this.topIndex; delete this.lastIndex; delete this.curAlpha; _parent.bTopicDialogOpen = false; } #endinitclip Layer 1OSymbol 41Z3Symbol 42'+Z3Symbol 431Symbol 44*,Z3Symbol 37"2Symbol 38$)1Symbol 39S2Symbol 40&(~1CPicPage CPicLayer CPicFrame?o@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(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; // 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.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 = functid,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 DefinitionOCPicPage CPicLayer CPicFrame?sm2if (this.Fade) { _parent.bFade = true; } #initclip arrowHeight = 15; widthBuffer = 10; marginTop = 5; window_mc._visible = false; highlight_mc._visible = false; textfield_mc._visible = false; icon_mc._visible = false; inputbg_mc._visible = false; function TopicListDialog(xPos,yPos,yOffset) { this.userWindow_mc = window_mc.duplicateMovieClip("theWindow"+_global.textNode.nCount,_global.textNode.nCount); this.userWindow_mc.Owner = this; _global.textNode.nCount++; this.xPos = xPos; this.yPos = yPos; // Arrows this.upArrow_mc = undefined; this.downArrow_mc = undefined; // Are the arrows Enabled this.nArrows = 0; // The Arrow Interval for scrolling this.arrowInterval = undefined; // Set the maximum width and height this.maxWidth = Stage.width; this.maxHeight = Stage.height - yOffset; this.yOffset = yOffset; // stores an array of internal textnodes this.textNode_array = new Array; // stores the textnode height this.nodeHeight = 0; // store the maximum textnode width this.maxNodeWidth = 0; // store the number of displayable items this.displayItemCount = 0; // the currently displayed top index this.topIndex = 0; this.lastIndex = 0; // Current Alpha value this.curAlpha = 0; // Save the callback function once defined this.pfnCallback = undefined; // Selected node this.nSelected = -1; // create mouse listener this.mouseListener = new Object; this.mouseListener.onMouseDown = this.ClickOut; this.mouseListener.Owner = this; Mouse.addListener(this.mouseListener); } TopicListDialog.prototype.KeyPressed = function(keyCode) { switch(keyCode) { case 13: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.pfnCallBack(0); this.nSelected = 0; } else { this.textNode_array[this.nSelected].Select(); this.pfnCallBack(this.nSelected); this.nSelected = this.nSelected; } _parent.debug_trace("Enter"); break; } case 38: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected>this.topIndex) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); } else if (this.topIndex>0) { this.textNode_array[this.nSelected].Unselect(); this.nSelected--; this.textNode_array[this.nSelected].Select(); this.downArrow_mc._visible = true; this.topIndex--; this.UpdateDisplay(this.topIndex); } _parent.debug_trace("Up"); break; } case 40: { if (this.nSelected == -1) { this.textNode_array[0].Select(); this.nSelected = 0; } else if (this.nSelected 0) { this.Owner.arrowInterval = setInterval(this.Owner.UpArrowDown,300,this.Owner); } else { this.Owner.upArrow_mc._visible = false; } } TopicListDialog.prototype.UpArrowDown = function(theList) { theList.topIndex--; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.UpArrowDown,75,theList); if (theList.topIndex == 0) { theList.upArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.UpArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.DownArrowPressed = function() { this.Owner.upArrow_mc._visible = true; this.Owner.topIndex++; this.Owner.UpdateDisplay(this.Owner.topIndex); if (this.Owner.topIndex < this.Owner.textNode_array.length-this.Owner.displayItemCount) { this.Owner.arrowInterval = setInterval(this.Owner.DownArrowDown,300,this.Owner); } else { this._visible=false; } } TopicListDialog.prototype.DownArrowDown = function(theList) { theList.topIndex++; theList.UpdateDisplay(theList.topIndex); clearInterval(theList.arrowInterval); theList.arrowInterval = setInterval(theList.DownArrowDown,75,theList); if (theList.topIndex == theList.textNode_array.length-theList.displayItemCount) { theList.downArrow_mc._visible = false; clearInterval(theList.arrowInterval); } } TopicListDialog.prototype.DownArrowReleased = function() { clearInterval(this.Owner.arrowInterval); } TopicListDialog.prototype.CenterArrows = function() { // Position Up Arrow this.upArrow_mc._y = this.userWindow_mc._y; this.upArrow_mc._x = this.userWindow_mc._x + (this.userWindow_mc._width - this.upArrow_mc._width)/2; // Position Down Arrow this.downArrow_mc._y = (this.userWindow_mc._y + this.userWindow_mc._height) - this.downArrow_mc._height-2; this.downArrow_mc._x = this.upArrow_mc._x; } TopicListDialog.prototype.Close = function() { if (bFade) { this.curAlpha = 90; this.userWindow_mc.onEnterFrame = this.FadeOut; } else { this.Destroy(); } } TopicListDialog.prototype.Destroy = function() { var i = 0; for (i = 0; i < this.textNode_array.length; i++) { this.textNode_array[i].DestroyNode(); delete this.textNode_array[i]; } delete this.textNode_array; this.upArrow_mc.removeMovieClip(); delete this.upArrow_mc; this.downArrow_mc.removeMovieClip(); delete this.downArrow_mc; this.userWindow_mc.removeMovieClip(); this.userWindow_mc.Owner = undefined; delete this.userWindow_mc; Mouse.removeListener(this.mouseListener); delete this.xPos; delete this.yPos; delete this.nArrows; delete this.arrowInterval; delete this.maxWidth; delete this.maxHeight; delete this.yOffset; delete this.nodeHeight; delete this.maxNodeWidth; delete this.displayItemCount; delete this.topIndex; delete this.lastIndex; delete this.curAlpha; _parent.bTopicDialogOpen = false; } #endinitclip Layer 1O? Layer 3OO LCPicPage CPicLayer CPicFrame CPicSprite> >d-$ window_mc?  window_mcO dA inputbg_mc?VRCPicPage CPicLayer CPicFrameh00h0?n Layer 1O inputbg_mcO) )d highlight_mc?  highlight_mcOO1 1d? textfield_mc?" textfield_mc d?icon_mc?D icon_mcOP P-Kfhtextnode_compLabel defaultValueg LIU U,%fhgeneric_compFadetrueK0F@brh?wzx /* function ListClicked(nIndex) { trace("Item = "+nIndex); } var topicDialog = new TopicListDialog(); var topicList_array = new Array(); topicList_array[0] = new Object(); topicList_array[0].displayName_str = "Gerry"; topicList_array[1] = new Object(); topicList_array[1].displayName_str = "Terry"; topicDialog.DisplayTopicDialog(topicList_array,ListClicked); */  Layer 1O ) CDocumentPagePage 1Scene 1C8>? Symbol 27 HighlightGR> Symbol 27> Symbol 12Graphic w#> Symbol 12{#> Symbol 11BG P>h Symbol 11$?Symbol 8InputBackground8>Symbol 8>?Symbol 1window>;..\wf_indexui.flawindow>>;J?Symbol 2 TextField0>A..\wf_indexui.fla TextField8>0>AM>Symbol 3LabelI>C..\wf_indexui.flaLabel8>I>CM>Symbol 4IconW>=..\wf_indexui.flaIconW>W>=#>Symbol 5 Highlightǖ>E..\wf_indexui.fla Highlightږ>ǖ>E9t> Symbol 18 IconIndexK>y.\skin_button_tb_index.fla IconIndexJ>K>yT? Symbol 35page2#}>AP:\Design Team\Personal Folders\AJ\FlashHelp\Rev4Wildfire\toc.flaAJ/page2~O>}>~O> Symbol 36 QuestionMark${r>vAP:\Design Team\Personal Folders\AJ\FlashHelp\Rev4Wildfire\toc.flaAJ/QuestionMarkN>{r>vT? Symbol 44Generic FH Index Component,N>' TopicList_Obj+C:\FlashComponents\FlashHelp Components.flaGeneric FH Index Component ?N>' ?FadetrueK0F@brh Symbol 45Generic FH Textnode Component-N>7FGenericFHTextNode+C:\FlashComponents\FlashHelp Components.flaGeneric FH Textnode Component>N>7>Label defaultValueg LI.pphhhhh  CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hxf0f30ff(0f5Hf<`f@x3330333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf30f33PHff3(PHf3<x`f3Cxf3Ffff`f03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZff0f3fPHfff`ffP0xffPxffPH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3dfHf3x`ff0xfx0xf̙dxf]`3`f``x`px3`33x3fx3x3xx3nf`f3xffxfxfxxfkx3xfxxxxx3x333f333xfxf3fffffxxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx x(xPx3H33x`f3x`3(x`35x3<3`33xf3 x̙3x3(x323x33f3 333(xfH3fx`ff0xf(0xf<xfCf`3fxffx̙fxf(xf5fx3ffff ff((xH3x`f0x̙PPP`3xfx̙P̙(P<x3f̙(xx`3xfxPxPd`3xfx̙PPx3f(xx3fxx3f̙xx3ff`zf*]6hon() { 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 DefinitionO? Layer 3OO LCPicPage CPicLayer CPicFrame CPicSprite> >dF window_mc?] window_mcO df inputbg_mc?pCPicPage CPicLayer CPicFrameh00h0?n Layer 1O inputbg_mcO) )dsS highlight_mc? highlight_mcOO1 1d7 textfield_mc?)f textfield_mc doicon_mc? = icon_mcOP P./fhtextnode_compLabel defaultValueg LIU U,fhgeneric_compFadetrueK0F@brh?'x /* function ListClicked(nIndex) { trace("Item = "+nIndex); } var topicDialog = new TopicListDialog(); var topicList_array = new Array(); topicList_array[0] = new Object(); topicList_array[0].displayName_str = "Gerry"; topicList_array[1] = new Object(); topicList_array[1].displayName_str = "Terry"; topicDialog.DisplayTopicDialog(topicList_array,ListClicked); */  Layer 1O ) CDocumentPagePage 1Scene 1C8>X.? Symbol 27 HighlightGR> Symbol 27> Symbol 12Graphic w#> Symbol 12{#> Symbol 11BG P>h Symbol 11$?Symbol 8InputBackground8>Symbol 8>?Symbol 1window>;..\wf_indexui.flawindow>>;J?Symbol 2 TextField0>A..\wf_indexui.fla TextField8>0>AM>Symbol 3LabelI>C..\wf_indexui.flaLabel8>I>CM>Symbol 4IconW>=..\wf_indexui.flaIconW>W>=#>Symbol 5 Highlightǖ>E..\wf_indexui.fla Highlightږ>ǖ>E9t> Symbol 18 IconIndexK>y.\skin_button_tb_index.fla IconIndexJ>K>yT? Symbol 35page2#}>AP:\Design Team\Personal Folders\AJ\FlashHelp\Rev4Wildfire\toc.flaAJ/page2~O>}>~O> Symbol 36 QuestionMark${r>vAP:\Design Team\Personal Folders\AJ\FlashHelp\Rev4Wildfire\toc.flaAJ/QuestionMarkN>{r>vT? Symbol 44Generic FH Index Component,N>' TopicList_Obj+C:\FlashComponents\FlashHelp Components.flaGeneric FH Index Component ?N>' ?FadetrueK0F@brh Symbol 46Generic FH Textnode Component.N>7FGenericFHTextNode+C:\FlashComponents\FlashHelp Components.flaGeneric FH Textnode Component4?N>74?Label defaultValueg LI/pphhhhh  CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hxf0f30ff(0f5Hf<`f@x3330333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf30f33PHff3(PHf3<x`f3Cxf3Ffff`f03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZff0f3fPHfff`ffP0xffPxffPH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3dfHf3x`ff0xfx0xf̙dxf]`3`f``x`px3`33x3fx3x3xx3nf`f3xffxfxfxxfkx3xfxxxxx3x333f333xfxf3fffffxxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx x(xPx3H33x`f3x`3(x`35x3<3`33xf3 x̙3x3(x323x33f3 333(xfH3fx`ff0xf(0xf<xfCf`3fxffx̙fxf(xf5fx3ffff ff((xH3x`f0x̙PPP`3xfx̙P̙(P<x3f̙(xx`3xfxPxPd`3xfx̙PPx3f(xx3fxx3f̙xx3ff`zf*]6h