ItemRenderer在DataGrid中涉及问题解决

一、设若DataGrid中有个ComboBox的ItemRenderer,操作这个ComboBox,影响其它列的值变化。要使Flash的画面Redraw,需要将绑定到DataGrid上的ArrayCollection执行refresh().

二、涉及到需要通过绑定数据来更新显示多个DataGrid中的ItemRenderer,需要使用ArrayCollection而不是Array.

三、要理解Flex ItemRenderer生成及使用的机制,在Flex开发人员中心中有这么一段话,道出了ItemRenderer的真面目:假设您要显示 1,000 条记录。如果您认为列表控制会创建 1,000 个 itemRenderer, 您就错了。如果列表只显示 10 行, 它会创建约 12 个 itemRenderer-这些足以显示各个可见行, 多出的几个则用于缓冲和性能。列表最初显示行 1–10。当用户滚动这个列表时, 它现在可能显示行 3-12。但那 12 个 itemRenderer 仍在那里: 及时滚动列表后, 也不会新建任何 itemRenderer。

 

LoaderMax – Smart AS3 Loading(聪明的加载器组件)

LoaderMax是一个新的As3加载系统,它不仅能将swf、mp3、css、video、image、text、binary、xml等文件加载到你的flash应用里,而且加载文件还可以简单得像吃晚餐一样,吃完一个菜,点下一个菜,再吃完一个菜,再点下一个菜。它微小的惊人。事实上,只有其他加载系统的一半,但是却实现了一些特殊的功能,有一些你可能用不到,但是却不想在生活没有它。这里有一些值得注意的特点:
http://www.LoaderMax.com

  • 在要加载的swf里面集成加载器
  • LoaderMax中自动解析XML
  • 为任何加载器定义备用URL
  • 为所有的加载器提供统一的属性和方法设置
  • 可以为图片加载器、Swf加载器、视频加载器设置宽高,当其加载完,图片、swf、视频可以自动匹配你所设定的宽高
  • 一个加载者可以拥有多个LoaderMax实例
  • 实时报告加载进度
  • 在一行代码里设置多个事件监听:new LoaderMax({name:”mainQueue”, onComplete:completeHandler, onProgress:progressHandler, onError:errorHandler});
  • 具有暂停加载及恢复加载的功能
  • 对Flex很友好

源码及Demo:LoaderMax (52)

 

经典语录

1、一个年轻人,如果三年的时间里,没有任何想法,他这一生,就基本这个样子,没有多大改变了。
2、成功者就是胆识加魄力,曾经在火车上听人谈起过温州人的成功,说了这么三个字,“胆子大”。这其实,就是胆识,而拿得起,放得下,就是魄力。
3、这个世界,有这么一小撮的人,打开报纸,是他们的消息,打开电视,是他们的消息,街头巷尾,议论的是他们的消息,仿佛世界是为他们准备的,他们能够呼风唤雨,无所不能。你的目标,应该是努力成为这一小撮人。
4、如果,你真的爱你的爸妈,爱你的女朋友,就好好的去奋斗,去拼搏吧,这样,你才有能力,有经济条件,有自由时间,去陪他们,去好好爱他们。
5、这个社会,是快鱼吃慢鱼,而不是慢鱼吃快鱼。
6、这个社会,是赢家通吃,输者一无所有,社会,永远都是只以成败论英雄。
7、如果你问周围朋友词语,如果十个人,九个人说不知道,那么,这是一个机遇,如果十个人,就个人都知道了,就是一个行业。
8、任何一个行业,一个市场,都是先来的有肉吃,后来的汤都没的喝。
9、这个世界上,一流的人才,可以把三流项目做成二流或更好,但是,三流人才,会把一流项目,做的还不如三流。
10、趁着年轻,多出去走走看看。读万卷书,不如行万里路,行万里路,不如阅人无数。
11、与人交往的时候,多听少说。这就是,上帝为什么给我们一个嘴巴两个耳朵的原因。
12、日常工作之外应当多注意自身修养的提高及自身技能的培训。随着计算机技术的广泛应用,为了不被社会所淘汰,就必须加强计算机技术的培训与提高。无论是企业培训还是个人培训都是不可或缺的,我个人推荐一个很好的培训机构:中科院计算所培训中心。
13、不要装大,对于装大的人,最好的办法就是,捡块砖头,悄悄跟上去,一下子从背后放倒他。
14、不要随便说脏话,这会让别人觉得你没涵养,不大愿意和你交往。即使交往,也是敷衍。因为他内心认定你素质很差。
15、想要抽烟的时候,先问下周围的人可不可以,要学会尊重别人。少在女生面前耍酷抽烟,你不知道,其实她们内心很反感。
16、买衣服的时候,要自己去挑,不要让家人给你买,虽然你第一第二次买的都不怎么样,可是,你会慢慢有眼光的。
17、要想进步,就只有吸取教训,成功的经验都是歪曲的,成功了,想怎么说都可以,失败者没有发言权,可是,你可以通过他的事例反思,总结。教训,不仅要从自己身上吸取,还要从别人身上吸取。
18、学习,学习,再学习,有事没事,去书店看看书,关于管理,金融,营销,人际交往,未来趋势等这些,你能获得很多。这个社会竞争太激烈了,你不学习,就会被淘汰。中国2008底,有一百多万大学生找不到工作。竞争这么激烈,所以,一定要认识一点,大学毕业了,不是学习结束了,而是学习刚刚开始。还有,我个人推荐一个很好的视频节目,《谁来一起午餐》。
19、如果你不是歌手,不是画家,也不是玩行为艺术的,那么,请在平时注意你的衣着。现在这个社会,衣着能表现出你属于哪一个群体,哪一个圈子。
20、记住,平均每天看电视超过三个小时以上的,一定都是那些月收入不超过两千元的,如果你想要月收入超过两千,请不要把时间浪费在电视上。同样的道理,那些平均每天玩网络游戏或聊天超过三个小时以上的,也都是那些月收入不超过两千的。
21、因为穷人很多,并且穷人没有钱,所以,他们才会在网络上聊天抱怨,消磨时间。你有见过哪个企业老总或主管经理有事没事经常在QQ群里闲聊的?
22、无论你以后是不是从事销售部门,都看一下关于营销的书籍。因为,生活中,你处处都是在向别人推销展示你自己。
23、平时的时候,多和你的朋友沟通交流一下,不要等到需要朋友的帮助时,才想到要和他们联系,到了社会,你才会知道,能够认识一个真正的朋友,有多难?
24、如果你想知道自己将来的年收入如何。找你最经常来往的六个朋友,把他们的年收入加起来,除以六,就差不多是你的了。这个例子,可以充分的说明一点,物以类聚。
25、不要听信身边人的话,大一不谈恋爱,好的女孩子就被别人都挑走了。想想,刚上大一就耐不住寂寞,受不住诱惑,而去谈恋爱的女孩子,值得自己去追吗?大学里,可以有一场爱情,可是,不要固执地认为,刚上大一,就必须要谈恋爱。
26、记得,要做最后出牌的人,出让别人觉得出其不意的牌,在他们以为你要输掉的时候,这样,你才能赢得牌局。
27、关于爱情,有这么一句话,没有面包,怎么跳舞?无论什么时候,你决定去好好爱一个人的时候,一定要考虑给她你能给予的最好的物质生活。
28、给自己定一个五年的目标,然后,把它分解成一年一年,半年半年的,三个月的,一个月的。这样,你才能找到自己的目标和方向。
29、无论什么时候,记住尊严这两个字,做人是要有尊严,有原则,有底线的。否则,没有人会尊重你。
30、如果,我只能送你一句忠告,那就是,这个世界上没有免费的午餐,永远不要走捷径!

马云经典语录:

1.当你成功的时候,你说的所有话都是真理。
2.我永远相信只要永不放弃,我们还是有机会的。最后,我们还是坚信一点,这世界上只要有梦想,只要不断努力,只要不断学习,不管你长得如何,不管是这样,还是那样,男人的长相往往和他的的才华成反比。今天很残酷,明天更残酷,后天很美好,但绝对大部分是死在明天晚上,所以每个人不要放弃今天。
3.孙正义跟我有同一个观点,一个方案是一流的Idea加三流的实施;另外一个方案,一流的实施加三流的Idea,哪个好?我们俩同时选择一流的实施,三流的Idea。
4.我既要扔鞭炮,又要扔炸弹。扔鞭炮是为了吸引别人的注意,迷惑敌人;扔炸弹才是我真正的目的。不过,我可不会告诉你我什么时候扔鞭炮,什么时候扔炸弹。游戏就是要虚虚实实,这样才开心。如果你在游戏中感到很痛苦,那说明你的玩法选错了。
5.“其实,有的时候人的最大问题就在于他说的都是对的” 。
6.那些私下忠告我们,指出我们错误的人,才是真正的朋友。
7.我生平最高兴的,就是我答应帮助人家去做的事,自己不仅是完成了,而且比他们要求的做得更好,当完成这些信诺时,那种兴奋的感觉是难以形容的……
8.注重自己的名声,努力工作、与人为善、遵守诺言,这样对你们的事业非常有帮助。
9. 商业合作必须有三大前提:一是双方必须有可以合作的利益,二是必须有可以合作的意愿,三是双方必须有共享共荣的打算。此三者缺一不可。
10.服务是全世界最贵的产品,所以最佳的服务就是不要服务,最好的服务就是不需要服务.
11.永远不要跟别人比幸运,我从来没想过我比别人幸运,我也许比他们更有毅力,在最困难的时候,他们熬不住了,我可以多熬一秒钟、两秒钟。
12.今天到北大演讲心里特别激动。我一直把北大的学子当做我的偶像,一直考却考不进,所以我想如果有一天我一定要到北大当老师。
13.看见10只兔子,你到底抓哪一只?有些人一会儿抓这个兔子,一会儿抓那个兔子,最后可能一只也抓不住。CEO的主要任务不是寻找机会而是对机会说NO。机会太多,只能抓一个。我只能抓一只兔子,抓多了,什么都会丢掉.
14.我们公司是每半年一次评估,评下来,虽然你的工作很努力,也很出色,但你就是最后一个,非常对不起,你就得离开。
15.我们与竞争对手最大的区别就是我们知道他们要做什么,而他们不知道我们想做什么。我们想做什么,没有必要让所有人知道。
16.网络上面就一句话,光脚的永远不怕穿鞋的。
17.中国电子商务的人必须要站起来走路,而不是老是手拉手,老是手拉着手要完蛋。我是说阿里巴巴发现了金矿,那我们绝对不自己去挖,我们希望别人去挖,他挖了金矿给我一块就可以了。
18.我深信不疑我们的模式会赚钱的,亚马逊是世界上最长的河,8848是世界上最高的山,阿里巴巴是世界上最富有的宝藏。一个好的企业靠输血是活不久的,关键是自己造血。
19.我为什么能活下来?第一是由于我没有钱,第二是我对INTERNET一点不懂,第三是我想得像傻瓜一样。
20.发令枪一响,你是没时间看你的对手是怎么跑的。只有明天是我们的竞争对手。
21.如果早起的那只鸟没有吃到虫子,那就会被别的鸟吃掉。
22.听说过捕龙虾富的,没听说过捕鲸富的。
23.好的东西往往都是很难描述的。
24.在我看来有三种人,生意人:创造钱;商人:有所为,有所不为。企业家:为社会承担责任。企业家应该为社会创造环境。企业家必须要有创新的精神。
25.一个公司在两种情况下最容易犯错误,第一是有太多的钱的时候,第二是面对太多的机会,一个CEO看到的不应该是机会,因为机会无处不在,一个CEO更应该看到灾难,并把灾难扼杀在摇篮里。
牛根生经典语录:

1.小胜凭智,大胜靠德。
2.有干劲,你就洒下汗水;有知识,你就献出智慧;二者都不具备,请你让出岗位。
3.城市多喝一杯奶,农村致富一家人。
4.财散人聚,财聚人散。
5.一个产品,抓眼球,揪耳朵,都不如暖人心。
6.一个人智力有问题,是次品;一个人的灵魂有问题,就是危险品。经营人心就是经营事业。
7.好心态才有好状态。
8.帮助别人,但不伤害别人。
9.要想知道,打个颠倒。
10.从无到有,是件快乐的事。而从有到无,同样是种快感。
11.产品市场是亿万公民,资本市场是千万股民,原料市场是百万农民。
12.让认识你的人受益,还不能算好;让不认识你的人也受益,那才是真好。
13.吃亏吃到再也吃不进的时候,就不会吃亏了。苦多了,甜就大了。
14.想赢个三回两回,三年五年,有点智商就行;想做个百年老店,想一辈子赢,没有德商绝对不行。
15.学得辛苦,做得舒服;学得舒服,做得辛苦。
16.产品等于人品,质量就是生命。
17.看别人不顺眼,首先是自己修养不够。
18.从最不满意的客户身上,学到的东西最多。
19.管理是严肃的爱。
20.经营企业就是经营人心。
21.人不能把金钱带入坟墓,但金钱却可以把人带入坟墓。
22.一个人快乐不是因为他拥有得多,而是因为计较得少。
23.一个事业能不能成功,关键靠制度设计。
24.别人从零起步,而我从负数起步。
25.听不到奉承的人是一种幸运,听不到批评的人却是一种危险。
26.善待每一头牛,因为它们都是母亲。
27.布局决定结局。
28.世界上还有很多事情,只要你把它做透了,做成专家,你就能够为自己创造成功的机会。
29.会说话的产品卖得快,哑巴产品走得慢。
30.你如果拿五分的力量跟别人较劲,别人会拿出十二分的力量跟你较劲。

史玉柱经典语录:

1.90%的困难你现在想都没有想到,你都不知道那是困难。
2.团队核心成员有人要提出辞职时,不要挽留,既然提出了,他迟早是要走的。
3.如果没有价格上的优势与技术上的绝对优势,千万不要进入红海市场,否则你会必输无疑!
4.做连锁经营业务,一定要做一套傻瓜版的营销手册与管理手册,只有这样,才能实现远距离的管理。
5.做成功一个店之后离你大的成功就不远了,所以你首先就是脚踏实地、集中精力地先做出一家,也是要放弃掉连锁的这种,不要在将来如何做连锁方面做太多的梦,先脚踏实地做出第一家。
6.做全国性市场,一定要先做一个试销市场,要一点点来,快不得;做成了,真到做全国市场时,要快半步,慢不得!
7.初中水平跟博士后没啥区别。只要能干就行,我一直是这个观点,不在乎学历,只要能干能做出贡献就行。
8.作为我们曾经失败过,至少有过失败经历的人,应该经常从里面学点东西。人在成功的时候是学不到东西的,人在顺境的时候,在成功的时候,沉不下心来,总结的东西自然是很虚的东西。只有失败的时候,总结的教训才是深刻的,才是真的。
9.对过去成功的经验再好好总结总结,尤其是对失败的教训,下半夜夜深人静的时候你仔细想一想。反正睡觉也想,想一想实际上对你有很大收获比你看书更有用。因为有的书离你远,那是看自己过去写的东西。

10.最痛苦的时候,压力最大的时候,脑子里面只有一件事儿的时候,我把全国分公司经理招到荒山脚下北大门那个地方,招待所里面,然后在那个地方闭门开批判会。大家批判我,批判了三天三夜,我觉得那个就很有用。
11.要改变消费者固有的想法,比登太阳还难;但不是不可能的。
12.现在的时代,战略正确之后细节决定因素,有很多细节处理不好,你的战略正确了也会失败。
13.不要只看塔尖,二三线市场比一线的更大。
14.管理无情,人有情。
15.所谓人才,就是你交给他一件事情,他做成了;你再交给他一件事情,他又做成了。

 

Flex新框架:FlexAip

Flex2007这位朋友问FlexAip的官网是什么?
非常抱歉,这是我的疏忽,其官网是:http://flexaip.org/
同时感谢大家的关注!
FlexAip是什么
1. FlexAIP试图为企业RIA应用的开发提供Flex程序的基础架构,或者说是提供一个微框架,来满足如下类型的应用:

  • 一个工程由多个子项目构成。
    • 例如:ERP工程由订单、采购、生产、销售、库存等若干子项目构成。
  • 该工程由一个主程序(Application)和若干子程序(Module)构成。
    • 例如:主程序实现菜单和Module容器的作用,每个Module都是一个画面,被主程序动态加载,运行在主程序中。
    • 主程序可以一次加载一个Module,也可以同时加载多个。
    • 主程序可以一次显示一个Module,也可以同时显示多个Module。
  • 把共用的画面独立成为对话框,在全项目中共用。
    • 例如商品检索对话框、社员检索对话框。
  • 团队(多人)并行开发。

2. 它实现如下功能:

  • 利用Flex事件机制,实现事件的一对一传播,或可控范围内的传播。
    • 例如:多个子画面都会调用相同的对话框,对话框只和调用它的子画面通过事件进行联系。事件不会扩散到第三者那里。
  • 把画面的共通机能抽象出来,交由第三方对象异步完成,通过事件机制进行相互通知。
    • Module的加载/卸载
    • 画面表示文字和提示信息的动态更新(国际化)
    • 事件派发
  • 数据在不同画面间的共享

3. 是开源代码,许可证类型为Apache License 2.0

FlexAIP是MVC框架吗

诸如Cairngorm、PureMVC是对Flex画面内部进行代码划分的框架。

FlexAIP是在画面之间建立联系的框架。

它们服务的对象不同,在使用FlexAIP框架的画面内部,可以进一步使用MVC理念进行规划。

但是,RIA中,Flex完成的是视图层(View)的功能。再对视图层进一步划分MVC并不是个好主意。

作者不建议把MVC引入Flex程序中。

FlexAip是用什么开发的

是使用FlexSDK4.0(FlashBuilder4)开发的。

*稍加修改,可以用于FlexSDK3.x。

FlexAIP适用场景适用于数据导向的企业RIA应用,例如ERP。

绝大多数的企业RIA应用是数据导向的。

其需求特点是机能多,各个机能相对独立,计算密集型机能多(数据计算、数据库操作等)。

其开发特点是团队(多人)并行渐进式开发。常伴有机能变更,机能增减等外部要求。

这些特点反映在RIA应用上,就变为对其结构的要求:

  • 程序单元的划分要保证其功能的相对独立性,使其能够独立开发,独立测试。
  • 程序单元要能够很方便地进行组合,完成系统整体功能。

FlexAIP关注的是如何划分程序单元,使其具备独立开发、测试的特点;同时能够保持和外界必要的联系。

FlexAIP试图站在系统结构的角度规划程序单元之间的关系。

FlexAIP的目的

  • 程序单元可被分发,交由团队(多人)并行开发。
  • 程序单元易于独立测试。
  • 程序单元易于集成。
  • 程序单元只需要开发和业务要求有关的内容,其他共通功能都交由FlexAIP框架完成。

 

飞利浦MP3 GOGEAR MIX开不了机或停留在正在更新画面的处理

陪伴了我一年多的Philips GoGear MP3突然会卡在 正在更新 画面,Reset后依然如此,甚至开不了机了。试了试在网上寻求解决方法,发现很多朋友都遇到这个问题,但是没有人给出中肯的解决方法。

只好自己去尝试了,一番努力之后终于搞定。遵循一下步骤即可解决:

步骤一:备份好MP3上所有的数据后,格式化此磁盘,一定要注意的是,格式要设置为:Fat32(这点很重要)

步骤二:下载Philips官网提供的 Philips 装置管理员 这个软件并安装。
                 下载地址:这里是地址   位置如下图:

当您阅读这篇文章的时候,倘若其位置未发生改变的话,您可以直接从此地址下载:http://download.p4c.philips.com/files/s/sa1mxx02w_93/sa1mxx02w_93_pal_aen.zip

步骤三:安装完毕后,(此时需要将MP3连接到电脑)。启动 Philips 装置管理员,软件会自动发现您的MP3需要更新驱动。选择更新,更新完毕后,Mp3又复活过来了,嘿嘿!(坏的时候还有点伤感,想着可能要换一个了。幸好我坚持了“不抛弃,不放弃”的原则,又省了一笔钱啊!而且,用了那么久,也有了感情了……)

OK,希望能帮到你!

 

苹果电脑不为人所知的第三个创始人

今天, 苹果生意蒸蒸日上, 市值超过微软, Jobs成为高科技首领, 众多的苹果粉丝们对苹果产品的每个细节都了如指掌, 但是世界上却没有几个人知道苹果除Jobs和Wozniak以外的第三位共同创始人, Ron Wayne. (题外话: Wozniak曾经购买我的Android APP, 呵呵)

直到我今天收到一封朋友转的这样一篇文章.文章讲述了Wayne的故事, 太长了, 下边是我的汉语总结:

1. Wayne与Jobs和Wozniak一起创建了苹果电脑公司, 并设计了公司的LOGO

2. Wayne自己一个人去注册的苹果公司, 起草的三人合作合同;

3. Jobs和Wozniak每人45%的股份, Wayne得到10%, 他在团队中的作用主要是协调Jobs和Wozniak的关系, 因为两个人太年轻而经常发生争执, 而Wayne却因为大他们20岁而比较成熟;

4. 正是因为Wayne的成熟, 他认为苹果电脑的创业风险太大, 如果公司倒闭了, 他会破产的很惨, 因为Jobs和Wozniak两个人太小, 才20岁, 没有什么可以偿还债务的, 最后只有他才能承担破产责任;

5. 基于上面的担心, 在Wayne注册苹果电脑公司后的第12天, 他又回到市政厅, 填写了申报放弃苹果公司职位的表格, 把自己的10%股份以800美元价格卖回了公司;

6. 如果他没有卖掉股份, 他的股份目前价值过亿美元;

7. 如果Wayne能够在苹果工作6个月, 而不是12天, 他的人生故事也将会重写, 因为6个月后, 苹果生意开始红火;

8. 目前Wayne依靠政府救济, 卖邮票和钱币生活;

9. Wayne再也没有钱拥有一台苹果电脑, 他的电脑是一台戴尔

原文如下:

PAHRUMP, Nev. — It’s usually past midnight when Ron Wayne, co-founder of Apple — colossus of the tech world, and Silicon Valley’s most adored franchise — leaves his home here and heads into town. Averting his eyes from a boneyard of abandoned mobile homes, he drives past Terrible’s Lakeside Casino & RV Park, then makes a left at the massage parlor built in the shape of a castle.

When he arrives at that night’s casino of choice, Wayne makes a beeline for the penny slot machines. If it’s the middle of the month and he has just cashed his Social Security check, he will keep battling the one-armed bandits until 2 a.m. Wayne is waiting to hit the jackpot, and he is long overdue.

If Ron Wayne, now 76, weren’t one of the most luckless men in the history of Silicon Valley, it wouldn’t have turned out like this.

He was present at the birth of cool on April Fool’s Day, 1976: Co-founder — along with Steve Jobs and Steve Wozniak — of the Apple Computer Inc., Wayne designed the company’s original logo, wrote the manual for the Apple I computer, and drafted the fledgling company’s partnership agreement.

That agreement gave him a 10 percent ownership stake in Apple, a position that would be worth about $22 billion today if Wayne had held onto it.

But he didn’t.

Afraid that Jobs’ wild spending and Woz’s recurrent “flights of fancy” would cause Apple to flop, Wayne decided to abdicate his role as
Advertisement
adult-in-chief and bailed out after 12 days. Terrified to be the only one of the three founders with assets that creditors could seize, he sold back his shares for $800.

In a place where risk and innovation are part of the accepted equation of change, he became Silicon Valley’s ultimate what-if story — Apple’s iMadeAHugeMistake.

No second guesses

“If he’d had the foresight and, more importantly, the fortitude to hang on for another six months, it would be a completely different situation for him,” says Tim Bajarin, an analyst for Creative Strategies, who has covered Apple since 1981.

Though Wayne remains an obscure figure whose story is rarely told — and then usually as a cautionary tale — he refuses to second-guess himself.

“I don’t waste my time getting frustrated about things that didn’t work out,” he says. “I left Apple for reasons that seemed sound to me at the time. Why should I go back and ‘what if’ myself? If I did, I’d be in a rubber room by now.”

Moments later, however, he turns somber. “Unfortunately, my whole life has been a day late and a dollar short,” Wayne says.

When Apple unveils its next-generation iPhone this month, the company’s other co-founders can expect to see their personal fortunes rise. Again. Since the release of the first iPhone two years ago, shares of Apple stock have more than doubled in value. After selling and buying stock over the years as Apple became a public company, Jobs’ stake today is worth $1.5 billion. Wozniak’s Apple holdings are not a matter of public record. Neither responded to interview requests.

But even a few million would go a long way here in the high desert, especially in a town so near the middle of nowhere that it didn’t get telephones until the 1960s.

Meeting Jobs

He was 42 and chief draftsman at Atari when he first encountered 21-year-old Steve Jobs, who was freelancing at the pioneering video game company after dropping out of college. Jobs had already met Wozniak, whose designs for a computer in a box he had seen at the Homebrew Computer Club, and now he was thinking about trying to sell them.

Wayne, who still lived with his mother, served as a frequent sounding board. “He was talking about the possibility of coming up with a personal computer,” Wayne says of Jobs. “There were all these other things he wanted to do, so should he waste his time being focused on that? I told him that whatever he wanted to do, he could do it more easily with money in his pocket.”

But he cautioned Jobs never to forget that the money was just a vehicle for creating things. “But he forgot,” Wayne says now. “He probably won’t like me for saying this, but I think he got caught up in the business of business. He became so enamored with succeeding at this stuff that he began doing it for the sake of itself. He began making money for the sake of making money. What can somebody do with $200 million that they can’t do with $100 million?”

In Wozniak’s autobiography, “iWoz,” he recalls meeting Wayne and thinking, “Wow, this guy is amazing “… He seemed to know how to do all the things we didn’t. Ron ended up playing a huge role in those very early days at Apple.”

But in those early days the free-spirited Woz was reluctant to commit himself, and it was driving Jobs crazy. “There were bits and pieces of the circuit for the Apple computer that Wozniak wanted to use in other places,” Wayne recalls. “Jobs said, ‘You can’t do that. This is the property of Apple Computer.’ He had an awful time with Woz because of the difference in their personalities.”

Jobs quickly figured out that their budding partnership would require adult supervision, and asked Wayne to step in as the “tiebreaker.” The two Steves came to Wayne’s Milpitas apartment, and after two hours of thrashing it out, the older man explained to Wozniak that the electronic architecture he was creating was critical to the ongoing existence of Apple. “He finally got the message,” Wayne says. Jobs was agog.

“It was at that point he said, ‘Let’s form a company,’ ” Wayne recalls. Like a quarterback drawing a play in the dirt, Jobs came up with the idea of giving himself and Wozniak each 45 percent, the final 10 percent going to Wayne, who would mediate disputes between his headstrong partners. “That would resolve any problems forever and ever,” says Wayne, who drew up the contract on a typewriter. There was no such thing as a word processor yet. They were about to invent it.

‘Just wasn’t ready’

After the agreement was signed by all three, Wayne took it to the county registrar’s office. “And Apple Computer was born as a company,” he says.

Jobs immediately plunged the company into debt, agreeing to fill an order for 50 computers from the Byte Shop in Mountain View, then borrowing $5,000 cash and parts worth $15,000. Wayne was impressed with Jobs as a promoter — “His psyche was already fully matured,” he says — but was astonished to discover huge gaps in his new partner’s knowledge of electronics, such as aluminum’s ability to conduct electricity. “I almost lost my uppers,” says Wayne.

He also fretted that the Byte Shop — one of the first retail computer stores — “had a terrible reputation for not paying its bills.” Jobs and Wozniak were essentially penniless, which meant that creditors would eventually come looking for Wayne.

“I just wasn’t ready for the kind of whirlwind that Jobs and Wozniak represented,” he says. “I felt certain the company was going to be successful; that wasn’t the question. But how much of a roller coaster was it going to be? I didn’t know that I could tolerate that kind of situation again. I thought if I stayed with Apple I was going to wind up the richest man in the cemetery.”

It all might have turned out differently if Wayne hadn’t suffered a traumatizing failure in business with a slot machine company he started five years earlier in Las Vegas. “That was before I realized I had no business being in business,” he says. “It came to a disastrous end.”

Twelve days after Wayne wrote the document that formally created Apple, he returned to the registrar’s office and renounced his role in the company. When Jobs and Wozniak filed for incorporation a year later, Wayne received a letter asking him to officially forfeit any claims against the company, and he received another check, this time for $1,500. Taken together, the $2,300 he made as one of Apple’s founders is almost exactly one-millionth what his shares would be worth today.

Enamored with money

These days, Wayne sells stamps, rare coins and gold out of his home to supplement his monthly government check. When his precious metal clients drop by, he straps on a .38 caliber Police Special, just in case one of them tries to rob him. He has never owned an Apple computer, or any Apple product, and when Wayne recently bought his first desktop, it was a Dell. It’s been years since he last heard from Jobs.

Wayne insists he has no regrets about the choice he made then, though he’s careful not to say he would do the same thing again. “I’m as enamored with money as anybody else, and there are all sorts of things I’d love to do if I had it,” he says.

After Apple, he spent two years creating the model shop at Lawrence Livermore National Laboratory, then was chief engineer at Thor Electronics in Salinas for 16 years. He holds a dozen patents, but he has never had the money to develop them into products.

“There were at least six times in my life when I really thought that I had the world by the tail,” Wayne says, “when I thought, ‘I have an invention here that’s going to make me a fortune.’ And six times it blew up. I don’t know why, it just never happened. It’s probably because I’m not the businessman I should be.”

 

Flash Game 英文教程

  • 1. Flash Game Development with Flex and Actionscript – Getting Started
  • 2. Flash Game Development with Flex and Actionscript – Double Buffer Rendering
  • 3. Flash Game Development with Flex and Actionscript – Embedding Resources and Adding Game Objects
  • 4. Flash Game Development with Flex and Actionscript – User Input and an Animated Background
  • 5. Flash Game Development with Flex and Actionscript – Adding Weapons
  • 6. Flash Game Development with Flex and Actionscript – Collision Detection
  • 7. Flash Game Development with Flex and Actionscript – Bitmap Animations
  • 8. Flash Game Development with Flex and Actionscript – Music and Sound FX
  • 9. Flash Game Development with Flex and Actionscript – Defining a Level
  • 10. Flash Game Development with Flex and Actionscript – Tiled Background Rendering
  • 先看看英文版的吧,有机会的话再翻译成中文!

     

    Flex 中限制 TextInput 的输入设置方法

    1. 限制某个字符的输入,用符号 ^ 跟上要限制的字符,可跟多个字符

    <!– 限制字符”~”的输入 –>

    <mx:TextInput id=”xxx”  restrict=”^~” />

    <!– 限制字符”ab”的输入 –>

    <mx:TextInput id=”xxx”  restrict=”^ab” />

    2. 设置只能输入某些字符,将允许输入的字符罗列出来即可,也可以用 – 组合表示字符范围

    <!– 只能输入abc –>

    <mx:TextInput id=”xxx”  restrict=”abc” />

    <!– 只能输入小写字母 –>

    <mx:TextInput id=”xxx”  restrict=”a-z” />

    <!– 只能输入小写字母、大写字母和数字 –>

    <mx:TextInput id=”xxx”  restrict=”a-zA-Z0-9″ />

    3. 组合使用

    <!– 只能输入数字和符号”.” –>

    <mx:TextInput id=”xxx”  restrict=”0-9.” />

    <!– 只能输入除ab之外的小写字母 –>

    <mx:TextInput id=”xxx”  restrict=”a-z^ab” />

     

    [心得] 12个Flex常用功能代码

    1。 复制内容到系统剪贴板

    System.setClipboard(strContent);
    

    2。 复制一个ArrayCollection

    //dummy solution( well, it works )
    var bar:ArrayCollection = new ArrayCollection();
    for each ( var i:Object in ac ){
    bar.addItem( i );
    }
    // fantastic ! //
    var bar:ListCollectionView = new ListCollectionView( ListCollectionView( ac ).list );
    

    3。 打开一个新浏览器窗口

    navigateToURL(new URLRequest('http://ntt.cc'), '_blank');
    

    4。 刷新浏览器

    navigateToURL(new URLRequest("javascript:location.reload();"),"_self")
    

    5。 关闭浏览器

    navigateToURL(new URLRequest("javascript:window.close()"),"_self");
    

    6。 设置Alert 窗口的背景为透明

    Alert
    
    {
    
    modalTransparency:0.0;
    
    modalTransparencyBlur:0;
    
    }
    

    7。 取随机颜色

      lbl.setStyle('color', 0xffffff*Math.random());
    

    8。 清除子串左侧空格

      public function LTrim(s : String):String
    
         {
    var i : Number = 0;
    while(s.charCodeAt(i) == 32 || s.charCodeAt(i) == 13 || s.charCodeAt(i) == 10 || s.charCodeAt(i) == 9)
    {
    i++;
    }
    return s.substring(i,s.length);
          }
    

    9。 清除字串右侧空格

      public function RTrim(s : String):String
    
         {
    
    	var i : Number = s.length - 1;
    	while(s.charCodeAt(i) == 32 || s.charCodeAt(i) == 13 || s.charCodeAt(i) == 10 ||s.charCodeAt(i) == 9)
    {
    	i--;
    }
    	return s.substring(0,i+1);
          }
    

    10。 清除字串左右的空格

      public function Trim(s : String):String
    
          {
    
    return LTrim(RTrim(s));
          }
    

    11。 获取数据类型

      getQualifiedClassName(data)
    

    12。 生成随机字符串。

      private function GenerateCheckCode():String
    
         {
    
    //init
    var ran:Number;
    var number:Number;
    var  code:String;
    var checkCode:String ="";
    //get 4 radom
    for(var i:int=0; i<4; i++)
    {
    ran=Math.random();
    number =Math.round(ran*10000);            //get result like 0.1234
    if(number % 2 == 0)
    code = String.fromCharCode(48+(number % 10));        //0's ASCII code is 48
    else
    code = String.fromCharCode(65+(number % 26)) ;        // A's ASCII code is 65
    checkCode += code;
    }
    return checkCode;
    }
    
     

    如何让Chrome浏览器的Flash Debugger生效

    因为要换一下游戏的debug环境,换了Chrome浏览器来调试,结果发现debugger无效。

    于是在Chrome地址栏中输入:chrome://plugins/以查看Chrome浏览器的插件使用情况,发现Chrome自动启动了自带的Flash Player.

    看来这就是原因所在了,如下图:

    将其自带的非调试版本Flash停用就OK了。要看自己的Flash版本状态,可以进入Adobe提供的功能网址进行查看:http://kb2.adobe.com/cps/155/tn_15507.html