摘要: 先贴个地址:http://210.240.189.212/multimediadesign/FlashCS3_books/Flash_%B0%CA%B5e%A7Y%BE%D4%A4O/4_%C1%E4%BDL%A8%C6%A5%F3%B3B%B2z%A7%DE%AAk.htmUNIT4.1 限制使用者可输入的字数 UNIT4.2 获取键盘按键的字符码与按键码 UNIT4.3 判断键盘上的方向键 UNIT4.4 利用键盘按键来缩放并移动影片剪辑 UNIT4.5 利用键盘按键来控制影片剪辑的播放 UNIT4.6 利用键盘按键操控地图 UNIT4.7 小朋友的拼字测验 UNIT4.8 ... 阅读全文
posted @ 2012-05-20 23:18 sungoody 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 7-1 显示动画影片的载入完成百分比this.stop();var ballArray=[ball1_mc,ball2_mc,ball3_mc,ball4_mc,ball5_mc,ball6_mc,ball7_mc,ball8_mc,ball9_mc,ball10_mc];var myInfo:LoaderInfo=this.loaderInfo;function chgBall(num){for (var i=0;i<num;i++){ballArray[i].gotoAndStop(2);}}this.addEventListener("enterFrame", 阅读全文
posted @ 2012-05-20 23:08 sungoody 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 3-10 线段涂鸦板paper_mc = new MovieClip();this.addChild(paper_mc);Mouse.hide();paint_mc.startDrag(true);paper_mc.graphics.lineStyle(10,0xFF0000,1);//用刷子的元件代替鼠标:stage.addEventListener("mouseDown",movePen);function movePen(me:MouseEvent){paper_mc.graphics.moveTo(this.mouseX, this.mouseY);}stage.a 阅读全文
posted @ 2012-05-20 23:05 sungoody 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1、鼠标手指状指针的使用设置,将鼠标指针变换为手指状。 1 boy_mc.buttonMode = true; 2 boy_mc.addEventListener("mouseOver", overMc); 3 function overMc(me:MouseEvent){ 4 boy_mc.useHandCursor = false; 5 } 6 boy_mc.addEventListener("mouseDown", downMc); 7 function downMc(me:MouseEvent){ 8 boy_mc.useHandCursor = 阅读全文
posted @ 2012-05-20 22:50 sungoody 阅读(376) 评论(0) 推荐(0) 编辑