flash调用asp生成的txt的例子
发布:李淳 | 发布时间: Thursday, September 03, 2009as----
System.useCodepage = true;
swft = new LoadVars();
//创建一个LoadVars对象的实例swft
swft.load("http://www.ilichun.com/flash.xml");
//swft实例载入的对象是flash.txt文本文件
swft.onLoad = function(a) {
if (a) {
cnrose = swft.wenben;
//如果载入文件成功,FLASH动态文本中的值即为swft实例载入的t1.txt文件中wenben的内容
}
}
记得动态文本变量名:cnrose
asp-------------------
<%
if request("action")="do" then
dim conn,connstring
fname="index1.txt"
nr1=request("name")
nr2=request("pass")
nr= "用户名:"&nr1+" 密码:"&nr2
Set fso = Server.CreateObject("Scripting.FileSystemObject")
filePath=server.mappath("/")
Set f = fso.CreateTextFile(filePath& "\" & fname)
f.WriteLine nr
f.close
end if
%>
<% if request("action")="do" then%>
<a href="index1.txt">点击这里查看</a>
<%end if%>
<form id="form1" name="form1" method="post" action="?action=do">
<label>
用户名
<input name="name" type="text" id="name" />
密码
</label>
<label>
<input name="pass" type="text" id="pass" />
</label>
<label>
<input type="submit" name="Submit" value="提交" />
</label>
</form>
- 相关文章:
动态flash调用图片 (2009-6-28 21:36:41)
Adobe Flash CS4 官方简体精简绿色版 (2009-6-25 14:50:43)
flash cs4 序列号 注册码 (2009-3-2 2:38:28)
flash加密软件 最新更新SWFEncrypt5.04, SWF Encrypt 5.04 (2008-12-30 0:8:35)
推荐一个超级好玩的flash过山车游戏 (2008-12-15 23:17:16)
FLASH调用外部文件详解 (2008-12-15 22:50:5)
做全FLASH站自适应浏览器的解决方案 (2008-12-15 22:48:27)
flash音乐播放器 (2008-10-4 18:23:27)
flash在网页中的透明和菜单功能参数 (2008-10-4 18:23:27)
让你的Flash在指定域名/网址中才能播放 (2008-10-4 17:37:30)
发表评论
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。





