摘要: 在AS2.0时代,函数的参数没有一个严谨的定义,也就是说我们可以传入任意多的参数,然而到了AS3.0时代,我们必须严格的遵守参数的定义法,但是我们并没有丢失函数参数传入的灵活性,AS3.O提供了一个新的关键字…(rest),用法(…rest)。 我们可以把…rest看成一个参数集合,它可以由任何参数类型组成,其实它的类型是Array,也就是它拥有数组所有的成员属性和方法,它的长度由 传入参数的个数而定,还要说明的是我们应用(…rest)它的同时,函数同样可以拥有属于它自己的预定义参数,下面看一个例子:代码Code highlighting produced by Actipro CodeHig 阅读全文
posted @ 2010-12-06 11:33 liushan 阅读(647) 评论(0) 推荐(0)
摘要: 1.使用CSS插入图片:[代码] 注意:ie8不支持,用CSS hack针对IE6写 2.使用8位PNG图片,(要么就全透明,要么就不透明) 摘抄:http://blog.gulu77.com/?p=147 阅读全文
posted @ 2010-12-06 11:29 liushan 阅读(149) 评论(0) 推荐(0)
摘要: 注:从本人以前的51CTO的BLOG转过来~用Adobe Flash Builder 4 来编译 下载Adobe Flash Builder 4 打开(下载链接)http://developer.longtailvideo.com/trac/changeset/1179/tags/mediaplayer-5.2.rc1?old_path=%2F&format=zip下载并把压缩文件里的tags/mediaplayer-5.2.rc1并解压到 d:/jwplayer目录 打开Adobe Flash Builder 4 建立一个名为jwplayer的AS 工程,工程目录为d:/jwplayer 在 阅读全文
posted @ 2010-12-06 11:26 liushan 阅读(2827) 评论(2) 推荐(0)
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--this.addEventListener(MouseEvent.MOUSE_DOWN,funA,false,2);this.addEventListener(MouseEvent.MOUSE_DOWN,funB,false,1);functionfunA(evt:MouseEvent):void{trace("A!");evt.stopImmediatePropagation();}functi 阅读全文
posted @ 2010-12-06 11:16 liushan 阅读(290) 评论(0) 推荐(0)
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--?php/***把二维表分解成多级数组,做菜单时常用*(可用于无线分级菜单,无限级留言)*@authorLonely(从以前BLOG转过来的)*|----------------------|*|id|parentId|value|*|----------------------|*parentId存id的值,表示该项的父项是id为该项parentId的值的那个记录*如上表:parentId为父 阅读全文
posted @ 2010-12-06 11:11 liushan 阅读(1160) 评论(0) 推荐(2)
摘要: jquery ui 的 dialog 在IE8下会出现不该出现的滚动条,在JQUI的FORUM上SEARCH下,发现也有人碰上,当解决办法就是把滚动条隐藏,非常不满意..此问题在UI1.7就出现,到了UI1.8也未修复,真不知道该怎么说好.. JQUI 开发提交BUG的帖子:http://dev.jqueryui.com/ticket/3623解决办法相当不科学~ 我的解决办法,个人感觉好过那个,因为我只隐藏横的滚动条,呵呵 附上修改的代码: 修改:jquery.ui.dialog.js代码Code highlighting produced by Actipro CodeHighlighte 阅读全文
posted @ 2010-12-06 10:58 liushan 阅读(854) 评论(0) 推荐(0)
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--htmlheadtitle/title/headbodydivid="contentq"onclick="bb(event)"!--显示传入event对象--fasdf/div/bodyscripttype="text/javascript"functionbb(e){alert(e);}varcontainer=document.getElementB 阅读全文
posted @ 2010-12-06 00:55 liushan 阅读(300) 评论(0) 推荐(0)