October 2008 Archives

/*
 * @ignore:我从cc98转载而来
 */

照片及视频由外院gg Zorow_2000友情提供。
2008年10月19日,浙大紫金港校区温州村。
---------------------------

Dust to Dust,Ashes to Ashes
Born in the Water, Gone with the Wood.
(尘归尘,土归土;
自水而来,还木而去。)

以上这段话是悼诵词,乃曰人自胎中羊水孕育而来,无论身前极尽荣华、享尽富贵,最终还是要棺椁加身,化为尘土。土木、土木,便构成了这由生到死的回归元素。自然再加上水灵灵的鸡屁股,土木更不缺生命之泉的滋润。看着他们觥筹交错、水土交融,我不禁感叹在冰岛破国、华尔街飘白、全球股市顷夜化为尘土的背景下,这个充满了泥土气息和楠木芬芳的小餐馆,果真是不见红花不闻莺语、但见群郎只闻箫声的朴实乐园啊。

官网下得,比较慢,哎,学校网络一如既往的搓

-------------------------------------------------------------------------------

就整体而言:
这次的集合性比历次的套装都完备,相互间的功能划分也更清晰,虽然这对master套装影响不大,不过对于web、standard以及design比较重要

UI界面整体划一,我很喜欢小而精细的东西,这次还是非常满意的,虽然现在双屏幕,但在cs3中还是多有不便,更加浓缩,不想截图了,对于多样性的软件:比如flash cs4这种集合设计 开发的默认集合多种UI配置,虽然以前也有,不过这次差异大的多,都多了个搜索栏,指向是adobe的

作为整体而言,Adobe Connection已经集合进去,这是个简洁有效的白板共享,不过目前好像都是登陆adobe官方网站(需要adobe id)使用,这个以前尝试过,比我写的牛逼
不过还是觉得如果有自定义服务器会好点,毕竟工作组需要自己的Connection节点,而不是什么都去链接官网,毕竟国内网络环境嘛

Bridge也进来了,希望这个桥梁会强劲些吧,不然套装就没有什么意义了

版本控制没有使用过,cs3就有了,因为习惯svn,估计adobe这个更适合套装

Adobe MAX 2008临近

| No Comments | No TrackBacks

收到kingda转发的邮件,原文:

Hi there!
I would like to ask you for help on promoting Adobe MAX 2008, Milan, which is only a month and a half away (Dec 1-4).  This is the time your leadership in the community will shine!  Please help us push the news out to the community and attract more people to it.
Here are some tips on how you can contribute:
-       Create buzz through your blogs, sites, UG meetings, conferences and other gatherings
-       Come up with a fun idea of going to Milan in a group - organize a bus tour together with your group, set up a geek's night in your hotel room, organize un-conference activities, create a competition targeting MAX..... :)
-       Please use the link to the YouTube 30onMAX site to show them that it will be the "event of the year" :) http://kr.youtube.com/results?search_query=30onMAX&search_type=&aq=f  Have them record fun videos and upload them onto the site
-       If there is a local Adobe office in your city, contact the office and find out if there is something you can help on
-       Please do inform your community of the extended date for early bird pricing; early bird pricing is valid until the 19th of Oct!!
Please contact me if you have creative ideas on how we can get more people to attend MAX Milan.

IMPORTANT NOTE!
I will run EMEA Community Summit on the pre-event day (11/30) to have peer-to-peer discussions on various topics about running a user group and/or being an Adobe Community Expert.
More news will come out next week, so stay tuned.

I look forward to your continuous support :)

Cheers,
Sumi

Sumi Lim
Developer Relations Manager, EMEA (Europe, Middle East & Africa)
345 Park Ave. San Jose, CA 95110-2704
Mobile: 415 297 4019  Work: 408 536 2069
lim@adobe.com

http://max.adobe.com

----------------------------------------------------------------------------------------------------------------

(稍微翻译了点)

你好!

我期望你能帮忙宣传在米兰举办Adobe MAX 2008大会,大会据此还有一个半月(12月1号-4号),在社区中,这个是一个很好展示你的领导能力的时刻。

请帮助我们把这个消息发到社区,并借此吸引更好的人参与进来

这里有些建议,你可以为大会做出贡献:

--在你的博客、网站、网络会议以及其他的聚合体中发布消息

--组队来米兰是一个有趣的注意,组织好团队大巴旅行线,在旅店中举行同行业夜谈,举办不那么正式性活动,或者针对MAX大会的竞赛,诸如此类

--请使用http://kr.youtube.com/results?search_query=30onMAX&search_type=&aq=f这个链接到YouTube,你可以找到关于30onMAX的记录,把MAX大会的事情都录制成视频发布上网站来分享吧

--请尽快告知你的社区,预定价格在10月19号前有效

如果你对如何吸引更多人参与到米兰MAX会议有什么创新性意见,请联系我(不是我)

注意:

我将在前一天(11月30号)启动EMEA高峰会议来点对点对众多话题讨论,比如举办用户组和成为adobe社区专家等。

下周将有更多消息,敬请期待

我期待你不断的支持:)

之后就是地址呀啥的

 

有兴趣的要关注咯

Good Luck & Have Fun!

感谢

| 4 Comments | No TrackBacks

大学最后一年了,最后一年决定住在学校宿舍

几年来游离于学校与外面,不管浙大有多少不足,当每次要离开的时候我都能比上一次更加体会到曾经学长学姐对学校的留恋,感谢浙大的宽松环境,像我这样的人能混到现在对此感触很深

老爸老妈,这几年无论我怎么样的决定,你们都能站在我的立场支持我,几年来都是一年只回去一次;老哥,每次我的决定你都那么相信我,无条件支持我,有你在广东我也可以放开手去找找自我

感谢kingda,还记得大一最无聊无所事事的时候,遇到你,我的大学生活因此产生转折

感谢MoonSpirit,合作多年啦,你依旧是我最好的合作伙伴和兄弟

感谢qsc,唯一参加过的社团,让我有了更多的了解和想法

感谢遇到的众多学长,有在读研究生、毕业工作的,也有博士,你们把你们的大学生活或者工作经历告诉我,使得我得以比同届更早了解人生规划

感谢Andy Chen,一年来,经历这么事情,我明白了很多;感谢Water,在我最焦虑担忧的时候,你的到来改变了这一切,我也学会更加专注,愿你们早日成功

感谢alag,当年自不量力的狂妄会变得低调,也改变了我发展的区域

感谢Lee,次次熬夜的时候我知道你还在线

感谢土木的兄弟们,我从来没有后悔在土木专业,都是因为有你们,我明白房地产低迷,不过所有阻碍最终会消散,好运

 

感谢我的心,让我明白这些

我知道我自己需要一个较稳定的状态,总是朝着变动的地方走去,总给人忽略现状的稳定的感觉,我明白稳定状态的不易,只是我还是不明白我到底能做什么,没能到有把握操控这些的程度,我还是不断的发散去寻求

我不敢相信命运,了解太多总会担忧,了解太多总会无虑吧

无论如何,谢谢生命中经历的点滴

下面给出一个demo:

首先:我有一个FooLib.swf,其中代码如下:

package {
 import flash.display.Sprite;
 /**
  *
  * @author magicianzrh
  * @note:for test bytes load and call the mothod of FooLib instance
  *    http://www.actionscript3.cn/magicianzrh
  *
  */
 public class FooLib extends Sprite
 {
  public function FooLib()
  {
   trace("FooLib class construct function");
  }
  
  public function getInfo():String {
   
   return "some information from FooLib instance";
  }
 }
}

其次,我用URLLoader载入,dataFormat使用URLLoaderDataFormat.BINARY,之后用Loader.loadBytes载入URLLoader中的byteArray,具体代码如下:

package {
 import flash.display.Loader;
 import flash.display.Sprite;
 import flash.events.Event;
 import flash.net.URLLoader;
 import flash.net.URLLoaderDataFormat;
 import flash.net.URLRequest;
 import flash.utils.ByteArray;
 /**
  *
  * @author magicianzrh
  * @note:load FooLib.swf by URLLoader and get the class
  *    http://www.actionscript3.cn/magicianzrh
  *
  */
 public class loadBytesAsLibs extends Sprite
 {
  private var myURLLoader:URLLoader;
  private var myLoader:Loader;
  private const SWF_URL:String = "FooLib.swf";
  private const CLASS_NAME:String = "FooLib";
  
  public function loadBytesAsLibs()
  {
   myInit();
  }
  
  private function myInit():void {
   myURLLoader = new URLLoader();
   myURLLoader.dataFormat = URLLoaderDataFormat.BINARY;
   myURLLoader.addEventListener(Event.COMPLETE,  urlLoaderCompleteHandler);
   myURLLoader.load(new URLRequest(SWF_URL));
  }
  
  private function urlLoaderCompleteHandler(event:Event):void {
   myLoader = new Loader();
   myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,  loadBytesCompleteHandler);
   myLoader.loadBytes(myURLLoader.data as ByteArray);
  }
  
  private function loadBytesCompleteHandler(event:Event):void {
   trace("now is the loader loaded event handler part");
   var loadedClass:Class = myLoader.contentLoaderInfo.applicationDomain.getDefinition("FooLib") as Class;
   trace(new loadedClass().getInfo());;
  }
 }
}

最后,我说明下:

在loadBytesCompleteHandler前,其实FooLib这个类已经构造了一次,debug模式下,可以方便看到trace,当然获取FooLib实例方法是没问题的

可是第一次实例化的实例去哪里了呢?

这就是我的问题了,我断点查看过无果,不知道大家对此有什么看法?

 

demo代码打包(是flex builder下的as project):

loadBytesAsLibs.zip 

----------------------------------------------------------------------------------------------

As you see(the demo zip and demo code above),I code a demo that,using URLLoader load a FooLib.swf by binary mothod and Loader load the byte array from data of URLLoader.

You can see the information by trace,the FooLib class has been constructed twice,of course,I finished the second construction.

WHAT I really want is getting the instance of FooLib at the first construction.

If you kown something about those,give this artice a reply or send me a mail:magicianzrh@gmail.com.And I think leaving a reply is good for more ActionScript3 programmer.

 

Good Luck & Have Fun!

 

今天不小心更新了下

flash player Version 10,0,12,36

http://www.adobe.com/go/getflash

想当年刚到浙大,听学长学姐谈论要不要去毅行,我听成"异形",就像我又不是铁血战士,后来了解到浙大毅行的历史,大一就参加了

之后都因为些原因没有再去过,今年春季飘渺88的人没有精力办了,看来这次秋学期的也凶多吉少,传统民间项目可能真的要没了

哎,也没办法

如果再有,我还是要当野队中的冲锋队,就是不知道现在还能不能有当年冲向拦野猪的铁丝网的勇气,o(∩_∩)o...哈哈

 

Good Luck & Have Fun!(回忆下吧)

偶尔看到一篇文章

介绍cacheAsBitmap的缺点,http://www.bytearray.org/?p=290,最后有个demo,作为比较

As I said before, when cacheAsBitmap is set, the DisplayObject is cached as a bitmap on memory and the Flash Player is using this copy to render it on screen. The main problem that we have here is that if you do more than moving this DisplayObject on x and y, for each frame the Flash Player is updating the cached copy on memory before updating the screen. So if you apply any rotation, scale, alpha, or even if you have any key frames in your DisplayObject you will get performance decrease.

Hopefully, you can bypass this limitation by creating a BitmapData by yourself, draw the MovieClip on it, and pass it to multipe Bitmap instances.

大致说:正如以前说的(>http://www.bytearray.org/?p=117),当cacheAsBitmap被设置时,DisplayObject会当作像素化图片缓存在内存中,Flash Player使用这个副本来生成并显示出来。主要问题是,如果你不仅仅只是在x、y轴移动DisplayObject,对于每一帧,Flash Player都会在显示之前更新缓存的像素化图片。所以,如果你对旋转、缩放、透明度之类进行操控,即使是在任意帧中改变,DisplayObject都会延缓你获得显示的进度。

当然,你可以忽略这个限制,而自己创建一个BitmapData之后再创建一个MovieClip装载它,之后把它床底给多个像素化实例。

 

这样,明白其中缘故,我觉得就不会滥用cacheAsBitmap了,想有感性体会的,就打开http://www.bytearray.org/?p=290,看看作者的demo示例

 

Good Luck & Have Fun!

 

国庆要结束了

| No Comments | No TrackBacks

这几天过得真是爽

睡觉睡到自然醒,就差数钱数到手抽筋

浙大紫金港这边望月公寓的麻将小包间也很划得来,看了下三国杀,跟杀人游戏差不多,也不错,不过没怎么玩,就大概熟悉了下玩法

终于有时间可以玩玩存在台式机上很久的游戏了,英雄无敌5还有文明3、文明4,最新的《文明4:殖民统治》跟《席德梅尔的海盗》真是神似,席德梅尔的海盗那是相当的赞呀

文明3的地图编辑器果然出自大家之手,厉害

还有一款刚出英文版的--国王的恩赐:传奇,跟英雄无敌5极为相似,不过战略方面没有行动力,倒也体现出可以引怪微操方面的玩法,战役地图小了点,不过很是华丽,显卡要求高呀,我T61只能开1024*768玩玩,不过玩着打这么多场也蛮累的,前期没兵,都要算着打

 

Lee也到德国了,据她在xiaonei发表的日志来看,蛮艰辛的旅程呀,时差东一区,要扣掉6小时

我蛮想看看在我T61上已经激活的windows server 2008 enterprise的ghost镜像在她的上面能不能激活,不过只有内存差异,我估计也没有什么问题的

 

国庆就快结束了,大学的第四个国庆了,好像还是没有什么特别有意思和让我激动的事情

Good Luck & Have Fun!

About this Archive

This page is an archive of entries from October 2008 listed from newest to oldest.

September 2008 is the previous archive.

November 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.

3D Live Statistics