Category Archives: Flash

腾讯图片加载的诡计

今天偶尔在腾讯上看八卦新闻来着, 注意到了一个奇怪的现象, http://ent.qq.com/a/20101011/000085.htm#p=11 诸如此类的带图片的新闻, 在加载其他张图片时是会显示加载进度的, 但是右键图片发现此处并非flash所做, 真是奇怪了, 难道腾讯在此处没有用flash, 而直接能过javascript来加载图片并且获取到图片加载进度? 感觉不太可能, 在网上找了一阵也没发现用纯javascript实现的这种效果, 于是下载整个网页来看看腾讯到底怎么整出来了. 这一看终于明白了, 原来一切只是表象而已, 事实上还是flash完成了加载.

直接另存这个页面, 在相应的文件夹下有一个叫hd_min_v1.js的文件, 还好里面的变量没被压缩, 清晰好认, http://javascript.about.com/library/blformat.htm 直接复制到这个网页, 格式化一下, 好认点, 可以看到里面有一个loadingProcess的对象, 内部有一个progressPicHandler的方法, 里面完成了对进度的计算并且写入到一个loading的html元素里:

但是再用ultraedit搜索整个文件夹你也看不到哪边调用了这个方法, 这时回过头来看代码, 里面的init方法中有嵌入一个flash, 所以猜测还是flash里调用了这个方法, 找到文件夹中的loadingAs3.swf这个文件, 通过工具反编译, 终于在里面发现了调用这个方法的代码:

哎, 整活了半天, 才知道原来腾讯也只是通过js向swf发送加载图片请求, 而在swf加载图片的时候swf在侦听加载进度的方法中再次调用js, 完成将进度写到html里, 转了一圈, 终于回来了.

Flash中彩色图变黑白图

这两天在看ARToolKit,发现了里面有一段代码,是将彩色的图片变成黑白的。

做了一个简单的例子:

[as3]
package
{
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;

public class Test extends Sprite
{
private static const ZERO_POINT:Point = new Point();
private static const MONO_FILTER:ColorMatrixFilter = new ColorMatrixFilter([
0.2989, 0.5866, 0.1145, 0, 0,
0.2989, 0.5866, 0.1145, 0, 0,
0.2989, 0.5866, 0.1145, 0, 0,
0, 0, 0, 1, 0
]);

public function Test()
{
var char:Char = new Char();
var inbmp:BitmapData = new BitmapData(char.width, char.height, true, 0x000000);
inbmp.draw(char);

var outbmp:BitmapData = new BitmapData(inbmp.width, inbmp.height, false, 0x0);
outbmp.applyFilter(inbmp, inbmp.rect, ZERO_POINT, MONO_FILTER);

addChild(new Bitmap(outbmp));
}
}
}
[/as3]

Test.as作为一个Fla文件的文档类,Char是Fla中的一个可显示的对象。看代码的意思是对原始的彩色图片中的RGB色作一个计算:
新R = 新G = 新B = 0.2989 * R + 0.5866 * G + 0.1145 * B;
整不明白0.2989,0.5866,0.1145这三个常数从何而来,不过图确实变成黑白的了。

[转][翻译]Flash现实增强技术入门指南

转自:http://www.asbinbin.com/?p=8

由于最近在研究Flash的3D及AR(Argument Reality)技术。因此这段时间集中读了一些相关方面的资料。谈不上分享经验,先翻译一篇Mikko Haapoja的文章作为开始吧。这篇博文是他在Saqoosha的《FlarToolkit入门指南》的 基础上进一步对Spark类库中的FlarToolkit(一个实现Flash AR技术的开源类库)做了比较详细的入门指导。(注:本人首次尝试翻译,欢迎大家指正。转载请注明出处)
ok.开始吧—————————————————

《FlarToolkit/Flash 现实增强技术入门指南》
翻译:盐酸酸 原文地址:http://www.mikkoh.com/blog/?p=182

最近我正在尝试着研究一下FlarToolkit。什么是FlarToolkit?FlarToolkit是一 个实现Flash 现实增强技术的开源类。我在另一篇帖子里介绍了有关 它的更多细节。
我打算先讲解一下如何基于FlarToolkit开发。FlarToolkit开发时比较困难的 一点是代码内几乎所有的注释都是日文,所以如果你打算查看代码(而且你不会日语),你就不得不耗费更多的精力去研究。
开始之前,先下载这个例子(点我下载)。这个例子基于Saqoosha的简易方块的例子,但是更加简单易读。
OK,我们现在就开始学习FlarToolkit啦!

第一步:下载
在一开始,我访问了Saqoosha的博客,正打算用Google Translater把页面翻译一下时,却发现了我最熟悉的三个字母“SVN”。HAH…有了它就好办了,我们先利用SVN工具把FlarToolkit项目全部下载吧。
FlarToolkit项目的SVN url:
http://www.libspark.org/svn/as3/FLARToolKit/trunk
(译者注:SVN工具大家应该都很熟悉了吧,如果你不知道什么是SVN,建议你先看看SVN中文站 。原文作者也提供了一个参考链接,是PV3D的SVN下载帮助)

第二步:查看例子和源码
在我想了解怎样使用某个类库之前,都会先去查看一下它提供的例子及源码。现在我来总结一下我在学习FlarToolkit过程中的一些收获。
首先开始于Saqoosha的SimpleCube例子。我个人并不太喜欢他这个应用的写法(当 然从对象可复用的角度上说它是非常不错的)。
在那个例子中有三个类:ARAppBase,PV3DARApp,和 SimpleCube

三个类分别控制着AR应用的一个部分。但是这样的代码读起来比较困难,因为PV3DARApp继承自ARAppBase, 而SimpleCube继承自PV3DARApp。为了便于阅读学习,我把上面的 三个类合并到了一起。(当然这样并不符合可复用的原则)
FlarApp一共包含5个部分:
1.摄像头参数文件
2.标记文件
3.标记检测器
4.Flar Base Node(译者注:其实这个FLARBaseNode的实例就是我们装载3D物体的容器,下 面会有详细的解释)
5.Papervision(译者注:这是一个flash的 3D引擎)

摄像头参数
该摄像头参数文件是从外部加载的二进制文件。一开始我不知道它到底是如何而来,我到 Saqoosha的博客上去询问,他回复说这是由一个ARToolkit的一个附属程序生成的 (注:FlarToolkit是由ARToolkit演化而来,ARToolkit是现实增强技术在C++及Java等 开发语言上的实现)。这个程序名为calib_camera2”
Calib_camera2创建这个二进制的摄像头参数文件,这个文件是用来纠正从摄像头获取图像的扭曲及变形的。你可以从这里下载这个程序。但我想还是使用FlarToolkit中提供的这个原始的“camera_para.dat”文 件会更好。(我想大多数人都会这么做的)

标记文件
标记文件中保存的是一个图案,Flar会在你的摄像头获取的影像中寻找这个图案。在我的制作的项目中它在这个路径下“lib/mikko.pat”。 如果你打开这个文件,你会发现有4个16 × 48矩阵。它们分别代表着标志4个不同的方向。Flar会将你的标记图案看作一个16×16的二维码。文件中的每一个矩阵是16 × 48,是因为要包含三种颜色(红,绿,蓝)
Saqoosha已经建立了一个Air应用来制作这些标记文件。你可以下载该Air程序从这里
可以按照下列步骤创建一个标记文件:
1.标志设计使用以下规格,你可以在方框中放置各种你想用的图形。但是我想一些棱角分明的图案会更适合些。

2.打印出你设计好的图案,启动刚才下载的Air程序,并将你打印好的图案放到摄像头前。当程序中有一个红色的框出现在你的图案周围后,点击“save pattern”。生成工作就完成啦。
这是整个应用中比较关键的步骤。

标记检测器
标记检测器的作用就是从你摄像头中获取的bitmapdata中获取标记文件中定义的图案。一旦它找到定义的图案就会告知程序,程序就会从检测器中获得一 个变换矩阵来摆布FlarBaseNode了。

FlarBaseNode
这个FlarBaseNode其实就是用来显示Papervision 3D物体的容器。利用从标记检测器中得到的变换矩阵来控制我们的3D物体的3维空间坐标。

Papervision
它是Flar App的最后一块拼图了。我真的不想对它讲太多的细节了。如果你对这个3D引擎感兴趣可以直接到Google Code中找到它(点这里到PV3D的 页面

一些注意事项:
1.编译时遇到错误:
Error: Attempted access of inaccessible property _projectionthrough a reference with static typeorg.libspark.flartoolkit.pv3d:FLARCamera3D.

可以这样解决这个问题

到这个类中org.papervision3d.cameras.Camera3D
修改这个变量的命名空间
private var _projection:Matrix3D;
改为
protected var _projection:Matrix3D;
这并不会破坏PV3D的功能,只是用来让FlarToolkit中的FlarCamera3D可以调用Camera3d 类。

2.这个问题我也不知道为什么是这样。因为某些原因,你不得不设置Papervision的viewport为两倍。如果你不这样,你的3D物体不 会出现在你的视频显示范围内。但即使这样做了,有时候显示也并不太完美。在Saqoosha的例子中,他将viewport又平移了-4像素。我一直不喜 欢这样把摄像头中的东西都放大了两倍显示在那里。
好,现在该轮到你了。有什么问题,欢迎大家交流。我不知道所有的答案,但我会尽我所能回答这些问题。
–End–
翻译完了,其中大部分是意译。如果有错误,欢迎大家留言指正。——盐酸酸

Flash CS5的重大BUG?无法打开保存的文件

之前用的Flash CS5是从别的网站下的,怀疑是版本有问题,重新从官网下载了一个安装,发现还是有同样的问题。
一个原本CS4的FLA文件,用Flash CS5另存一下就不能再正常打开了。并不是所有的FLA文件都会这样,但是对于一个特定的FlA总会出现这样的错误。

这是保存前的文件,大小有120KB:


另存为CS5格式后,文件变小了很多,只有59KB了。

双击文件,已经打不开了。

在点击最近打开的文件后,输出窗口报的错误:

而此时,我的Flash CS5是最新的,已经安装完一个更新,显示没有可用的更新的。

Adobe Flash CS5 序列号

1302-1626-3178-6899-0532-6377
1302-1677-8266-4817-9642-8550
1302-1859-8081-9967-3214-4256
1302-1461-2638-7097-8855-1352
1302-1882-7958-1279-8900-9943
1302-1666-6298-3225-9340-4868
1302-1856-1610-7184-8664-4749
1302-1629-3421-1743-8666-3332
1302-1580-7460-5684-0624-4217
1302-1164-5093-4927-9598-6013
1302-1464-0921-2126-3896-7995
1302-1421-8825-9033-5513-9483
1302-1882-1509-5127-8217-7350

Adobe CS5 安装失败出现Exit Code: 7的解决方法

之前有安装过Adobe CS5 Master Collection,但是后来发现Flash CS5出现了一个怪异的问题,在将某些CS4版本的文件保存为CS5后出现文件再也打不开的问题,就怀疑是这个版本有问题,于是就卸载了,从官网上重新下载了一个版本来安装,先是下了一个Flash CS5,安装时一直出现:

Exit Code: 7

这样的错误。没办法,又下了一个Adobe CS5 Master Collection,安装时出现了同样的错误,大体上的错误信息是:

Exit Code: 7

-------------------------------------- Summary --------------------------------------
- 0 fatal error(s), 93 error(s), 66 warning(s)
WARNING: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has recommended dependency on:
WARNING:         Family: Adobe Web Suite CS5
WARNING:         ProductName: Adobe Media Encoder CS5 X64
WARNING:         MinVersion: 0.0.0.0
WARNING:         This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
WARNING:         Removing this payload from the dependency list.
WARNING: Payload {DC452AC2-E7C5-4FBA-9162-F14F652E9196} Adobe Flash CS5_AdobeFlash11-en_USLanguagePack is already installed and the session payload {14A2CC02-4638-405D-8190-ECD7BFD32D6E} Adobe Flash CS5_AdobeFlash11-en_USLanguagePack has no upgrage/conflict relationship with it.
WARNING: Payload {6CBB5000-010A-11DF-8C87-0024E8692489} DeviceCentral_DeviceCentral3LP-en_GB is already installed and the session payload {1D830E80-28A4-11DF-A025-0024E8692489} DeviceCentral_DeviceCentral3LP-en_GB has no upgrage/conflict relationship with it.
WARNING: Payload {1AD9BE12-7850-440B-B925-5416FD526F7E} Adobe Flash CS5_AdobeMobileExtension_Flash11-en_US is already installed and the session payload {26B0DF8D-3A8D-4BA9-B131-3B0D9EE87655} Adobe Flash CS5_AdobeMobileExtension_Flash11-en_US has no upgrage/conflict relationship with it.
WARNING: Payload {74102D0E-082F-48c7-93C5-C71D5AA9F68F} Adobe Flash Player 10 Plugin is already installed and the session payload {40F95A03-885A-45fb-9A14-486BEFEDDF34} Adobe Flash Player 10 Plugin has no upgrage/conflict relationship with it.
WARNING: Payload {FB7F30B6-BFBF-4d2c-9F61-B5533659ACBE} Adobe Flash Player 10 Plugin is already installed and the session payload {40F95A03-885A-45fb-9A14-486BEFEDDF34} Adobe Flash Player 10 Plugin has no upgrage/conflict relationship with it.
WARNING: Payload {8FFDDFCA-7540-47F9-928B-1C2CA9CFADF0} Adobe Flash CS5_AdobeMobileExtension_Flash11-mul is already installed and the session payload {579FDC01-BA85-49E7-B16A-2C4CB55F7ACD} Adobe Flash CS5_AdobeMobileExtension_Flash11-mul has no upgrage/conflict relationship with it.
WARNING: Payload {4113D4C1-A4B3-4d3f-921A-8A8DEA2D7E1B} Adobe Flash Player 10 ActiveX is already installed and the session payload {7E5AA19B-0B85-4f44-BA26-728851489200} Adobe Flash Player 10 ActiveX has no upgrage/conflict relationship with it.
WARNING: Payload {5EE868D6-7B6B-49ee-AF60-09B1358AFFD7} Adobe Flash Player 10 ActiveX is already installed and the session payload {7E5AA19B-0B85-4f44-BA26-728851489200} Adobe Flash Player 10 ActiveX has no upgrage/conflict relationship with it.
WARNING: Payload {0A195449-BB77-4F77-B967-0EA64B0970E6} Adobe Flash CS5 is already installed and the session payload {CFC9F871-7C40-40B6-BE4A-B98A5B309716} Adobe Flash CS5 has no upgrage/conflict relationship with it.
WARNING: Payload {55010CE4-4388-4B9A-9345-2521AC6A212E} Adobe AIR is already installed and the session payload {F6FA54C9-3E8F-4416-905C-DA5398DF9640} Adobe AIR has no upgrage/conflict relationship with it.
WARNING: OS requirements not met for {694213D7-1E0E-4C8F-B822-E2E3680C0FCE}
WARNING: OS requirements not met for {6E505C8F-2896-11DF-9B64-0013724DD917}
WARNING: OS requirements not met for {CFC9F871-7C40-40B6-BE4A-B98A5B309716}
WARNING: OS requirements not met for {E4E188D2-27D5-4E4C-92CE-87F9D24AD2F6}
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
WARNING: Payload cannot be installed due to dependent operation failure
ERROR: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has required dependency on:
ERROR:         Family: CoreTech
ERROR:         ProductName: Adobe Player for Embedding x64
ERROR:         MinVersion: 0.0.0.0
ERROR:         This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
ERROR:         Removing this dependency from list. Product may function improperly.
ERROR: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has required dependency on:
ERROR:         Family: Shared Technology
ERROR:         ProductName: Photoshop Camera Raw (64 bit)
ERROR:         MinVersion: 0.0.0.0
ERROR:         This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
ERROR:         Removing this dependency from list. Product may function improperly.
ERROR: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has required dependency on:
ERROR:         Family: CoreTech
ERROR:         ProductName: AdobeCMaps x64 CS5
ERROR:         MinVersion: 0.0.0.0
ERROR:         This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
ERROR:         Removing this dependency from list. Product may function improperly.
ERROR: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has required dependency on:
ERROR:         Family: CoreTech
ERROR:         ProductName: Adobe Linguistics CS5 x64
ERROR:         MinVersion: 0.0.0.0
ERROR:         This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
ERROR:         Removing this dependency from list. Product may function improperly.
ERROR: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has required dependency on:
ERROR:         Family: CoreTech
ERROR:         ProductName: AdobePDFL x64 CS5
ERROR:         MinVersion: 0.0.0.0
ERROR:         This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
ERROR:         Removing this dependency from list. Product may function improperly.
ERROR: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has required dependency on:
ERROR:         Family: CoreTech
ERROR:         ProductName: AdobeTypeSupport x64 CS5
ERROR:         MinVersion: 0.0.0.0
ERROR:         This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
ERROR:         Removing this dependency from list. Product may function improperly.
ERROR: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has required dependency on:
ERROR:         Family: CoreTech
ERROR:         ProductName: Adobe WinSoft Linguistics Plugin CS5 x64
ERROR:         MinVersion: 0.0.0.0
ERROR:         This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
ERROR:         Removing this dependency from list. Product may function improperly.
ERROR: Verifying payload integerity : Failed with code 1
ERROR: MsiConfigureProductEx failed with error: 1612
ERROR: Payload {1D830E80-28A4-11DF-A025-0024E8692489} has an action "install" but no resultState
ERROR: The following payload errors were found during install:
ERROR:  - Adobe CSXS Infrastructure CS5: Install failed
ERROR:  - Microsoft_VC90_ATL_x86: Install failed
ERROR:  - SiteCatalyst NetAverages: Install failed
ERROR:  - Microsoft_VC90_CRT_x86: Install failed
ERROR:  - Adobe Bridge CS5: Install failed
ERROR:  - Microsoft_VC80_ATL_x86: Install failed
ERROR:  - Adobe Flash CS5_AdobeFlash11-en_USLanguagePack: Install failed
ERROR:  - Adobe Flash CS5_AdobeMobileExtension_Flash11-en_US: Install failed
ERROR:  - Adobe XMP Panels CS5: Install failed
ERROR:  - Adobe Player for Embedding: Install failed
ERROR:  - AIR2 For Adobe Flash Pro: Failed due to Language Pack installation failure
ERROR:  - Suite Shared Configuration CS5: Install failed
ERROR:  - Photoshop Camera Raw: Install failed
ERROR:  - AdobeColorCommonSetCMYK: Install failed
ERROR:  - AdobeHelp: Install failed
ERROR:  - Camera Profiles Installer: Install failed
ERROR:  - Adobe Flash Player 10 Plugin: Install failed
ERROR:  - AdobeColorJA CS5: Install failed
ERROR:  - Adobe ReviewPanel CS5: Install failed
ERROR:  - Adobe Flash CS5_AdobeMobileExtension_Flash11-mul: Install failed
ERROR:  - Adobe BrowserLab CS Live: Install failed
ERROR:  - Microsoft_VC90_MFC_x86: Install failed
ERROR:  - CSXS Story Extension: Install failed
ERROR:  - Adobe Linguistics CS5: Install failed
ERROR:  - PDF Settings CS5: Install failed
ERROR:  - AdobeTypeSupport CS5: Install failed
ERROR:  - AdobeColorCommonSetRGB: Install failed
ERROR:  - Adobe Flash Player 10 ActiveX: Install failed
ERROR:  - Adobe CSXS Extensions CS5: Install failed
ERROR:  - AdobeOutputModule: Install failed
ERROR:  - AIR2 For Adobe Flash Pro_AIR2_Flash11-en_US: Install failed
ERROR:  - DynamiclinkSupport: Install failed
ERROR:  - Adobe WinSoft Linguistics Plugin CS5: Install failed
ERROR:  - AdobeColorEU CS5: Install failed
ERROR:  - AdobePDFL CS5: Install failed
ERROR:  - AdobeCMaps CS5: Install failed
ERROR:  - AdobeColorNA CS5: Install failed
ERROR:  - Adobe SwitchBoard 2.0: Install failed
ERROR:  - Adobe Flash CS5: Failed due to Language Pack installation failure
ERROR:  - Microsoft_VC80_MFC_x86: Install failed
ERROR:  - Pixel Bender Toolkit: Install failed
ERROR:  - Microsoft_VC80_MFCLOC_x86: Install failed
ERROR:  - Players For Adobe Flash Pro: Install failed
ERROR:  - AdobeJRE: Install failed
ERROR:  - Adobe ExtendScript Toolkit CS5: Install failed
ERROR:  - TLF For Adobe Flash Pro: Install failed
ERROR:  - Adobe AIR: Install failed
-------------------------------------------------------------------------------------

网上搜索了很多,都没找到解决办法,于是只能自己解决了。
“C:\Program Files (x86)\Common Files\Adobe\Installers\Creative Suite 5 Master Collection 5.0 xx-xx-xxxx.log.gz”解压了这个文件(xx-xx-xxxx是安装时的日期),查看里面的具体出错信息。发现里面有这样一段:

*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Installer Operation: ModifyThirdPartyPayloadOperation
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Modify Thirdparty payload
Repairing third party payload with source: D:\Users\Christopher\Desktop\Adobe CS5 Master Collection\Adobe CS5\payloads\Microsoft_VC90_CRT_x86\Microsoft_VC90_CRT_x86.msi
Repairing third party payload
MsiSourceListAddSource for  D:\Users\Christopher\Desktop\Adobe CS5 Master Collection\Adobe CS5\payloads\Microsoft_VC90_CRT_x86\Microsoft_VC90_CRT_x86.msi is 0
MsiSourceListSetInfo with updated name: Microsoft_VC90_CRT_x86.msi, Result: 0
Payload source is not removable so not updating media info
Configuring MSI ProductCode: {08D2E121-7F6A-43EB-97FD-629B44903403}
Setting AFLPath C:\Program Files (x86)\Common Files\Adobe\Installers\{288DB08D-0708-4A94-B055-55B99E39EB62}
MsiConfigureProductEx command line:
 ADOBE_SETUP=1 MSIRESTARTMANAGERCONTROL=Disable REBOOT=ReallySuppress   REINSTALL=ALL REINSTALLMODE=pvoums REBOOT=ReallySuppress PROPERTY_FILE="C:\Users\CHRIST~1\AppData\Local\Temp\adbE7FB.tmp"
1: 0 2: 1033 3: 1252 
1: 0 2: Microsoft_VC90_CRT_x86.msi 3: {08D2E121-7F6A-43EB-97FD-629B44903403} 4: {08D2E121-7F6A-43EB-97FD-629B44903403}; 5: 0 6: 0 7: 1 8: 0 
1: 2 2: 0 
1: 2 2: 1 
[    6124] Wed Jun 23 19:07:33 2010 ERROR
MsiConfigureProductEx failed with error: 1612

相信就是Microsoft_VC90_CRT_x86.msi这个文件有问题了。
到安装文件夹里找到了这个文件(在Adobe CS5 Master Collection\Adobe CS5\payloads\Microsoft_VC80_CRT_x86里)。双击这个安装文件,哈哈,出现了这样的界面:

看样子,这个程序是被安装了,而“Adobe CS5 Master Collection\Adobe CS5\payloads\”目录下有好多个“Microsoft_”开头的文件夹,其中某些是以“_x86”结尾的,有些是以“_x86_x64”结尾的,我不机子是Windows 7 64位的,不知道是不是应该装“_x86_x64”结尾的而不应该装“_x86”结尾的。管不了那么多了,反正先都点一遍,如果出现的画面显示已经安装的就都卸载了。
重新双击安装程序安装,终于,这一次正常了。

Silverlight看上去是斗不过Flash的

前一阵子的一个Silverlight项目让我感觉到Silverlight明显的不如Flash,在网页富媒体上,以现在的Silverlight,是没办法斗过Flash的,至少在富媒体广告方面是这样的。

Silverlight中的字体处理实在是没法跟Flash比的,只要随便嵌入字体都会让文件变大很多,在广告对文件大小要求很严格的情况下,这是无法容忍的。

Silverlight的XAP文件本质上是一个ZIP压缩文件,并没有作特别的文件格式优化,这点比Flash可差多了,Flash的文件对于导入的图片等资源都可以优化,Silverlight确只是简单地嵌入。

在动画方面Silverlight也明显是落后于Flash的,甚至作一个遮罩都没有Flash那么方便。

动态语言有时似乎更合适作这方面的工作,而C#似乎有点古板了(虽然C#4里已经加入了动态类型,但是我还没有用过呢)。

如今HTML5似乎也很火的样子,看来Silverlight在网页富媒体上的前途不容乐观啊,虽然很多做.net的程序员蛮喜欢它的,但是市场决定一切,最终用户从来都不管什么技术的。

Flash程序员常用软件及开源程序

常用软件

1.Firefox浏览器,主要用于Flash的调试.
Firefox附加插件:
firebug
flashtracer,调试时查看Flash调试信息.
webdeveloper,最常用的就是在调试时禁用缓存.
flashplayer debugger 配合flashtracer,如果不是这个版本的FlashPlayer的话,无法正常打印调试信息.

2.FlashDevelop 一个开源的Flash开发工具.

3.Adobe Flash CS3 Professional

4.Flash CS4

5.Adobe Flash Builder 4

6.Adobe Photoshop CS4

7.Sothink SWF Decompiler,用于反编译SWF文件.

8.Vizzy,调试Flash时查看调试信息,与flashtracer相同,但是不依赖具体浏览器,只要浏览器装的flashplayer是debugger版的就行.

9.IIS,Flash网站本地调试时使用.

常用开源程序

1.TweenLite,实现动画效果.

2.SwfObject,网页中嵌入SWF.

3.SwfAddress,实现Flash网页的Deeplink.