⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nrlist.as

📁 flash blog
💻 AS
字号:
import mx.utils.Delegate;class nrlist extends MovieClip{	var loadmc : MovieClip	function nrlist ()	{		//		// ---ActionScript is creat by Flash2ASP---		// ---http://yellowboy.cn---		var MyNotes = new Array ()		var LV = new XML ()		LV.ignoreWhite = true		LV.load ("http://yellowboy.cn/readall.asp")		LV.onLoad = Delegate.create (this, onc)		function onc ()		{			loadmc._visible = false			for (var i = 0; i < LV.firstChild.childNodes.length; i ++)			{				var YellowTemp_log_id = LV.firstChild.childNodes [i].childNodes [0].firstChild.nodeValue				var YellowTemp_log_title = LV.firstChild.childNodes [i].childNodes [1].firstChild.nodeValue				var YellowTemp_log_postTime = LV.firstChild.childNodes [i].childNodes [2].firstChild.nodeValue				MyNotes.push ( 				{					log_id : YellowTemp_log_id, log_title : YellowTemp_log_title, log_postTime : YellowTemp_log_postTime				})			}			var mc = this			made (mc)			_root.gtalks.stxt.onChanged = function ()			{				s (_root.gtalks.stxt.text, mc)			}				_root.gtalks.s3.btn.onRelease = function ()			{				_root.gtalks.stxt.text=""				s ("", mc)			}		}		function made (mc)		{			for (var i = 0; i < MyNotes.length; i ++)			{				mc.attachMovie ("nrnr", "nrnr" + i, i)				mc ["nrnr" + i]._x = 0				mc ["nrnr" + i]._y = i * 20				mc ["nrnr" + i].txt.text = MyNotes [i].log_title				mc ["nrnr" + i].txt.autoSize = "left"				mc ["nrnr" + i].log_id = MyNotes [i].log_id			}			mc._parent.onComplete ()		}		function s (txt, mc)		{			for (var i = 0; i < MyNotes.length; i ++)			{				mc ["nrnr" + i].removeMovieClip ()			}			txt = txt.toLowerCase ()			MyNotes = new Array ()			for (var i = 0; i < LV.firstChild.childNodes.length; i ++)			{				var YellowTemp_log_id = LV.firstChild.childNodes [i].childNodes [0].firstChild.nodeValue				var YellowTemp_log_title = LV.firstChild.childNodes [i].childNodes [1].firstChild.nodeValue				var YellowTemp_log_postTime = LV.firstChild.childNodes [i].childNodes [2].firstChild.nodeValue				if (YellowTemp_log_title.toLowerCase ().indexOf (txt) >= 0)				{					MyNotes.push ( 					{						log_id : YellowTemp_log_id, log_title : YellowTemp_log_title, log_postTime : YellowTemp_log_postTime					})				}			}			made (mc)		}	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -