摘要: 点击 这里 下载swf 原素材123456789101112131415161718192021222324var temp:int; stage.addEventListener("mouseMove",rota);//为舞台添加一个监听 var tempNumsin:Number = 0; var tempNumcos:Number = 0; var ganX:Number =0; var g... 阅读全文
posted @ 2013-01-03 14:47 thero 阅读(183) 评论(0) 推荐(0)
摘要: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 stage.addEventLi... 阅读全文
posted @ 2013-01-03 14:46 thero 阅读(141) 评论(0) 推荐(0)
摘要: 代码为: 1 2 3 4 5 6 stage.addEventListener(KeyboardEvent.KEY_DOWN,getMsg); function getMsg(me:KeyboardEvent){ char_txt.text=String(... 阅读全文
posted @ 2013-01-03 14:46 thero 阅读(176) 评论(0) 推荐(0)
摘要: 代码为: fla素材下载,swf下载 1 2 3 4 5 6 7 8 9 10 in_txt.maxChars=10; in_txt.addEventListener("keyUp",chkNum); function... 阅读全文
posted @ 2013-01-03 14:45 thero 阅读(237) 评论(0) 推荐(0)
摘要: 鼠标拖动影片剪辑并拖动后,该影片剪辑外边框显示黄色 1 2 3 4 5 6 7 8 9 mc.addEventListener("mouseDown",godrag); mc.addEventListener("mouseUp",stopd... 阅读全文
posted @ 2013-01-03 14:45 thero 阅读(176) 评论(0) 推荐(0)
摘要: Math.floor(Math.random()*4); 随机产生一个0-4的随机数 下载fla文件,下载swf文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 go_btn.addEvent... 阅读全文
posted @ 2013-01-03 14:44 thero 阅读(367) 评论(0) 推荐(0)
摘要: 下载fla文件 ,下载swf文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23... 阅读全文
posted @ 2013-01-03 14:44 thero 阅读(316) 评论(0) 推荐(0)
摘要: 1234567891011search_btn.addEventListener("click",selectText); function selectText(me:MouseEvent){ var search_str = search_txt.text; var main_str = msg_txt.text; var beginIndex = main_str.indexOf(searc... 阅读全文
posted @ 2013-01-03 14:43 thero 阅读(146) 评论(0) 推荐(0)
摘要: 钟表的实现1234567891011121314var now :Date = new Date(); var hour = now.getHours(); var minutes = now.getMinutes(); var seconds = now.getSeconds(); this.addEventListener(Event.ENTER_FRAME,settime); functio... 阅读全文
posted @ 2013-01-03 14:42 thero 阅读(192) 评论(0) 推荐(0)
摘要: 1 2 3 4 5 6 7 8 a1.addEventListener("mouseMove",gog); function gog(me:MouseEvent) { Mouse.hide();//鼠标隐藏 }... 阅读全文
posted @ 2013-01-03 14:41 thero 阅读(221) 评论(0) 推荐(0)
摘要: 一个布尔值,表示影片剪辑是否处于活动状态。enabled的默认值为true。如果将enabled设置为false,则不再调用影片剪辑的callback方法和onaction事件处理函数,并禁用Over、Down和Up帧。enabled属性不影响影片剪辑的时间轴;如果影片剪辑正在播放,则会继续播放。影片剪辑会继续接收影片剪辑事件(例如mouseDown、mouseUp、keyDown和keyUp)。... 阅读全文
posted @ 2013-01-03 14:41 thero 阅读(105) 评论(0) 推荐(0)
摘要: 用法1:下面的示例每隔1000毫秒(1秒)调用一个匿名函数。1setInterval( function(){ trace("interval called"); }, 1000 );使用此函数时,需要注意在SWF文件中使用的内存。例如,从SWF文件中删除影片剪辑时,不会删除在其中运行的任何setInterval()函数。使用完setInterval()函数后,请始终使用clearInterval... 阅读全文
posted @ 2013-01-03 14:41 thero 阅读(268) 评论(0) 推荐(0)
摘要: 布尔值,指示当鼠标滑过其 buttonMode 属性设置为 true 的 Sprite 时是否显示手指形(手形光标)。 useHandCursor 属性的默认值是 true。 如果 useHandCursor 被设置为 true,则当鼠标滑过按钮 Sprite 时会显示用于按钮的手形光标。 如果 useHandCursor 为 false,则将改用箭头指针。 可以随时更改 useHandCurso... 阅读全文
posted @ 2013-01-03 14:40 thero 阅读(412) 评论(0) 推荐(0)
摘要: HttpSession session = request.getSession() 与 HttpSession session = request.getSession(true)在效果上没有区别。只不过 request.getSession() 让你少打几个字而已。request.getSession() 自动调用了 request.getSession(true)。而 request.get... 阅读全文
posted @ 2013-01-03 14:39 thero 阅读(239) 评论(0) 推荐(0)
摘要: 12345678910111213141516171819202122232425262728293031323334353637383940414243<%@ page language="java" import="java.util.*" pageEncoding="GBK"%> <%@taglib uri="/struts-tags" prefix="s" %> <% String pat... 阅读全文
posted @ 2013-01-03 14:19 thero 阅读(184) 评论(0) 推荐(0)