Thursday, 11th March 2010.

Posted on Saturday, 31st October 2009 by chris

fancypantsi.com 网站上 American Design Awards, 这已经是很久前的事了。。。,不过还是要说的,网站可以根据时间切换成白天跟黑夜,如果今天纽约天气不好下雨了,网站上也会下雨的,呵呵。 这个可是我用我自主“研发”的Flash网站框架(Willow Framework)制作的第一个网站了。之后又用此框架完成了多个Flash网站,也在这个过程中不断完善和改进了这个Flash网站框架。
基于Willow Framework的几个主要的Flash网站:
http://www.fancypantsi.com(公司的美国网站)
http://www.dickies.com.cn (Dickies的中国网站)
http://adtchallenge.nbcsports.com
http://www.lakewl.com(卧龙湖国际社区)
对于Willow Framework,下面要做的就是自动化的工作了,不过jsfl是我最讨厌的东西了,真的不想写啊。

Posted in ActionScript, Flash, 网站 | Comments (0)

Posted on Wednesday, 10th June 2009 by chris

发现了一些FlashPlayer 9 与FlashPlayer 10之间的不一样之处,很是怪异。
处理XML:
在Flash 10中将播放器设为Player 9后下面代码执行结果为

<site>
<p>world</p>
</site>

而设为Player 10后执行结果为

<p>world</p>

//以下为代码

1
2
3
var xml:XML = <config><site></site></config>;
xml = xml.site[0].appendChild("<p>world</p>");
trace(xml);

而下面这个代码的执行结果确又是一样的
//代码

1
2
3
var xml:XML = <config><site></site></config>;
xml = xml.site[0].appendChild(<p>world</p>);
trace(xml);

结果都是
<site>
<p>world</p>
</site>
有点晕,不知道是何原因。所以为了防止播放器的不一致,遇到这种appendChild()里面放置字符串的情况还是改用类似下面的写法,算Flash狠了。

1
2
3
var xml:XML = <config><site></site></config>;
xml = xml.site[0].appendChild(new XML("<p>world</p>"));
trace(xml);

这样,两个播放器也就一致了。
代码的执行顺序:
这个很有问题,如果两个代码执行顺序不一致,那可能运行的效果就完全不一致。不过两个版本确实在这方面存在差异。
如果我们只是简单地新建一个Flash文件,在里面新建一个MovieClip并且在其第一帧上增加下面的代码:

1
2
3
trace("onframe1 before call gotoandplay 10");
gotoAndStop(10);
trace("on frame 1 after call gotoandplay 10");

在其第10帧处插入下面的代码:

1
trace("now on frame 10");

把文件的设置中的播放器设成 Flash Player 9 或者 Flash Player 10 其执行结果是一致的,都是:
onframe1 before call gotoandplay 10
on frame 1 after call gotoandplay 10
now on [...]

Tags: ,
Posted in ActionScript, Flash | Comments (7)

Posted on Friday, 5th June 2009 by chris

最近很忙啊,不过这两天终于把http://www.dickies.com.cn 忙得差不多了,今天算是正式上线了,下午还是发现了几个小的bug,给改了一下,可能还会有一些,以后发现再改吧。
这次这个网站继续使用自己的这个网站框架,也进一步完善了这个框架,下一步要解决的就是框架资源占用的问题。如何能够在不依赖本地缓存又不增加内存使用的情况下保留已经加载过的文件,不至再到服务器上下载,这个看来还是个难题啊。

Tags: ,
Posted in 网站 | Comments (6)

Posted on Sunday, 26th April 2009 by chris

.FLV files are already the best method for publishing video on the web, and are sure to become even better with the new enhancements in Flash 8. When serving .flv files off of a Windows Server 2003 (or any other Windows server I would imagine) requires setting up the MIME type on the server first [...]

Tags:
Posted in Flash | Comments (3)

Posted on Saturday, 18th April 2009 by chris

一直不明白如何将很多的类编译成一个swc文件,并且在Flash里可用,就像Google Map Flash API一样,今天终于找到了。http://vincent.the.tsao.googlepages.com/ 这篇文章有很详细的说明。现转于此:

Using Flex SWC Files in the Flash CS3 Authoring Environment

by Vincent Tsao

Last updated: 24-August-2008
Problem
Many API’s or code libraries written in ActionScript 3 and compiled into SWC files are meant for use with Flex tools and are unable to be imported into the Flash CS3 Authoring Environment.  This [...]

Tags: , ,
Posted in ActionScript, Flash, Flex | Comments (5)