刘恩佑主演的谍战片:100-如何用FLASH实现表单的提交!急!急!急!在线等!

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/29 06:52:54
如何用falsh 实现信息的反馈呢!这个问题困扰了我好几天了。
我的要求是,下载到本地的flash 然后填写反馈信息,然后可以提交到网络数据库!
请高手们详细说明!
在下不胜感激!
最好是写现源代码!
谢谢!
我说的是:下载到本地的flash, 不是嵌入到网页内的flash.
请高手贴出详细的说明和代码!100分就是你的了!
注意!是下载到本的flash,然后在flash 中填写反馈信息
点击提交,然后写入到数据库!请给出具体的例子及源代码!
不胜感激!
在线等!

FLASH连接数据库〔 作者:佚名 转贴自:http://www.webjx.com 点击数:207 更新时间:2006-1-25 文章录入:dezai 〕 德仔工作室Web技术电子期刊已出版至2006第四期,欢迎您下载阅读! 第一期 第二期 第三期 第四期 第五期 System.useCodepage = true;

_global.arrTitle = new Array(5);
_global.arrImage = new Array(5);
_global.arrUrl = new Array(5);

function loadxml()
{
myxml = new XML();
myxml.ignoreWhite = true;
myxml.load("http://192.168.0.244/8mchina2/flash/tvindex.aspx");
myxml.onLoad = function(success)
{
if (success)
{
len = myxml.firstChild.childNodes.length;
for(i=0; i<5; i++)
{
_global.arrTitle[i] = myxml.firstChild.childNodes[i].attributes.title;
_global.arrImage[i] = myxml.firstChild.childNodes[i].attributes.image;
_global.arrUrl[i] = myxml.firstChild.childNodes[i].attributes.url;
eval("_root.txt" + (i+1)).text = _global.arrTitle[i];
}
}
else
{
loadxml();
}
};
}
loadxml();

aspx文件处理:

<%@ Import Namespace="Bmhd.Components.Components" %>
<%@ Import Namespace="Bmhd.Components" %>
<%@ Page language="c#" Codebehind="TVIndex.aspx.cs" AutoEventWireup="false" Inherits="Bmhd.Web.xml.TVIndex" %><?xml version="1.0" encoding="gb2312" ?>
<xml>
<asp:Repeater id="Repeater1" runat="server">
<ItemTemplate>
<item id="<%# DataBinder.Eval(Container.DataItem, "ID")%>" title="<%# DataBinder.Eval(Container.DataItem, "Title")%>" url="<%# DataBinder.Eval(Container.DataItem, "Link")%>" image="<%# TopicPicture.GetPictureUrl(DataBinder.Eval(Container.DataItem, "ImageUrl").ToString())%>" />
</ItemTemplate>
</asp:Repeater>
</xml>

后台代码:

private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
//
Response.ContentType = "Text/XML";
Repeater1.DataSource = Topics.GetTop5TVIndex().Topics;
Repeater1.DataBind();
}

flash里action调用JS方法
例如
1.html
---------
<script language="javascript">
function dosubmit(obj){
obj.submit();
}
</script>

flash.swf
------------
[buttonA]->action->getUrl ("javascript:dosubmit('document.form1')", "_self");
这样
buttonA放到1.html内后,action则调用1.html内的JS方法dosubmit();会提交1.html页面内 form1

例如
1.html
---------
<script language="javascript">
function dosubmit(obj){
obj.submit();
}
</script>

flash.swf
------------
[buttonA]->action->getUrl ("javascript:dosubmit('document.form1')", "_self");
这样
buttonA放到1.html内后,action则调用1.html内的JS方法dosubmit();会提交1.html页面内 form1