资源描述:
《flash as实例教程-会眨眼的美女》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、varthAStext:TextField=newTextField();thAStext.autoSize="left";thAStext.x=10;thAStext.y=4;thAStext.text="2009年9月21日AS3.0实例";varthAS_fmt:TextFormat=newTextFormat();thAS_fmt.bold=true;thAS_fmt.color=0x990000;thAS_fmt.font="Arial";thAS_fmt.size=14;thAStext
2、.setTextFormat(thAS_fmt);addChild(thAStext);varemailtext:TextField=newTextField();emailtext.autoSize="left";emailtext.x=280;emailtext.y=375;emailtext.text="http://bbs.jcwcn.com/forum-93-1.html";varemail_fmt:TextFormat=newTextFormat();email_fmt.bold=tru
3、e;email_fmt.color=0x990000;email_fmt.font="Arial";email_fmt.size=14;emailtext.setTextFormat(email_fmt);addChild(emailtext);varshadow:DropShadowFilter=newDropShadowFilter();shadow.distance=5;shadow.angle=45;shadow.color=0x000066;varslmtext:TextField=new
4、TextField();slmtext.autoSize="left";slmtext.x=110;slmtext.y=25;slmtext.text="AS3.0纯脚本画眨眼女孩";varslm_fmt:TextFormat=newTextFormat();slm_fmt.bold=true;slm_fmt.color=0xff0000;slm_fmt.font="方正行楷繁体";slm_fmt.size=30;slmtext.setTextFormat(slm_fmt);slmtext.filt
5、ers=[shadow];addChild(slmtext);varmyspe:Sprite=newSprite();functioneye(){myspe.graphics.clear();myspe.graphics.lineStyle(2,0x000000,1);myspe.graphics.moveTo(133,178);myspe.graphics.curveTo(116,166,104,183);myspe.graphics.moveTo(132,181);myspe.graphics.
6、curveTo(116,169,104,184);myspe.graphics.moveTo(132,184);myspe.graphics.curveTo(117,170,104,184);myspe.graphics.moveTo(128,193);myspe.graphics.curveTo(119,197,109,193);myspe.graphics.moveTo(126,179);myspe.graphics.curveTo(130,191,121,195);myspe.graphics
7、.moveTo(117,195);myspe.graphics.curveTo(106,184,116,175);myspe.graphics.lineStyle(0,0x000000,1);myspe.graphics.moveTo(115,179);myspe.graphics.curveTo(118,180,118,183);myspe.graphics.curveTo(116,185,113,183);myspe.graphics.curveTo(114,190,119,191);myspe
8、.graphics.curveTo(125,190,125,185);myspe.graphics.curveTo(124,177,115,179);myspe.graphics.lineStyle(2,0x000000,1);myspe.graphics.moveTo(151,185);myspe.graphics.curveTo(151,177,160,173);myspe.graphics.curveTo(168,171,173,176);myspe.graph