组件+PHP+MYSQL的新闻发布系统
作者 佚名技术
来源 服务器技术
浏览
发布时间 2012-07-12
ne"); } else { trace("no"); //testa = myaa.inlogin.createChild("Button", "test", {label:myphp.name0}); } }; addphp.sendAndLoad(url+".php", addphp, "POST"); // } myphp = new LoadVars(); function loadphp(url:String, myname0:String, mypass0:String) { myloading.text = "loading data..."; //loginnow(); myphp.onLoad = function(success) { if (success) { myloading.text = ""; //trace("load done"); //检验登陆 if (myname0 == myphp.name0 && mypass0 == myphp.passwords) { //trace("ok"); loginnow(); myloading.move(70, 50); myloading.text = "welcome "+myphp.name0; //testa = myaa.inlogin.createChild("Button", "clear", {label:"fit"}); } else { inmyname.text = ""; inmypass.text = ""; trace("no"); //testa = myaa.inlogin.createChild("Button", "test", {label:myphp.name0}); } } }; myphp.sendAndLoad(url+".php", myphp, "POST"); // } var root = this; myaa.createChild("View", "innew", {label:".: News :."}); myaa.createChild("View", "inlogin", {label:".: Login :."}); myaa.createChild("View", "coming", {label:".: Coming soon :."}); var mynamelabel = myaa.inlogin.createChild("Label", "myname"); inposition(mynamelabel, "name:", x, y); var myloading = myaa.inlogin.createChild("Label", "loading"); myloading.autoSize = true; myloading.text = ""; var mypasslabel = myaa.inlogin.createChild("Label", "mypass"); inposition(mypasslabel, "password:", x, y+32); var copyright = myaa.inlogin.createChild("Label", "copy"); copyright.autoSize = true; copyright.move(75, 200); copyright.text = "Copyright ?ShuhanKuang\n All Rights Reserved"; var inmyname = myaa.inlogin.createChild("TextInput", "namein"); //trace(typeof (inmyname.text)); inmyname.move(x+65, y); var inmypass = myaa.inlogin.createChild("TextInput", "passin"); inmypass.password = true; inmypass.move(x+65, y+30); var surebtn = myaa.inlogin.createChild("Button", "sure", {label:"登陆"}); surebtn.setSize(50, 20); surebtn.move(x+60, y+60); var clearbtn = myaa.inlogin.createChild("Button", "clear", {label:"清除"}); clearbtn.setSize(50, 20); clearbtn.move(x+120, y+60); var loginform:Object = new Object(); myaa.selectedIndex = 1; loginform.click = function(eventObj) { //从标签来取的动作 var nowlabel = (eventObj.target.label); trace(nowlabel); if (nowlabel == "登陆") { if (checkin(inmyname) && checkin(inmypass)) { trace("Load php now"); loadphp("checkmeb", inmyname.text, inmypass.text); } } else if (nowlabel == "清除") { clearin(inmyname); clearin(inmypass); //testa.removeMovieClip(); trace("clear"); } else if (nowlabel == "返回") { loginout(); } }; surebtn.addEventListener("click", loginform); clearbtn.addEventListener("click", loginform); /////////////////news//////// var newinfo = myaa.innew.createChild("TextArea", "newarea"); newinfo.move(2, 2); newinfo.hScrollPolicy = "off"; newinfo.wordWrap = true; newinfo.editable = false; //newinfo.backgroundColor = 0x123456; newinfo.multiline = true; newinfo.setSize(294, 250); var mynewsinfo = new LoadVars(); loadnews("show"); function loadnews(url:String) { //载入新闻的内容 //trace(1111111111) mynew |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: 不用AS的旋转效果下一篇: AS签名等一些常用AS代码
关于组件+PHP+MYSQL的新闻发布系统的所有评论