2007年12月
晚上看一个FTP上DOWN下来的网页文档,由于从FTP下来的文件名被加上上传者的ID了,于是我在原来的网页内部点击原来的URL时,URL失效了,阅读器来相当的不爽,怎么办呢?
问题就是要把文件名后面的ID部分去掉,不过有大概100个网页文件,怎样偷懒呢?
很自然的就想到了SHELL ,然而这次,稍稍动动脑子,想到其实连SHELL 都不必写,只要用一个命令就可以了,rename命令加上wildcard就可以了,因为这些网页的文件名很有规律,都一样长,于是我就用了一条命令就代替了原来的SHELL PROGRAMMING的计划
阅读全文>
发表于 @ 2007年12月29日 23:08:00|评论(loading...)|编辑
导读:
还记得前几天说过的用Bitmap来管理纸牌游戏的帖子嘛,作者又发出了他最近的代码,介绍如下
At the moment the prototype has all messages and a game over screen with the score recap. Now I want to include Kongregate's highscores APIand then I'll releae the complete tutorial.
到现在为止,纸牌游戏的内容便告一段落了。下面我们将发布完整的教程,下面是代码 Meanwhile, here it is the code: ACTIONSCRIPT: importflash.display.BitmapData importflash.geom.Rectangle importflash.geom.Point importflash.filters.DropShadowFilter importflash.filters.GlowFilter varcard_阅读全文>
发表于 @ 2007年12月29日 20:51:00|评论(loading...)|编辑
导读: 之前做过的一些项目的程序中,一直会遇到类中方法的调用范围的一些问题, 如以下这段代码是当flash改变大小时执行一个layOut函数: class mymovie extends MovieClip { function mymovie() { var myListener:Object = new Object(); myListener.onResize =function () { layOut(); trace("this1:"+this); } Stage.addListener(myListener); } private function layOut(){ trace("this2:"+this); }; } trace结果:[object,object],第二个未执行。 但使用时会发现,onResize函数中并不能调用layOut函数,应该它调用的是myListener范围内的layOut。所以我之前的用了一个比较傻方法,给myListener定义一个动态属性thisObj指向类mym阅读全文>
发表于 @ 2007年12月29日 20:43:00|评论(loading...)|编辑
Converted Tween Animation Class in AS3
是一个挺酷的过度效果,大家可以到原站点看看
http://www.reflektions.com/miniml/template_permalink.asp?id=441
A few months ago I had released an easing tween class that I wrote in AS2 based on the easing formula posts. The basic principle is to get a clip to move, scale or rotate from point A to B with different movement equations. this is an alternative class similar to the fuse kit, the Robert Penner equations, the Zeh Fernando MC tween, the Zigo/Laco or the t阅读全文>
发表于 @ 2007年12月29日 20:39:00|评论(loading...)|编辑
Well I wanted to put together a final post of 2007 and reflect on the apps I have built, not at work but on my spare time. As I was putting together the list I was a bit amazed at what I have done this year. I have a list below, and all of the Adobe AIR apps have been updated to the new beta 3 release.
这是作者今年的作品回顾,怎么样你也有吧?拿出来秀一下!
Filter ExplorerI wanted to utilize Adobe’s Style Explorer and since I was using the filters in flex a lot I wanted an easy way to build them. This also got some tr阅读全文>
发表于 @ 2007年12月29日 20:22:00|评论(loading...)|编辑
导读: The mouse-hover and selection boxes in a Flex TileList only have styles for changing the colors. If you want more advanced things like changing the shape or having a border you'll need to extend the TileList class and override two methods.
一般的下拉列表对选中时的样式的支持不是很完善,要想得到理想的效果其实也不难,在基类的基础上稍加修改就可以了,可以参照下面的代码,效果图也很理想。 drawSelectionIndicator- Draws the box around the currently selected item. drawHighlightIndicator- Draws the box for the mouse-over item public class RoundedSelectionTileLi阅读全文>
发表于 @ 2007年12月29日 20:18:00|评论(loading...)|编辑
导读: I have already published a tutorial about BitmapData in the post Shuffle an image with BitmapData, but this time I want to show you how to manage a deck of cards using BitmapData. Managing a deck of cards is very useful because there are tons of card games you can publish once you have a deck of cards in your library.
我在前面的教程中曾讲过如何使用bitmapdata来洗牌,这回我要向大家展示的是,如何使用这个类来管理一堆的卡片
管理一堆的卡片式很有用的事情,因为库里有了这个之后,你就可以制作任何的卡片游戏了
The first thing you need is an image with all cards like this one:阅读全文>
发表于 @ 2007年12月28日 20:31:00|评论(loading...)|编辑
导读: 終於,終於,這一天來了。 Adobe 昨天正式將 QVM (as3 vm for mobile device) 的 source code 移交給 Mozilla,這代表著很快的,我們就可以在手機與各種行動裝置上使用 as3 開發應用程式了,更讚的是,整個 flex framework 也可以在手機上跑了啊~ flashlite 1/2/3 時代的 as1/as2 惡夢終於結束,新的時代就要來臨了。 QVM 基本上是用 C++ 寫成的 VM,但有趣的是它的內部還有一個微型的 VM,是用 Forth 寫成的,如果想知道 Forth 長什麼樣子,可以看這頁感覺上是很 hardcore 的語言啊,好險一般正常人是不用碰它的。 QVM 的一個重要特色就是要能在嚴苛的環境下執行,例如不太快的手持裝置,像是手機、PDA、機上盒等,它們的 CPU 跟 PC 比起來相對慢了許多,同時能供運用的 ram 也很少,因此 QVM 本身的 footprint 要非常小,然後要能充份利用慢速 cpu 來跑 as3(也就是要能 JIT 將 bytecode 轉成 machine c阅读全文>
发表于 @ 2007年12月24日 20:36:00|评论(loading...)|编辑
导读:
我只说两件事:第一件事是这篇文章提供了很多的AIR源代码下载。
第二件事就是下载的地址是: available for download.
Every new update to Adobe AIR means one thing for me - a lot of additional work. When I first started putting together samples for the AIR Pocket Guide, it never occurred to me that I’d have to revisit them time and again. What started as a couple dozen examples has also now grown to be over forty (40) AIR samples, to include a number of full applications. That being said, I’m happy to announce that the samples update阅读全文>
发表于 @ 2007年12月23日 20:57:00|评论(loading...)|编辑
导读: Mouse wheel support in FlexDecember 21, 2007 at 12:41 pm The problem Just two of the text fields on your Flex window have to support the mouse wheel. The user turns the wheel, the numeric field in these fields is incremented or decremented
问题描述
你FLEX面版上有两个text框要求支持鼠标滚动事件,随着鼠标的滚动文本数值相应的增加或者减少 The solution As per the Flex manual, there is a MouseEvent.MOUSE_WHEEL event, just listen to it. So far so good. On the creationComplete event adding the one liner:
systemManager.addEven阅读全文>
发表于 @ 2007年12月23日 20:53:00|评论(loading...)|编辑
导读: 先说说我对这个作品的评价,应该说查查单词应该可以,不过BUG很多,我就用了一下,发现了最少三个bug,比如开始时候莫名其妙的错误,比如TEXT框莫名其妙的值,比如TEXT框不够长。作品可能注重实用了对UI部分也缺少考虑。批评的多了,当然优点是显然的,开源也是很实在的。希望大家啊多多支持。呵呵不要辜负KESHEN的好意
沉寂了半年之久,终于发布了Flex的最新作品:Flex Dict Online,这个作品的最初想法来源于“如何才能最简方式查询单词”这个想法中,最后因而诞生了这个作品。产品名称:Flex Dict Online开发版本:Version Beta 1.0开发环境:Flex Builder 2.0.1 + KUIComponent V1.0运行环境:Flash Player 9.0以上,任意浏览器数据来源:Dict.cn功能特色:在想查的单词后面加上.rxna.cn,即可完成查询,这是我想到的最简便方式。开发原理:泛域名解析、获取当前URL、HTTPService、Dict.cn's API、KUIComponent的应用。使用方法:在任意浏览器里面输入x阅读全文>
发表于 @ 2007年12月23日 20:37:00|评论(loading...)|编辑
导读:
Every so often I find the need to venture further beyond the bland world of default Flex skins that usually fail to enhance my rapid web application prototypes. When I do this, I usually turn to one of my trusty Flex 2 books (Mr. Tretola or Mr. Kazoun’s masterpieces) to reference this art I, for some reason, never retain to memory.
我经常发现我需要投入更多来改善flex默认的皮肤设定,通常要做这项工作的时候我会去阅读Tretola先生的一本书也是我最信赖的,因为某种原因这些内容总是无法记住,总是要用的时候再去翻看
Digging a little deeper, I found a very casual yet detailed art阅读全文>
发表于 @ 2007年12月23日 20:28:00|评论(loading...)|编辑
本文翻译了flash播放器的最新安全改动规范,本文为该规范的第一部分。后续的部分将在几天内陆续发完,敬请关注阅读全文>
发表于 @ 2007年12月22日 18:24:00|评论(loading...)|编辑
导读: 用FLASH CS3开发,或者在FLEX里建立AS项目开发,与FLEX里建立FLEX项目开发,在对于调用外部的问题,比如ExternalInterface类这个命令:结果一样吗?答案是不一样,这是个很奇怪的问题,其实是源于FLEX在建立的时候内部包含的东西很多,还加了个框架,如果你按照FLASH CS3里开发那样的命令,去调用外部JS,结果会很糟糕.应该说完全不同. 首先来看一下一个简单的CASE,先说FLASH CS3里怎么做,不过这种方法,我已经在http://www.uncool.cn/blogs/read.php?117里写过,很简单.OK,我按照上面那个qq的例子,做一个改变,就是我在网页初始后,就希望得到一个我在JS里写好的值,并且初始化完成后,在FLASH里直接显示.怎么做? 在网页代码里里,加一个JS命令,onLoad="所要执行的程序".然后在里写那个需要执行的程序,比如 <body onLoad="pageInit()" > 然后在script里写上一个初始程序,我是按照以上那个QQ例子来做,那么就该写成 func阅读全文>
发表于 @ 2007年12月21日 20:41:00|评论(loading...)|编辑
导读: Strangely I never heard about ASTRA althrough I already knew Yahoo! had a Flash developer center.
我从没听说过Astra,虽然我知道雅虎有一个flash的开发中心 So what is ASTRA? Well, ASTRA, the ActionScript Toolkit for Rich Applications, is Yahoo!’s collection of Flash and Flex components, libraries, toolkits and advanced applications. These libraries are open-source and available under the BSD license.
Astra就是ActionScript Toolkit for Rich Applications,丰富体验应用程序包 You will find some:
包括以下这些的组件库:
FLASH 阅读全文>
发表于 @ 2007年12月21日 20:26:00|评论(loading...)|编辑
FLEX应用展示之CARPICKER汽车挑选,本文介绍了一个汽车选购的FLEX应用阅读全文>
发表于 @ 2007年12月20日 21:17:00|评论(loading...)|编辑
导读: How Does It Work?
我很生气,翻了一遍的文章在‘剪影’里发表的时候死了,我的心血付之东流,因此第二遍再转的时候,便不准备再翻译了,我很讨厌重复劳动,提示大家一定要到原文的页面去看看漂亮的效果 The artwork I got from a stock photo site. I found a bunch of cool vector snowflakes and trees and stuff and I used them to put together the graphics for the movie. It’s really a pretty basic animation, but I thought I’d have some fun with the snowflakes and actually program them falling from the sky so it is more realistic. It may sound more difficult, but it honestly took me a lo阅读全文>
发表于 @ 2007年12月20日 21:16:00|评论(loading...)|编辑
导读:
mx.core.Singleton is internal class in FlexFramework. I don't know Adobe supports mx.core.Singleton officially or not. Also FlexFrameworks's Singleton isn't like Java's because AS3 doesn't support Singleton. Also you don't need to use Singleton. I just show a way to use mx.core.Singleton.
singleton是FLEX框架内嵌的类,我不知道ADOBE是否官方的支持这个类,虽然此singleton和java的不一样,因为AS3不支持,
也许你不会用到这个类,但是没关系我只是告诉你如何用这个类SingletonSampleForFlex2.mxml
view plaincopy to clipboardprint?
<?xml version="1.0" e阅读全文>
发表于 @ 2007年12月20日 20:44:00|评论(loading...)|编辑
Flex应用展示之ROB PICKER,本文介绍了重工集团在网上推出的FLEX选购器阅读全文>
发表于 @ 2007年12月19日 21:28:00|评论(loading...)|编辑
导读: Ribbitfor the past 6 months and watching this Silicon Valley start-up emerge as the leader in merging RIA and VOIP. The key is that Ribbitcan integrate voice and PSTN phone features into any website or desktop applications using AIR or Flash Player. They chose Flash Player because it runs on 95% of computers connected to the Internet with no installation. Flash Player in this case provides real-time 2 way audio integration through the use of Adobe's RTMP protocol and allows developers 阅读全文>
发表于 @ 2007年12月19日 21:00:00|评论(loading...)|编辑
导读: If anyone can confirm this we appreciate. It seems that after Thermo, Adobe is preparing to release a new Product, the Adobe Bordeaux. This tool will allow you to create flash content easily without knowing ActionScript or programming. It is pointed to graphic designers, art directors and creative directors.
如果有人能够确认,那最好了。不过笑道消息称,今年ADOBE忙完THERMO之后将为DESIGNER发布一款新的设计工具,代码名为bordeaux,这款工具不要求你知道AS或者编程,定位的对象是执导以及创意总监 I believe this is a great move by Adobe.
我相信这将是ADOBE的很大进步 Features: -阅读全文>
发表于 @ 2007年12月19日 20:47:00|评论(loading...)|编辑
导读: Jason Kringenpinged me about an AS3 Library for Facebookthat's in the works and is up on Google Code. The API lets you make REST calls between Facebook and Flash/Flex applications. The current version is 0.7 and it looks like quite a bit of work has gone into it. The main person behind it right now is Jason Cristfrom Cynergy Systems. I love me some Facebook, and there are a ton of users there, so if you're interested in building some apps that take advantage of the Facebook APIs, thi阅读全文>
发表于 @ 2007年12月19日 20:43:00|评论(loading...)|编辑
导读: According to Alex Gorbatchev (the creator of SyntaxHighlighter) it should be added to the next release. But until then, you can download the source here.
根据ALEX的语法高亮显示源代码,我创建了AS3的语法高亮显示,ALEX的语法功能也许会在下个版本中出现,但是读者可以到原来的页面去下载 It's pretty straight forward to use, but just in case: 1) Download the latest SyntaxHighlighter source. 2) Download my AS3 extension. 3) Place the compressed script in SyntaxHighlighter's Scripts directory. 4) Replace the css file in SyntaxHighlighter's Sty阅读全文>
发表于 @ 2007年12月19日 20:37:00|评论(loading...)|编辑
导读:
We are currently working on a very interesting application with one of our clients. Its a car diagnostic system built entirely in Flex and AIR.
我们最近的项目很有趣,是一个汽车诊断系统,但是完全是用AIR 构建的
In simple terms it works like this, they have a wireless device that connects to the car and transmits data wirelessly to a mechanics laptop. There he has the application running that allows him to select the car that is connected. Once a car is selected the data is transfered and a topology of the cars elect阅读全文>
发表于 @ 2007年12月19日 20:31:00|评论(loading...)|编辑
导读: Problem Summary Creating programmatic skins for buttons on the fly.
为按钮创建可编程的皮肤 Solution Summary Create programmatic skins on the fly for buttons and other components to save on startup, and download time.
Explanation Programmatic Skins for Buttons Here's a little recipe I use for programmatic skinning on buttons in particular on some projects. If you need fast, extendable, easy on the bandwidth buttons, then this one is highly useful. To start off, I picked buttons beca阅读全文>
发表于 @ 2007年12月18日 22:39:00|评论(loading...)|编辑
导读: Using Namespaces to provide context in AS3December 17th, 2007 Namespacesin ActionScript 3 are particularly useful for providing context in an application. They also provide an added clarity to APIs outside of the typical language specific access modifiers.
AS3中的命名空间用来实现上下文特别有效,他们同时为某种语言规范之外的访问修饰提供了额外的清爽 For instance, let’s say we have an application which requires slightly different behaviors depending on a specific type of user. If the user is a guest, the application need only di阅读全文>
发表于 @ 2007年12月18日 22:18:00|评论(loading...)|编辑
导读: A while ago I posted a FlexBuilder/Eclipse work-flow tip about the working setsfeature, which allows you to hide projects in your navigator pane. This is great if your projects comprise of multiple libraries, but there is another, quicker way to focus in on a single project, and that is to right-click the project and select 'Go Into' (or 'open in new window'). This will set the root-view of the Flex Navigator panel to be the root folder of your project and rid you of all that unnecessa阅读全文>
发表于 @ 2007年12月18日 21:19:00|评论(loading...)|编辑
导读: When you're displaying a list of items and the underlying data changes (usually as the result of a user gesture), it can be good to feed the change back to the user in a visual way. Data Change Effects enable you to apply animated visual effects to item renderers when the data source changes. The picture below links to a working example (change the country combo box to see the effect)
当你在呈现一个列表的项目的时候,而且每个项目下面都有随时更新的信息(随着用户的姿势而改变)这样很直观的就将用户的交互返还各用户
数据改变效果是能你能很快的使用动画效果来呈现ITEMRENDER当阅读全文>
发表于 @ 2007年12月18日 21:15:00|评论(loading...)|编辑
导读: Introduction This tutorial aims to teach you in detail how to develop a Flex component using Actionscript classes. The object of the tutorial is to guide developers on the key steps necessary to generate a distributable Flex component in SWC format. The SWC format is Adobe's packaging mechanism where assets such as classes, codes, images, swf etc are bundled together into one zipped file for easy access. In reality, you can unpack all the contents of an SWC component using a zip appl阅读全文>
发表于 @ 2007年12月18日 20:58:00|评论(loading...)|编辑
导读: Adobe Systems Incorporated (Nasdaq:ADBE) today announced that the E-3A department of North Atlantic Treaty Organization (NATO), with its headquarters in Brussels, Belgium, plans to adopt Adobe? Flex? software and Adobe LiveCycle Data Services ES for its new Mission Support System (MSS). The system will help improve NATO’s operational readiness, by reducing the time to prepare for missions, and improve the delivery of information to flight crew members. ADOBE公司今天发布了一则消息称:北大西洋公约组织(总部在比利时阅读全文>
发表于 @ 2007年12月15日 19:31:00|评论(loading...)|编辑
导读:
window.onload=function(){
if(!NiftyCheck())
return;
RoundedTop("div#topnav li","transparent","#eee");
Rounded("div#tagblock","#fff","#e7f2f2");
Rounded("div#postmetadata","#fff","#d2e0e0");
Rounded("div#single_advertisments","#fff","#EEEEEE");
//Rounded("div#advertisments","#fff","#EEEEEE");
Rounded("div#bloginfo","#fff","#EEEEEE");
}
Write Here, Write Now, Write Anywhere: 13 Free Web-Based Word Processors
Imagine the situation: You’re visiting your parents’ home for th阅读全文>
发表于 @ 2007年12月15日 19:11:00|评论(loading...)|编辑
导读: This isn’t as difficult as some may think. Basically your itemRenderer opens up a popup. When the renderer creates the popup, it sets an “opener” property on the popup pointing back to “this”, which is the itemRenderer. That way, when the editing is finished in the popup, the popup can pass data back to a function in the itemRenderer to do the update, close itself, and set focus back to the itemRenderer.也许大家会认为这东西不难,只要简单的将ITEMRENDER作成一个POPUP不久行了,当RENDER创建一个POPUP,他设置一个OPENER属性在POPUP上回指向阅读全文>
发表于 @ 2007年12月14日 21:04:00|评论(loading...)|编辑
导读: This tetris engine contains full source code for a tetris game. As well as being useful for people looking to develop a tetris-like game, it's also a good starting point for anyone looking to build games in Actionscript 3. Take a look through the code and learn from it. 这款引擎包含了完整的源代码(读者到源链接下载),对于那些尝试开发TERIS一样的开发者来说是有益的。学习一下也是有益处的 The code is in two parts. 代码分为两个部分 The game engine itself, comprising all the classes in the bigroom.tetris package, plus the KeyPoll class which is also av阅读全文>
发表于 @ 2007年12月14日 20:45:00|评论(loading...)|编辑
导读: Today we pushed out some very important releases for AIR, Flex and open sourced some key data exchange technogy in Blaze DS and the AMF Specification. This release is a really big deal and will change the face of data exchange for Flash/Flex based technologies. Here is my take: 今天我们发布了AIR,FLEX等软件的重要更新,并以BLAZE DS和AMF规范开源了几项重要的数据交换技术,这些发布是如此的重要以至于他们会改变现有的FLEX等技术的面貌 AMF3 Specification AMF3规范 Today we released the specification for the Action Message Format (AMF) version 3 in pdf. This i阅读全文>
发表于 @ 2007年12月14日 20:41:00|评论(loading...)|编辑
--------------------------------------------------------------------------------------整合了NSHEN的内容和雅虎的内容
导读: 雅虎的Media Innovation Group在博客上发布了一款Flex皮肤(theme),里边包括了完整的 AI, SWF 和 CSS 文件 ,请看截图 原文: 引用 Have you ever used Flex and felt that the default Flex component skin was a little too utilitarian, lacking just a bit in the visual appeal and shiny disposition departments? Well, allow us to fix that problem for you. Two of our Flash and UI gurus, Joe Magnani and Jeff Bennett of阅读全文>
发表于 @ 2007年12月14日 20:28:00|评论(loading...)|编辑
导读: Joel Spolsky是一个美国的软件工程师,他的网络日志“Joel谈软件”(Joel on Software)非常有名,读者人数可以排进全世界前100名。 上个月28号,他回到母校耶鲁大学,与计算机系的学生座谈。他发表了一个演讲,回顾自己的人生经历,并总结了一些个人的体会。 我读完他的演讲稿,很受触动,觉得他的人生体会非常具有启示性。这篇演讲非常长,分为三个部分(一、二、三)。我没有时间全文翻译,就摘录一些精彩的段落,一共有四段。 大学里最有用的课程 Joel说,他在大学里上过的最有用的课,是一门他只上了一回,然后就再也没有去过的课。 由于父母都是大学教授,亲戚朋友都是学术界里的,大多有博士学位,所以Joel从小就认定自己也会去读博士,将来搞学术。可是,有一门课程改变了他的想法,使他最终没有去报考研究生院。 这门课程叫做“动态逻辑”(Dynamic Logic)。在第一堂课上,教授证明了一个命题。假定有一个程序“f := not f,” f是表示真假的逻辑值,那么结论是程序运行偶数次后,f的值保持不变。整个证明过程非常冗长,要花几个阅读全文>
发表于 @ 2007年12月13日 22:55:00|评论(loading...)|编辑
转载这篇文章,其实我想讲的是LUA,这个非常有名的脚本语言,在这里,作者用它来模拟浏览器的行为,这在我们的日常生活中也是经常要碰到的,举个例子,一个页面上有个PDF要下载,夸张点被分割成了100份,你怎么办?一个一个点?当然不是,任何一个真正的程序员都会发挥它那懒惰而又爱动脑筋的品质,这里,LUA给了我们一个示范的解决方案,在以后的网络生活中碰到这样的问题,如何去解决。--------------------------------------------------------------------------------------
导读: 喜歡抓電子書的人應該都知道 ITPub 這個網站,可是他的下在方式需要圖片驗證,而且檔案分割又多 如果能夠循序幫你抓檔該有多好 最近發現 FreeGrab 這套軟體,他是一套可透過撰寫 Lua 腳本來模擬瀏覽器得操作,因此我嘗試撰寫了抓取 ITPub 電子書的簡易 Lua 腳本,順便學習一下 Lua 語言。 首先要說明一下,我測試的 FreeGrab 版本為 1.2.3.3 Build 071025。以下是 ITPub阅读全文>
发表于 @ 2007年12月12日 20:50:00|评论(loading...)|编辑
导读: I've recently launched a Flex-based classified ads product allowing anyone to start a classified ads service. Almost the very first question I was asked was how to place a Google AdSense banner in to their app. I really didn't want to tell them that wasn't possible because I choose to use Flex. Instead I set out to find a solution. It turns out not only was it possible but it was a lot less complicated than I imagined. 我最近发布了一款基于FLEX的可分类的广告服务。我被问到的最多的问题是如何将ADSENSE广告标题栏放进他们的程序,我真的不想告诉他们阅读全文>
发表于 @ 2007年12月12日 20:47:00|评论(loading...)|编辑
导读:
At QCon, Adobe's James Wardshared with InfoQ.com the top Adobe Flex misconceptions that he encounters in his travels evangelizing the Flex application framework. 对ADOBE FLEX的十大误解
Users Need to Install Something New to Run Flex Applications. 用户不需要安装任何东西就可以运行FLEX应用程序
Ward, exclusive to InfoQ.com, discusses the Flash adoption rates and Flex programming model: Flash Player 9 is required for Flex 2 &Flex 3. The Flash Player 9 runtime is currently installed on 94% of the world's 阅读全文>
发表于 @ 2007年12月11日 21:41:00|评论(loading...)|编辑
不知道大家记不记得MDMZINC了,在没有AIR的时候就是这家公司打开了SWF与电脑之间的沙箱,让我们可以写出沟通桌面的应用,现在有AIR了,MDM不再受关注了。不过这不代表他的公司是无所作为的,这里有:
导读: As I welcome in my “big 3-0”I thought I would share another important “3-0″ with you. My Software Development Company, Multidmedia Ltd (MDM), is approaching the launch of an extremely important third generation of our Flagship software, Zinc. “Zinc 3.0″ is currently in the final stages of development, having gone through several months of quality assurance, tweaks and polishing. MDM发布阅读全文>
发表于 @ 2007年12月11日 20:52:00|评论(loading...)|编辑
导读: 不止设计,更为传播 70位专家谈CSS设计 By mienflying| 评论 (0)| 引用(0)| 338次浏览 CSS 并不总是很好对付.这取决于你的技巧和经验. CSS编码有时会成为一场噩梦, 特别是当你还不知道文件中的元素应该适用哪些选项的时候. 一个减少代码复杂性的简易法门, 就是利用哪些鲜为人知的CSS属性来创建适用性比较强的正确标注. 下面引用的70个专家技巧,附加了他们的相关文章地址. 如果感兴趣你还可以阅读 53 CSS-Techniques You Couldn’t Live Without(53个你必须掌握的CSS技术), Digg this article(挖掘这篇文章)如果你觉得有用. 1.1. Workflow: 上路 当你确定了设计思路, 请用一个空白页面展开设计.“包括页头 , 导航条, 内容样例 和页脚 ?之后添加HTML标记, CSS控制,这样会让事情简单清晰起来.” [CSSing] 务必要重置CSS样式表“你可能会经常删除哪些不必要的特殊设置, 而充分利用每个特性的缺省值. 而另一些人则倾阅读全文>
发表于 @ 2007年12月09日 20:52:00|评论(loading...)|编辑
导读: 发现一篇好文,介绍AS3中常见的位运算技巧的。小弟勉强翻译一下,有错误还请指正。原文在这里 在AS3中位操作是非常快的,这里列出一些可以加快某些计算速度的代码片段集合。我不会解释什么是位运算符,也不会解释怎么使用他们,只能告诉大家如果想清楚其中的原理这里有一篇极好的文章在gamedev.net上叫做‘Bitwise Operation in C'. 如果你知道任何下边没有列出来的不错的技巧,请留下个评论或者给我发个邮件。所有这些都是基于AS3的 左位移几就相当于乘以2的几次方( Left bit shifting to multiply by any power of two ) 大约快了300% x = x * 2; x = x * 64; //相当于: x = x <<1; x = x <<6; 右位移几就相当于除以2的几次方(Right bit shifting to divide by any power of two) 大约快了350% x = x / 2; x = x / 64;阅读全文>
发表于 @ 2007年12月08日 19:12:00|评论(loading...)|编辑
导读: Problem Summary Using Flash CS3 or prior its trivial to create a spotlight effect using a couple layers and making one of them, etc. Without Flash's timeline though something like a spotlight effect in Flex has to be done differently. 使用FLASH CS3创建一个聚光灯效果是很容易的,使用FLEX来创建,因为没有时间轴,做法是不同的。 Solution Summary The code is trivial to create a spotlight effect. I've essentially used two images and then with a little ActionScript setup the mask to a circle that will follow the mouse around. 阅读全文>
发表于 @ 2007年12月07日 20:47:00|评论(loading...)|编辑
导读: Problem Summary How to easily share simple and complex test data instances between multiple TestCases? 如何便捷的在TESTCASE之间共享简单和复杂的数据实例 Solution Summary Create a factory class that can generate required test data instances. 创建一个工厂类来产生所需的数据实例 Explanation This recipe extends the Create a FlexUnit TestCaserecipe. 次此解决方案扩展了TestCaserecipe A common unit testing need is to have multiple different TestCases share the same or similar test data. This data maybe simple like an object which r阅读全文>
发表于 @ 2007年12月07日 20:41:00|评论(loading...)|编辑
导读: 本文主要介绍的是PV3D的几个DEMO,大家可以根据源链接到页面去看一下,文字的描述远没有效果来的直接和生动。 At the end of Sunday's PV3D training class in NYC, I think everyone was in a bliss stupor - including myself. It was the first time I had a real chance to get my head around the possibilities his classes give us with PV3D and as I walked around class to make sure everyone was compiling ok, I was seeing people take off in amazing directions with the effects demo of the Borg cube (above). I could hardly wait to sit down and start 阅读全文>
发表于 @ 2007年12月07日 20:19:00|评论(loading...)|编辑
导读: FLEX对界面设计的支持是非常优秀的,如果你想修改一个UI的样式可以用很多方法,但是如果你还不满足,还想做出更多更复杂的表现呢?比如一个Canvas的边框是双线形式的,或者三线,或者其他效果,双线效果如下图. 那该怎么来实现呢?这样我们就需要拓展一些样式类,比如线条是extends RectangularBorder //在主程序的<mx:Style>里加入,自定义线条样式 Canvas{ borderSkin: ClassReference('com.uyang.canvasNewSkin'); } //主程序 <mx:Canvas width="300" height="300" backgroundColor="#e1e1e1" horizontalCenter="-11" verticalCenter="22.5"/> 然后我在com文件夹下的uyang文件夹下,新建立canvasNewSkin类,代码如下: package com.uyang{ import mx.skins阅读全文>
发表于 @ 2007年12月07日 20:17:00|评论(loading...)|编辑
这是一个在线的体育游戏网站,在这个站点,你可以注册帐号建立自己的队伍组织比赛,大家快去看看吧。
US的FLEX事业果然走的很快,很多的网站都出现了丰富体验的趋势,和我预料的一样。
阅读全文>
发表于 @ 2007年12月06日 21:25:00|评论(loading...)|编辑
这是又一个体育竞技的网站,而且这个是更加规范的网站,从这个站点上,体育迷们能够看到自己喜欢的队伍,比赛的时间安排,各个队员的情况。阅读全文>
发表于 @ 2007年12月06日 21:24:00|评论(loading...)|编辑
导读: Categories: Flash, 3D, Papervision3D. Well, if you're into 3D and haven't heard the buzz about Papervision3D 2.0, you've probably been under a rock or working for an agency on a 6 week deadline in a room with blacked out windows. We've all waited for this release with much anticipation and it's been a long wait, but that wait is FINALLY over!
如果你对3d有所了解而且也听说过PV3D,那你也许在一个公司上班,一周6天。窗外一片空白。我们等待PV3D第二个版本的RELEASE已经很久了,虽然过程很漫长,但到底还是来了。 Ralph and Tim have been cracking away at 2.0阅读全文>
发表于 @ 2007年12月06日 21:16:00|评论(loading...)|编辑
导读: December 2nd, 1982 was when John Warnock and Charles Geschke founded Adobe. I was almost 1 year old. 25 years later I have my dream job working for the company they founded. We've both come a long way but Adobe's has been the much more interesting/profitable road. The history of Adobeis something I find very interesting. One of the best parts about working on the "inside" is being able to go back and see all of the products that didn't make it. Or even better, the products that evol阅读全文>
发表于 @ 2007年12月04日 22:06:00|评论(loading...)|编辑
导读: use Math.round, or roundToPrecisionlate as possible, and only when you have to. 经可能晚的使用那些截整,是数据发生精度丢失的方法,不在必须的时候不要使用这些方法) when doing number comparisons, use the following notClose or fuzzyEqualsinstead of ‘==’ 当进行数值比较的时候,使用notClose 或者fuzzyEquals代替==操作符 truly think about the degree of precision you need and be consistent. 仔细的考虑精度问题,当必要的时候 1) Keep things in MVC format, meaning changes percolate down as they are, and views get notified and can reformat on the way up as they need to for阅读全文>
发表于 @ 2007年12月04日 21:47:00|评论(loading...)|编辑
导读: I first gave a semblance of this presentation at LFPugback in September. After that I refined it as there were a few teething problems and I wanted to try and add in more functionality. You can read about that here. After I had sorted out the issues I had on my “todo” list I then presented the new revised version at Flash on the Beach ‘07. What is detailed within is the process used to create the FotB ‘07 application which attendees of my session produced. 这个PPT第一次是在LFPugback 的演讲上给出的,在阅读全文>
发表于 @ 2007年12月04日 21:17:00|评论(loading...)|编辑
AS3 Dice Class & Dice Tester
In game development randomness is often necessary for certain tasks, be it the random distribution of graphic tiles, a random factor in NPC AI or random stats in a roleplaying game. Especially for the latter purpose the static Dice class provides a set of methods to roll dice as it is common in a RPG, to be exact four-, six-, eight-, ten-, twelve-, twenty-sided and percentile dice.
在游戏开发环节中,随机的应用对于某些任务来说总是必要的,象随机的布局,NPC角色的随机表现,特别是想骰子这样的类,提供一系列的投掷方法。
 阅读全文>
发表于 @ 2007年12月04日 21:04:00|评论(loading...)|编辑
Flex 2 Beta 3 : Sprites In Flex 1.5, typically if we want to add a shape or graphic to the stage, we would make either make a call to createEmptyMovieClip or utilize the MovieClipLoader and add the graphic to the stage. However, in Flex 2 Beta 3, this has changed slightly. 在flex1.5中,如果我们要想向舞台添加一些图像或者形状,那么我们要么调用createEmptyMovieClip 要么利用MovieClipLoader 将所需的资源添加到舞台,在F2B3里面这有些小小的改动 In the Actionscript 3 spec, we’ve been introduced with a new class called the “Sprite” class. A Sprite object is 阅读全文>
发表于 @ 2007年12月03日 20:59:00|评论(loading...)|编辑
Reflection in Actionscript 3.0/Flex 2 In actionscript 3, you may find a set of functions in the “flash.utils” package that provides some facilities for reflection. Do not confuse this with the type of reflection you may get when applied as a visual effect, but the type of reflection that does the following basic things: 在AS3中你也许可以在FLASH.UTIL中找到一个结合的包,这些包提供反射的工具,不要将这里的反射与视觉效果中的“反射”混淆。这里提到的反射符合以下的特点。(相信写过些程序的人肯定知道反射式什么?国外的作者很细心) Determine the class of an object. 决定一个对象的类 Get information abo阅读全文>
发表于 @ 2007年12月03日 20:52:00|评论(loading...)|编辑
导读: In this lesson, I shall introduce to you, the Matrix Class. Out of all the concepts to cover in Flex 2 and AS3, why did I choose to cover this topic? Well, believe it or not, the Matrix class has been around for quite some time now in Actionscript. If you’re really interested in the idea of 3D vector spaces in Flash/Flex, then this may be a subject that you may want to further look into. For now, we’ll keep this lesson simple and lay off the heavy mathematics that you’d normally find i阅读全文>
发表于 @ 2007年12月03日 20:37:00|评论(loading...)|编辑
利用render事件来提高程序的运行效率。 AS3中的DisplayObject有一个render事件,他会在重绘DisplayList之前触发,这给我们提供了在重绘之前最后一次操作的机会。 每次需要DisplayObject触发render事时,都要调用一次 stage.invalidate(); 下面用一个小例子来说明一下具体用法把。 假设我们现在要写一个list组件,该组件有addItem()方法用于添加list项目,和remvoeItem() 方法用于删除list项目,当然还可能有addItemAt(),removeItemAt()等方法,这些方法调用后,都需要对list内的显示对象进行重新排列。 我们先实现一个List类,用于显示列表项目 List类中,有addItem() 和 removeItem() 这两个方法提供给外部调用,用于添加和删除list项目,这两个方法中除了将列表项目添加/删除,还要调用一个方法来重新对list中的项目进行排列,layoutContents()。 关键就是,这个layoutContents()的调用,他的阅读全文>
发表于 @ 2007年12月02日 18:58:00|评论(loading...)|编辑