Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- titlenew_txt.text = _global.curtitletext;
- connew_txt.text = _global.curcontext;
- loader_mc._visible = false;
- titlenew_txt.onChanged = function() {
- _global.curtitletext = this.text;
- };
- connew_txt.onChanged = function() {
- _global.curcontext = this.text;
- };
- save_btn.onRelease = function() {
- if (connew_txt.text != "") {
- loader_mc._visible = true;
- var sendtextldr:LoadVars = new LoadVars();
- sendtextldr.ownerid = _root.ownerid;
- sendtextldr.userid = _root.viewerid;
- sendtextldr.title = titlenew_txt.text;
- sendtextldr.text = connew_txt.text;
- if (titlenew_txt.text == "") {
- sendtextldr.addtext = "1";
- } else {
- sendtextldr.addtext = "0";
- }
- sendtextldr.sendAndLoad("write.php",sendtextldr,"POST");
- sendtextldr.onLoad = function(success) {
- loader_mc._visible = false;
- if (success) {
- titlenew_txt.text = connew_txt.text=_global.curtitletext=_global.curcontext="";
- msg_mc.msgtext_mc.msg_txt.text="indlæg gemt";
- msg_mc.gotoAndPlay(2);
- }else{
- msg_mc.msgtext_mc.msg_txt.text="fejl";
- msg_mc.gotoAndPlay(2);
- }
- };
- }else{
- warn_mc.gotoAndPlay(2);
- }
- };
Add Comment
Please, Sign In to add comment