如何使用flash和数据库时时交互啊我是通过jsp是把flash嵌入到网页中还是怎样实现?怎样把flash嵌入到jsp
展开全部
利用flash 的 loadvars 对象将 输入文本内容传达过去
a_txt ,b_txt ,sub_btn
sub_btn.onRelease = function(){
var data_lv = new LoadVars();
data_lv.username = a_txt.text;
data_lv.password = b_txt.text;
data_lv.onLoad = function(success){
if(success){
trace("数据提交成功!");
if(this.result=="true"){
trace("yes");
}else{
trace("no");
}
}else{
trace("数据提交失败!");
}
}
data_lv.sendAndLoad("b.asp",data_lv,"post");
}
a_txt ,b_txt ,sub_btn
sub_btn.onRelease = function(){
var data_lv = new LoadVars();
data_lv.username = a_txt.text;
data_lv.password = b_txt.text;
data_lv.onLoad = function(success){
if(success){
trace("数据提交成功!");
if(this.result=="true"){
trace("yes");
}else{
trace("no");
}
}else{
trace("数据提交失败!");
}
}
data_lv.sendAndLoad("b.asp",data_lv,"post");
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询