📄 yellowblognr.as
字号:
//Yellow Yellowblognrimport flash.geom.Matrix;import mx.utils.Delegateclass yellowblognr extends MovieClip{ var myxml : XML var log, lou, comcount, id, line, line999 function onLoad () { this._parent._parent.titlet.text ="Loading..." myxml = new XML () myxml.load ("http://yellowboy.cn/readid.asp?log_id=" + _parent._parent.id+"&yellow="+random(999999)) myxml.onLoad = Delegate.create (this, readxml); } function readxml () { var logxml : XMLNode = myxml.firstChild.firstChild var comxml : XMLNode = myxml.firstChild.lastChild this.createTextField ("log", 50, 0, 0, this._parent._parent.b1._width - 33, 300) this._parent._parent.titlet.text = logxml.childNodes [0].firstChild.nodeValue log.wordWrap = true log.html = true log.htmlText = "<font face=\"Verdana\"> <b>Yellow:</b>" + chr (13) + "<hr>" + chr (13) + " " + logxml.childNodes [1].firstChild.nodeValue + logxml.childNodes [2].firstChild.nodeValue + "</font>" log._height = log.textHeight + 5 this.attachMovie ("lou", "lou", 51) lou._x = lou._y = log._x = log._y = 3 this.attachMovie ("line", "line", 53) line._x = 52 line._y = lou._y + 23 line._width = this._parent._parent.b1._width - 85 line._height = 1 madebox ("dd", 0, 0, log._width + 6, log._height + 6, - 50, true) var big_x = log._height + 3 // comcount = comxml.childNodes.length for (var i = 0; i < comcount; i ++) { this.createTextField ("com" + i, i + 500, 0, 0, this._parent._parent.b1._width - 33, 300) this ["com" + i].wordWrap = true this ["com" + i].html = true this ["com" + i].htmlText = "<font face=\"Verdana\"> <b>" + comxml.childNodes [i].childNodes [1].firstChild.nodeValue + ":</b>" + chr (13) + "<hr>" + chr (13) + " " + comxml.childNodes [i].childNodes [0].firstChild.nodeValue + "</font>" this ["com" + i]._height = this ["com" + i].textHeight + 5 this.attachMovie ("lou", "lou" + i, i + 1000) if(comxml.childNodes [i].childNodes [1].firstChild.nodeValue=="yellow"){ this ["lou" + i].tt.text ="楼主" this ["lou" + i].mm.gotoAndStop (1) }else{ this ["lou" + i].tt.text = i + 1 + "楼" this ["lou" + i].mm.gotoAndStop (Number (i % 2 + 2)) } this ["lou" + i]._x = this ["com" + i]._x = 3 this ["lou" + i]._y = this ["com" + i]._y = big_x + 10 madebox ("dd" + i, 0, big_x + 7, this ["com" + i]._width + 6, this ["com" + i]._height + 6, - (i + 800)) big_x += this ["com" + i]._height + 10 this.attachMovie ("line", "line" + i, i + 1500) this ["line" + i]._x = 52 this ["line" + i]._y = this ["lou" + i]._y + 23 this ["line" + i]._width = this._parent._parent.b1._width - 85 this ["line" + i]._height = 1 // trace(comxml.childNodes[i].childNodes[0].firstChild.nodeValue) } this.attachMovie ("line", "line999", 55) line999._y = big_x + 10 line999._alpha = 0 line999._width = 10 // this._parent.onComplete () } function ondrag () { log._width = this._parent._parent.b1._width - 33 log._height = log.textHeight + 5 madebox ("dd", 0, 0, log._width + 6, log._height + 6, - 50, true) var big_x = log._height + 3 line._y = log._y + 23 line._width = this._parent._parent.b1._width - 85 for (var i = 0; i < comcount; i ++) { this ["com" + i]._width = this._parent._parent.b1._width - 33 this ["com" + i]._height = this ["com" + i].textHeight + 5 this ["lou" + i]._x = this ["com" + i]._x = 3 this ["lou" + i]._y = this ["com" + i]._y = big_x + 10 madebox ("dd" + i, 0, big_x + 7, this ["com" + i]._width + 6, this ["com" + i]._height + 6, - (i + 800)) big_x += this ["com" + i]._height + 10 this ["line" + i]._y = this ["lou" + i]._y + 23 this ["line" + i]._width = this._parent._parent.b1._width - 85 // trace(comxml.childNodes[i].childNodes[0].firstChild.nodeValue) } line999._y = big_x + 10 } function madebox (mc, mcX, mcY, mcW, mcH, de, blog) { mc = createEmptyMovieClip (mc, de) var ROUND = 8; if (blog) { mc.lineStyle (0, 0x938F5A, 100, true); } else { mc.lineStyle (0, 0xFF8F5A, 100, true); } var matrixs = new Matrix (); matrixs = { matrixType : "box", x : mcX, y : mcY, w : mcW, h : mcH, r : (90 / 180) * Math.PI }; if (blog) { mc.beginGradientFill ("linear", [0xFFFEEB, 0xF5F7D3] , [100, 100] , [0, 255] , matrixs , "pda", "RGB", 3); } else { mc.beginGradientFill ("linear", [0xFFFEEB, 0xFFF3CB] , [100, 100] , [0, 255] , matrixs , "pda", "RGB", 3); } mc.moveTo ((mcX + ROUND) , mcY); mc.lineTo ((mcX + (mcW - ROUND)) , mcY); mc.curveTo ((mcX + mcW) , mcY, (mcX + mcW) , (mcY + ROUND)); mc.lineTo ((mcX + mcW) , (mcY + (mcH - ROUND))); mc.curveTo ((mcX + mcW) , (mcY + mcH) , (mcX + (mcW - ROUND)) , (mcY + mcH)); mc.lineTo ((mcX + ROUND) , (mcY + mcH)); mc.curveTo (mcX, (mcY + mcH) , mcX, (mcY + (mcH - ROUND))); mc.lineTo (mcX, (mcY + ROUND)); mc.curveTo (mcX, mcY, (mcX + ROUND) , mcY); // mc.endFill (); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -