·可爱QQ动态表情制作实例剖析 ·第15章 摇盖式包装实例(上) ·PS实例:MM直发变为流行卷发的方法 ·静态路由与动态路由的概念及实例说明 ·Phototshop绘制简单商业包装实例 ·PS彩妆实例:美女烟熏妆 ·UML业务建模实例分析 ·教程实例用VRay创建冰钻石材质 ·实用 按键精灵傻瓜应用实例3则
注释1:创建一个XML对象。 注释2:创建一个FILE结点对象。 注释3:创建一个ID结点对象。 注释4:分别将FILE结点对象和ID结点对象增加到XML对象中去。 注释5:保存传送的ID号到临时变量。 注释6:设置onLoad响应函数。 注释7:将从服务器返回的结果显示出来。 注释8:利用sendAndLoad()函数,将Flash端的XML对象发送到服务器端,并接收从服务器端返回的XML对象。
3、在Button filebtn2的Action Script面板上增加如下的语句:
on(release){ fileXml2 = new XML(); fileElement2 = fileXml2.createElement("FILE"); idElement2 = fileXml2.createElement("ID"); idNode2 = fileXml2.createTextNode("id"); idNode2.nodeValue = _root.fileId2; idElement2.appendChild(idNode2); fileElement2.appendChild(idElement2); fileXml2.appendChild(fileElement2); _root.fileNowId = _root.fileId2; fileRepley2 = new XML(); fileRepley2.onLoad = onFileReply2; function onFileReply2 (filesuccess2) { if (filesuccess2) { _root.filetxt = fileRepley2.firstChild.attributes.title + fileRepley2.firstChild.attributes.author + fileRepley2.firstChild.attributes.content + fileRepley2.firstChild.attributes.reply; _root.gotoAndPlay("content"); } } fileXml2.sendAndLoad("http://localhost/xmlbbs/file.asp", fileRepley2); }
4、在Button filebtn3的Action Script面板上增加如下的语句:
on(release){ fileXml3 = new XML(); fileElement3 = fileXml3.createElement("FILE"); idElement3 = fileXml3.createElement("ID"); idNode3 = fileXml3.createTextNode("id"); idNode3.nodeValue = _root.fileId3; idElement3.appendChild(idNode3); fileElement3.appendChild(idElement3); fileXml3.appendChild(fileElement3); _root.fileNowId = _root.fileId3;
fileRepley3 = new XML(); fileRepley3.onLoad = onFileReply3; function onFileReply3 (filesuccess3) { if (filesuccess3) { _root.filetxt = fileRepley3.firstChild.attributes.title + fileRepley3.firstChild.attributes.author + fileRepley3.firstChild.attributes.content + fileRepley3.firstChild.attributes.reply; _root.gotoAndPlay("content"); } } fileXml3.sendAndLoad("http://localhost/xmlbbs/file.asp", fileRepley3); } ·PS相片处理实例 芙蓉姐姐大变身 ·可爱QQ动态表情制作实例剖析 ·第15章 摇盖式包装实例(上) ·PS实例:MM直发变为流行卷发的方法 ·静态路由与动态路由的概念及实例说明 ·Phototshop绘制简单商业包装实例 ·PS彩妆实例:美女烟熏妆 ·UML业务建模实例分析 ·教程实例用VRay创建冰钻石材质 ·实用 按键精灵傻瓜应用实例3则
5、在Button filebtn4的Action Script面板上增加如下的语句:
on(release){ fileXml4 = new XML(); fileElement4 = fileXml4.createElement("FILE"); idElement4 = fileXml4.createElement("ID"); idNode4 = fileXml4.createTextNode("id"); idNode4.nodeValue = _root.fileId4; idElement4.appendChild(idNode4); fileElement4.appendChild(idElement4); fileXml4.appendChild(fileElement4); _root.fileNowId = _root.fileId4;
fileRepley4 = new XML(); fileRepley4.onLoad = onFileReply4; function onFileReply4 (filesuccess4) { if (filesuccess4) { _root.filetxt = fileRepley4.firstChild.attributes.title + fileRepley4.firstChild.attributes.author + fileRepley4.firstChild.attributes.content + fileRepley4.firstChild.attributes.reply;
上一篇:Cool!Flash制作炫丽的图片特效
下一篇:Flash制作马赛克效果
|