⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editor.as

📁 呵呵 很好的 大家都来看看啊
💻 AS
字号:
Editor.ftext="";
curFace=1;
cicon=1;
username="";
subject="";

createEmptyMovieClip("FacesSel",2);//表情选择
FacesSel._x=180; 
FacesSel._y=144;
FacesSel.attachMovie("mrect","mrect",0);
FacesSel.mrect._y=9;
FacesSel.mrect.gx=39;

FacesSel.mrect.onEnterFrame=function(){
	this.dx=this.gx-this._x;
	this._x+=this.dx/4;
	this._yscale=100-Math.ABS(this.dx/2);
}

for(var i=1;i<16;i++){
	FacesSel.attachMovie("f"+i,"face"+i,i);
	var theFace=eval("FacesSel.face"+i);
		theFace._x=i*30;
		theFace.fN=i;
		theFace.onRollOver=function(){
			this._parent.mrect.gx=this._x+9;
			curFace=this.fN;
		}
}

createEmptyMovieClip("IconSel",3); //图标选择
IconSel.attachMovie("icon"+cicon,"iconM",1);
IconSel._x=127;
IconSel._y=277;

preBtn.onRelease=function(){
	if(cicon>1) cicon--;
	IconSel.attachMovie("icon"+cicon,"iconM",1);
	IconSel._x=127;
	IconSel._y=277;
}
nextBtn.onRelease=function(){
	if(cicon<23) cicon++;
	IconSel.attachMovie("icon"+cicon,"iconM",1);
	IconSel._x=127;
	IconSel._y=277;
}

sendBTN.onRelease=function(){ //发送新增留言
	var sstr="........."
	var errmsg="";
	if(username=="") errmsg=errmsg+" 昵称 ";
	if(subject=="") errmsg=errmsg+" 标题 ";
	if(Editor.ftext=="") errmsg=errmsg+" 留言内容 ";
	if(errmsg!=""){
		attachMovie("SendingBox","sendBox",10);
		sendBox._x=146;
		SendBox._y=100;
		sendBox.sText="您的"+errmsg+"不能为空!";
		sendBox.btn.text="OK";
		sendBox.btn.onRelease=function(){
			this._parent.removeMovieClip();
		}
		return;
	}

	var myLoadVars=new LoadVars();
		myLoadVars.username=username;
		myLoadVars.subject=subject;
		myLoadVars.ftext=Editor.ftext;
		myLoadVars.curFace=curFace;
		myLoadVars.cicon=cicon;
		myLoadvars.email=email;
		myLoadvars.inurl=inurl;
		myLoadvars.icq=icq;
		myLoadvars.SendFlag=0;
		myLoadvars.sendAndLoad(_root.URLpreFix+"add.aspx",myLoadvars,"POST");
		
		myLoadvars.onLoad=function(success){
			if(success){
				if(this.SendFlag==1){
					_root.Body.attachMovie("msglist","msgList",1);	
				}
				else{
					sendBox.onEnterFrame=null;
					sendBox.sText="异常错误#1!";
					sendBox.btn.text="OK";
				}
			}
			else{
					sendBox.onEnterFrame=null;
					sendBox.sText="异常错误#2!";
					sendBox.btn.text="OK";
			}	
		}
		
		attachMovie("SendingBox","sendBox",10);
		sendBox._x=146;
		SendBox._y=100;
		sendBox.onEnterFrame=function(){
			sendBox.sText="正在发送数据"+sstr.substr(0,random(6));
		}
		sendBox.btn.text="Cancel";
		sendBox.btn.onRelease=function(){
				this._parent.removeMovieClip();
			}
		

}
resetBTN.onRelease=function(){
	Editor.ftext="";
}
exitBTN.onRelease=function(){
	_root.Body.attachMovie("msglist","msgList",1);
}

stop();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -