智慧 + 毅力 = 无所不能

正确性、健壮性、可靠性、效率、易用性、可读性、可复用性、兼容性、可移植性...

导航

上一页 1 ··· 79 80 81 82 83 84 85 86 87 ··· 97 下一页

2009年12月2日

摘要: as3的作用域让人感觉有点乱,不知道改如何专业的解释,最近一直在看 python 源码分析,受了些启发。也许as3也遵守这种静态作用域规则,感觉所有的动态语言都有异曲同工之妙吧。 静态作用域(static scope,也叫lexical scope,字面作用域),是一种根据语言文本的位置确定变量引用的规则。我从wikipedia上找到一个解释:With static scope, a variab... 阅读全文

posted @ 2009-12-02 16:57 Bill Yuan 阅读(2243) 评论(2) 推荐(0) 编辑

摘要: 例:在程序中 直接 var txt:TextField = new TextField(); txt.text = "中国"; var tf:TextFormat = new TextFormat(); tf.font = "隶书"; txt.defaultTextFormat = tf; addChild(txt); 这样是显示不出来的。 需要用flash IDE 新建一个元件(deviceT... 阅读全文

posted @ 2009-12-02 16:38 Bill Yuan 阅读(1103) 评论(0) 推荐(0) 编辑

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//initializearrowvariablesvarleftArrow:Boolean=false;varrightArrow:Boolean=false;varupArrow:Boolean=... 阅读全文

posted @ 2009-12-02 16:36 Bill Yuan 阅读(2119) 评论(0) 推荐(0) 编辑

摘要: 转自:http://bbs.blueidea.com/viewthread.php?tid=2752268&page=1 通常我们存取数据有如下几种方式:Array, Object, 自定义类, 比较特殊的还有 Point, Rectangle 等。效率依次为(后面的数字是100万次存取运算平均所需时间): * 自定义类public属性135 | Point140 | Rectangle... 阅读全文

posted @ 2009-12-02 16:35 Bill Yuan 阅读(796) 评论(0) 推荐(0) 编辑

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--varfillType:String=GradientType.LINEAR;varcolors:Array=[0xFF0000,0xFFCC00];varalphas:Array=[1,0.1];/... 阅读全文

posted @ 2009-12-02 16:30 Bill Yuan 阅读(253) 评论(0) 推荐(0) 编辑

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--varmonClip:MovieClip=newMovieClip();monClip.name="monOcurrence";addChild(monClip);vardepart:Number=g... 阅读全文

posted @ 2009-12-02 16:29 Bill Yuan 阅读(2280) 评论(0) 推荐(0) 编辑

摘要: 正确区分自定义事件和自定义事件类,如果你只是简单地发送一个你自己的事件而不需要更多信息,可以使用[代码]来实现,我们看到自定义事件很简单,只需给Event类传入一个特殊的不与内置事件类型重复的字符串即可。 可以做如下测试: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighl... 阅读全文

posted @ 2009-12-02 16:17 Bill Yuan 阅读(866) 评论(0) 推荐(0) 编辑

摘要: 大家常有这样的疑问,RT,如何让让搜索引擎找到我的FLASH站点?我们知道robots最感兴趣的是*.html的文本格式文件,那么相对于flash站点,swf作为媒体文件,难怪得不到robots的宠爱呢!(我KAO, 宠 - 幸也是敏感词汇)那么我们最好针对网站做些许修改,让robots能够得到他感兴趣的东西!不多很好,结构划分很简单清晰!如果有可能我建议你在放一个目录,姑且叫做seo吧!那么在我... 阅读全文

posted @ 2009-12-02 15:23 Bill Yuan 阅读(475) 评论(0) 推荐(0) 编辑

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--varmic:Microphone=Microphone.getMicrophone();mic.setUseEchoSuppression(true);mic.setLoopBack(true);/... 阅读全文

posted @ 2009-12-02 15:19 Bill Yuan 阅读(568) 评论(0) 推荐(0) 编辑

摘要: LoaderInfo 类可提供有关已加载的 SWF 文件或图像文件(JPEG、GIF 或 PNG)的信息。 LoaderInfo 对象可用于任何显示对象。 提供的信息包括加载进度、加载程序的 URL 和加载内容、媒体的字节总数以及媒体的标示的高度和宽度。访问 LoaderInfo 对象: flash.display.Loader 对象的 contentLoaderInfo 属性 -- conten... 阅读全文

posted @ 2009-12-02 15:10 Bill Yuan 阅读(250) 评论(0) 推荐(0) 编辑

上一页 1 ··· 79 80 81 82 83 84 85 86 87 ··· 97 下一页