随笔分类 -  as3.0

摘要:package { import flash.display.MovieClip; import flash.events.MouseEvent; import flash.events.Event; import flash.ui.Mouse; /* *author : SinSoul *blogs: http://www.cnblogs.com/sinsoul */ public c... 阅读全文
posted @ 2010-11-05 14:44 sinsoul 阅读(222) 评论(0) 推荐(0) 编辑
摘要:package { import flash.display.MovieClip; import flash.filters.GlowFilter; import flash.utils.Timer; import flash.events.TimerEvent; [SWF(width="1024",height="768")] /* *author : SinSoul *blogs: ht... 阅读全文
posted @ 2010-11-05 14:40 sinsoul 阅读(253) 评论(0) 推荐(0) 编辑
摘要:quedin.addEventListener(MouseEvent.CLICK,add1);function add1(e:MouseEvent):void{k3.text=String(jia(int(k1.text),int(k2.text)));}function jia(a:int,b:int):int{return (a+b);} 阅读全文
posted @ 2010-11-05 14:39 sinsoul 阅读(195) 评论(0) 推荐(0) 编辑
摘要:package { import flash.display.MovieClip; import flash.events.MouseEvent; import flash.events.Event; /* *author : SinSoul *blogs: http://www.cnblogs.com/sinsoul */ public class binlian extends MovieC... 阅读全文
posted @ 2010-11-05 14:37 sinsoul 阅读(189) 评论(0) 推荐(0) 编辑
摘要:stage.addEventListener(KeyboardEvent.KEY_DOWN,yuan); function yuan(e:KeyboardEvent):void { switch (e.keyCode) { case 37 : //mc.x-=10; x-=10等于下面的式子mc.x=duo_mc.x-10; mc.x=mc.x-10; break; case 38 : //mc... 阅读全文
posted @ 2010-11-05 14:35 sinsoul 阅读(282) 评论(0) 推荐(0) 编辑
摘要:package {import flash.display.MovieClip;public class cheng extends MovieClip {public function cheng() {for (var a:int=1; a<10; a++) {var b:String="";for (var c:int=1; c<=a; c++) {b=b+(c+"*"+a+"=... 阅读全文
posted @ 2010-11-05 13:59 sinsoul 阅读(259) 评论(0) 推荐(0) 编辑
摘要:package { import flash.display.MovieClip; import flash.events.Event; import flash.events.KeyboardEvent; /* *author : SinSoul *blogs: http://www.cnblogs.com/sinsoul */ public class Main extends Mo... 阅读全文
posted @ 2010-11-05 13:56 sinsoul 阅读(315) 评论(0) 推荐(0) 编辑
摘要:package { import flash.display.MovieClip; import flash.events.Event; import flash.display.Shape; /* *author : SinSoul *blogs: http://www.cnblogs.com/sinsoul */ public class bai extends MovieClip ... 阅读全文
posted @ 2010-11-04 18:36 sinsoul 阅读(371) 评论(0) 推荐(0) 编辑
摘要:如果想使一个小球不停的旋转,可以使用以下方法 阅读全文
posted @ 2010-11-04 16:41 sinsoul 阅读(318) 评论(0) 推荐(0) 编辑