|
主题:[讨论]V7.0 FLASH幻灯4(6.5新增)幻灯片源文件 [收藏主题] | 转到: |
支持(25) | 反对(25) 顶端 底部 |
qq360060316 发表于:2010/12/4 15:52:55 | 只看该作者 查看该作者主题
沙发
|
|
<a href=http://www.7dye.com/ style=color:#fff target=_blank>***</a> | |
支持(25) | 反对(25) 顶端 底部 |
xuyuan199311 发表于:2011/1/18 23:45:20 | 只看该作者 查看该作者主题
藤椅
|
|
支持(18) | 反对(16) 顶端 底部 |
function replaceConnWord(str)
{ var _loc1 = 0; for (var _loc1 = str.indexOf("*and*"); _loc1 != -1; _loc1 = str.indexOf("*and*")) { str1 = str.slice(0, _loc1); str2 = str.slice(_loc1 + 5); str = str1 + "&" + str2; } // end of for for (var _loc1 = str.indexOf("*b*"); _loc1 != -1; _loc1 = str.indexOf("*b*")) { str1 = str.slice(0, _loc1); str2 = str.slice(_loc1 + 3); str = str1 + "%" + str2; } // end of for return (str); } // End of the function function cutIntoArray(str1, str2, str3, str4) { var _loc8 = new Array(); var _loc7 = str1.split("###"); var _loc9 = str2.split("###"); var _loc10 = str3.split("###"); var _loc11 = str4.split("###"); var _loc6 = _loc7.length; totalPicNum_num = _loc6; for (var _loc1 = 0; _loc1 < _loc6; ++_loc1) { _loc8.push({src: _loc7[_loc1], name: _loc10[_loc1], link: _loc9[_loc1], descripts: _loc11[_loc1]}); } // end of for return (_loc8); } // End of the function function analyseData() { pic = replaceConnWord(pics); links = replaceConnWord(links); texts = replaceConnWord(texts); descripts = replaceConnWord(descripts); pic_arr = cutIntoArray(pics, links, texts, descripts); dataLoaded_obj.dispatchEvent({type: "loadComplete"}); } // End of the function function loadPics() { var _loc5 = totalPicNum_num; for (var _loc2 = 0; _loc2 < _loc5; ++_loc2) { var _loc3 = this.attachMovie("squa", "pic" + _loc2, totalPicNum_num - _loc2); _loc3.bg_mc.width = borderwidth; _loc3.bg_mc.height = borderheight; var _loc4 = _loc3.createEmptyMovieClip("pic", 1); picLoader_mcl.loadClip(pic_arr[_loc2].src, _loc4); } // end of for this.createEmptyMovieClip("maskmc", totalPicNum_num + 3); picStatus_obj.dispatchEvent({type: "picLoaded"}); } // End of the function function changePic(num) { if (totalPicNum_num < num) { num = 1; } // end if onEffect_bl = true; clearInterval(waitInterval); _root.infoField_txt.text = pic_arr[num - 1].name; _root.descipt_txt.text = pic_arr[num - 1].descripts; cur_mc._x = leftEdge_num + (num - 1) * 22; cur_mc.num_txt.text = num; if (curUnderPicNum_num) { this["pic" + (curUnderPicNum_num - 1)].swapDepths(curUnderPicNum_num - 1); } // end if if (curPicNum_num) { this["pic" + (curPicNum_num - 1)].swapDepths(totalPicNum_num + 1); curUnderPicNum_num = curPicNum_num; } // end if curPic_mc = this["pic" + (num - 1)]; curPic_mc.setMask(maskmc); curPic_mc.swapDepths(totalPicNum_num + 2); curPicNum_num = num; var _loc3 = Math.floor(Math.random() * 2); maskmc.attachMovie("effect" + _loc3, "effect", 1, {_w: borderwidth, _h: borderheight}); effectListener_obj.justFinish = function (evtObj) { evtObj.target.removeMovieClip(); curPic_mc.setMask(null); onEffect_bl = false; waitInterval = setInterval(_root, "changePic", waitingTime_num, num + 1); }; maskmc.effect.registerInterval(effectListener_obj); maskmc.effect.gotoWork(borderwidth, borderheight); } // End of the function function drawButtons() { var total_num = totalPicNum_num; var _txt_bg = _root.createEmptyMovieClip("_txt_bg", total_num + 6); with (_txt_bg) { lineStyle(0, borderColor_num, 100); beginFill(0, 50); moveTo(0, borderheight - 76); lineTo(borderwidth - 1, borderheight - 76); lineTo(borderwidth - 1, borderheight - 1); lineTo(0, borderheight - 1); lineTo(0, borderheight - 76); endFill(); } // End of with leftEdge_num = borderwidth - 22 * total_num - 4; _root.attachMovie("cur", "cur_mc", total_num * 2 + 8, {_x: leftEdge_num, _y: borderheight - 21}); _root.cur_mc.num_txt.text = 1; for (i = 0; i < total_num; i++) { this_mc = this.attachMovie("num", "num" + i, total_num + 7 + i, {_x: leftEdge_num + 22 * i, _y: borderheight - 18}); this_mc.id = i + 1; this_mc.num_txt.text = i + 1; this_mc.onRelease = function () { var _loc3 = new Date(); lastTime = firstTime; firstTime = _loc3.getTime(); if (firstTime - lastTime < 300 && dcRecord == this.id) { getURL(pic_arr[dcRecord - 1].link, "_blank"); var _loc2 = String(flash.external.ExternalInterface.call("function(){return location.href;}")); _pv_counter_mcl.loadClip("http://pv.zol.com.cn/images/pvhit0010.gif?url=" + pic_arr[dcRecord - 1].link + "&refer=" + _loc2, _pv_counter_mc); lastTime = 0; firstTime = 0; dcRecord = 0; } else { dcRecord = this.id; if (!onEffect_bl && curPicNum_num != this.id) { clearInterval(waitInterval); changePic(this.id); cur_mc._x = this._x; cur_mc.num_txt.text = this.id; } // end if } // end else if }; this_mc.onRollOver = function () { this.mouseon._visible = true; }; this_mc.onRollOut = function () { this.mouseon._visible = false; }; } // end of for drawInfoFiled(); this.createEmptyMovieClip("bordermc", 50); with (bordermc) { lineStyle(0, borderColor_num, 100); lineTo(borderwidth - 1, 0); lineTo(borderwidth - 1, borderheight - 1); lineTo(0, borderheight - 1); lineTo(0, 0); } // End of with picStatus_obj.dispatchEvent({type: "buttonsReady"}); } // End of the function function drawInfoFiled() { var _loc3 = new TextFormat(); _loc3.font = "微软雅黑"; _loc3.color = fontColor_num; _loc3.size = fontSize_num; _root.createTextField("infoField_txt", 100, 15, borderheight - 50, borderwidth - 30, 32); _root.infoField_txt.selectable = false; _root.infoField_txt.setNewTextFormat(_loc3); var _loc2 = new TextFormat(); _loc2.size = 12; _loc2.color = 16737792; _loc2.leading = 2; _root.createTextField("descipt_txt", 101, 15, borderheight - 45, borderwidth - 30, 40); _root.descipt_txt.selectable = false; _root.descipt_txt.setNewTextFormat(_loc2); } // End of the function System.security.allowDomain("*"); Stage.scaleMode = "noScale"; Stage.align = "TL"; var zol_menu = new meatClass.meatMenu(_root); var waitingTime_num = 7000; var waitInterval; var totalPicNum_num = 5; var leftEdge_num = 0; var curPicNum_num = 0; var curUnderPicNum_num = 0; var dcRecord = 0; var onEffect_bl = false; var pic_arr = new Array(); var curPic_mc; var borderColor_num = red; var fontColor_num = 16777215; var fontSize_num = 20; var picLoader_mcl = new MovieClipLoader(); var _pv_counter_mc = this.createEmptyMovieClip("pv_counter", -1); var _pv_counter_mcl = new MovieClipLoader(); if (border_color) { borderColor_num = Number(border_color); } // end if if (textheight) { textheight = Number(textheight); } // end if if (fontcolor) { fontColor_num = Number("0x" + fontcolor); } // end if if (fontsize) { fontSize_num = fontsize; } // end if borderwidth = Number(borderwidth); borderheight = Number(borderheight); var effectListener_obj = new Object(); var picListener_obj = new Object(); var dataListener_obj = new Object(); var picStatus_obj = new Object(); var dataLoaded_obj = new Object(); mx.events.EventDispatcher.initialize(picStatus_obj); mx.events.EventDispatcher.initialize(dataLoaded_obj); dataListener_obj.loadComplete = function () { trace ("data loaded.."); loadPics(); }; dataLoaded_obj.addEventListener("loadComplete", dataListener_obj); picListener_obj.onLoadInit = function (target_mc) { target_mc._width = borderwidth; target_mc._height = borderheight; target_mc._parent.bg_mc.removeMovieClip(); target_mc._parent._linkurl = pic_arr[target_mc._parent._name.slice(3)].link; target_mc._parent.onRelease = function () { getURL(this._linkurl, "_blank"); var _loc2 = String(flash.external.ExternalInterface.call("function(){return location.href;}")); _pv_counter_mcl.loadClip("http://pv.zol.com.cn/images/pvhit0010.gif?url=" + this._linkurl + "&refer=" + _loc2, _pv_counter_mc); }; }; picLoader_mcl.addListener(picListener_obj); picListener_obj.picLoaded = function () { trace ("pic loaded.."); drawButtons(); }; picListener_obj.buttonsReady = function () { trace ("buttons ready.."); curPicNum_num = 1; _root.infoField_txt.text = pic_arr[0].name; _root.descipt_txt.text = pic_arr[0].descripts; waitInterval = setInterval(_root, "changePic", waitingTime_num, curPicNum_num + 1); }; picStatus_obj.addEventListener("picLoaded", picListener_obj); picStatus_obj.addEventListener("buttonsReady", picListener_obj); if (!pics || !links) { var msg = meatClass.putInfoText.getInstance("图片数据有误"); } else { analyseData(); } // end else if |
|
http://www.ynqb.com | |
支持(15) | 反对(14) 顶端 底部 |
luoderui2004 发表于:2011/4/7 15:15:34 | 只看该作者 查看该作者主题
报纸
|
|
支持(14) | 反对(14) 顶端 底部 |
sanyoudouji 发表于:2011/4/7 17:02:26 | 只看该作者 查看该作者主题
地板
|
|
<a href=http://www.sanyoudouji.com.cn/info_315.html>斗鸡</a> | |
支持(14) | 反对(14) 顶端 底部 |
<a href=http://www.chenqitc.com>衬砌台车</a>http://www.chenqitc.com | |
支持(13) | 反对(12) 顶端 底部 |
支持(9) | 反对(8) 顶端 底部 |
<上一主题 | 下一主题 > |