- UID
- 390132
- 在线时间
- 小时
- 积分
- 28274
- 帖子
-
- 离线
- 16578 天
- 注册时间
- 2007-8-23
|
没有事,我来试试写这个ASP
ASP:
- <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
- <%Response.Charset="utf-8"%>
- <%
- Dim FSO,path,text,fla_str
- Set FSO=Server.CreateObject("Scripting.FileSystemobject")
- path=Server.MapPath("test.txt")
- fla_str=Request.Form("fla_str")
- If fla_str<>Empty Then
- Set text=FSO.OpenTextFile(path,8)
- text.WriteLine(fla_str)
- End If
- Set text=FSO.OpenTextFile(path,1)
- Do Until text.AtEndOfStream
- Response.Write text.ReadLine & "<br>"
- Loop
- text.close
- Set FSO=nothing
- %>
-
复制代码
FLASH:
- var _lv:LoadVars = new LoadVars();
- _lv.onData = function(_str:String) {
- _str ? out_txt.htmlText=_str.split("\r\n").join("") : out_txt.text="加载失败!";
- };
- _lv.load("text.asp?k="+Math.random());
- r_btn.onRelease = function() {
- in_txt.text = "";
- };
- t_btn.onRelease = function() {
- if (in_txt.text != "") {
- _lv.fla_str = in_txt.text;
- trace(_lv.fla_str);
- _lv.sendAndLoad("text.asp?k="+Math.random(), _lv, "POST");
- }
- };
-
复制代码
在线测试地址:
http://www.flash023.cn/test/text/text.swf |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|