9、在Button filebtn8的Action Script面板上增加如下的语句:
on(release){ fileXml8 = new XML(); fileElement8 = fileXml8.createElement("FILE"); idElement8 = fileXml8.createElement("ID"); idNode8 = fileXml8.createTextNode("id"); idNode8.nodeValue = _root.fileId8; idElement8.appendChild(idNode8); fileElement8.appendChild(idElement8); fileXml8.appendChild(fileElement8); _root.fileNowId = _root.fileId8;
fileRepley8 = new XML(); fileRepley8.onLoad = onFileReply8; function onFileReply8 (filesuccess8) { if (filesuccess8) { _root.filetxt = fileRepley8.firstChild.attributes.title + fileRepley8.firstChild.attributes.author + fileRepley8.firstChild.attributes.content + fileRepley8.firstChild.attributes.reply; _root.gotoAndPlay("content"); } } fileXml8.sendAndLoad("http://localhost/xmlbbs/file.asp", fileRepley8); }
10、在Button filebtn9的Action Script面板上增加如下的语句:
on(release){ fileXml9 = new XML(); fileElement9 = fileXml9.createElement("FILE"); idElement9 = fileXml9.createElement("ID"); idNode9 = fileXml9.createTextNode("id"); idNode9.nodeValue = _root.fileId9; idElement9.appendChild(idNode9); fileElement9.appendChild(idElement9); fileXml9.appendChild(fileElement9); _root.fileNowId = _root.fileId9;
fileRepley9 = new XML(); fileRepley9.onLoad = onFileReply9; function onFileReply9 (filesuccess9) { if (filesuccess9) { _root.filetxt = fileRepley9.firstChild.attributes.title + fileRepley9.firstChild.attributes.author + fileRepley9.firstChild.attributes.content + fileRepley9.firstChild.attributes.reply; _root.gotoAndPlay("content"); } } fileXml9.sendAndLoad("http://localhost/xmlbbs/file.asp", fileRepley9); } ·PS相片处理实例 芙蓉姐姐大变身 ·可爱QQ动态表情制作实例剖析 ·第15章 摇盖式包装实例(上) ·PS实例:MM直发变为流行卷发的方法 ·静态路由与动态路由的概念及实例说明 ·Phototshop绘制简单商业包装实例 ·PS彩妆实例:美女烟熏妆 ·UML业务建模实例分析 ·教程实例用VRay创建冰钻石材质 ·实用 按键精灵傻瓜应用实例3则
11、在Button filebtn10的Action Script面板上增加如下的语句:
on(release){ fileXml10 = new XML(); fileElement10 = fileXml10.createElement("FILE"); idElement10 = fileXml10.createElement("ID"); idNode10 = fileXml10.createTextNode("id"); idNode10.nodeValue = _root.fileId10; idElement10.appendChild(idNode10); fileElement10.appendChild(idElement10); fileXml10.appendChild(fileElement10); _root.fileNowId = _root.fileId10;
fileRepley10 = new XML(); fileRepley10.onLoad = onFileReply10; function onFileReply10 (filesuccess10) { if (filesuccess10) { _root.filetxt = fileRepley10.firstChild.attributes.title + fileRepley10.firstChild.attributes.author + fileRepley10.firstChild.attributes.content + fileRepley10.firstChild.attributes.reply; _root.gotoAndPlay("content"); } } fileXml10.sendAndLoad("http://localhost/xmlbbs/file.asp", fileRepley10); }
12、在场景的第三帧上增加关键帧,并设置此帧的标签为“content”,在此帧的Action Script面板上面增加如下语句:stop();
利用文本框工具在此帧的场景中拉一个文本框用来显示主题的正文,类型为Dynamic type,var变量设置为“filetxt”。
C、Asp端
新建一个Asp文件,保存为file.asp,增加如下的内容:
上一篇:Cool!Flash制作炫丽的图片特效
下一篇:Flash制作马赛克效果
|