Writing by zikey on Friday, 5 of June , 2009 at 4:24 pm
While keeping Flex 3 classes intact in the same mx.* packages, the Flex 4 beta introduces the spark.* packages for components, core classes, effects, filters, layouts, primitives, skins, and utils.
The Flex 4 beta provides a new set of components and effects that share many of the same class names as Flex 3 components. To avoid name collisions in MXML, the Flex 4 beta comes with four distinct namespaces: MXML 2006, MXML 2009, Spark, and Halo.
MXML 2006: The legacy MXML language namespace used in previous versions of Flex. Flex 3 applications compiled using Flex 4 beta can continue using this namespace.
URI: http://www.adobe.com/2006/mxml
Default Prefix: mx
MXML 2009: The new MXML language namespace. This is purely a language namespace, and does not contain component tags.
URI: http://ns.adobe.com/mxml/2009
Default Prefix: fx
Spark: This namespace includes all of the new Spark components. It should be used in conjunction with the MXML 2009 language namespace.
URI: library://ns.adobe.com/flex/spark
Default Prefix: s
Halo: This namespace includes all of the Halo components. It should be used in conjunction with the MXML 2009 language namespace.
URI: library://ns.adobe.com/flex/halo
Default Prefix: mx
Here is a small example that uses the MXML 2009, Spark, and Halo namespaces to create a simple Flex 4 beta application. This sample uses a Halo DateChooser and a Spark Button.
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo">
<mx:DateChooser id="main_calendar" x="20" y="20"/>
<s:Button label="submit" x="220" y="20"/>
</s:Application>
Flex 4 beta has also added multiple namespace support in CSS. If you are using the MXML 2009, Spark, and Halo namespaces along with Type selectors, you will need to define a set of namespaces in your CSS definitions to avoid name collisions.
Here is an example of CSS that uses type selectors for both Halo and Spark components:
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/halo";
s|Button {
color: #FF0000;
}
mx|DateChooser {
color: #FF0000;
}
</fx:Style>
摘选自:http://www.adobe.com/devnet/flex/articles/flex3and4_differences_03.html
Category: Flex
Writing by zikey on Thursday, 4 of June , 2009 at 11:43 am
Enter your password to view comments
Category: Life
Writing by zikey on Tuesday, 2 of June , 2009 at 1:15 pm
昨天Adobe Flash Builder 和 Adobe Flash Catalyst 在http://labs.adobe.com上面发布,现在可以下载体验。
Flash Catalyst: http://labs.adobe.com/technologies/flashcatalyst/
Flash Builder 4: http://labs.adobe.com/technologies/flashbuilder4/
培训教程:
Flash Builder and Flex 4 SDK: http://labs.adobe.com/technologies/flashbuilder4/tutorials/
Flash Catalyst: http://labs.adobe.com/technologies/flashcatalyst/tutorials/
Flash Platform videos: http://labs.adobe.com/technologies/flash/videos/
下面是一些关于Flex 4 和Flash Builder 4的一些文档:
What’s new in Flex 4 SDK beta
Public beta of Flex 4 and Flash Builder 4 on Adobe Labs.
You should probably start by reading the introductions from Flex Product Managers:
There is a fairly rich set of beta documentation.
Also, some of the developers created videos and they really turned out well. You can check these out, too. They live under http://labs.adobe.com/technologies/flashbuilder4/tutorials
And finally, if you really want background information, there are updated specs on opensource.adobe.com:
Category: Flash, Flex
Writing by zikey on Tuesday, 26 of May , 2009 at 11:07 am
网上的十本关于Python的免费的完整的在线阅读书籍。
Dive into Python

几乎涵盖了所有的方面,包括从Python安装,到Web Services再到单元测试等等。还有简体中文版本在线阅读。
This is a fantastic book that is also available in print
. It covers everything, from installing Python and the language’s syntax, right up to web services and unit testing. This is a good book to learn from, but it’s also excellent to use a reference. I frequently find myself visiting the site! If you only read one book on this list make it this one.
An Introduction to Tkinter
Tkinter 是一种流行的跨平台的Python GUI 工具包,这本书通过很多的实例,详细的对其进行了介绍。
(Read more…)
Category: Python, eBook
Writing by zikey on Monday, 25 of May , 2009 at 2:30 pm

通过Distributable Player Solution 开发者能为最新版本的Adobe Flash Lite 开发出更加丰富的应用,并且直接传播他们的内容,为手机提供更加丰富的用户体验。而这些应用可以是免费的也可以是付费的。现在已经在全球13个国家,31种机型上实现此项服务。
Distributable Player Solution 由两部分组成:
1.Flash Lite 3.1 Distributable Player
2.Adobe Mobile Packager. Adobe Mobile Packager是一个打包工具,能将swf文件及其一些版本信息,icon图标,metadata数据等打包到能被S60和Windows Mobile 识别的SIS文件和CAB文件。

“The distributable player solution enables developers to create rich applications for the latest version of Adobe® Flash Lite® and directly distribute their content to millions of open OS smartphones, providing a better on-device user experience.” (Read more…)
Category: Flash lite
Writing by zikey on Monday, 25 of May , 2009 at 11:46 am
在arnotify 发表了一篇 Writing well-behaved, efficient, AIR applications 的文章,阐述了一些关于在开发AIR程序中遇到的资源占用过高情况的解决方案。总体来看,作者解决的出发点是在对程序的FrameRate的控制上。在AIR程序中经常会遇到资源占用严重的问题,也许你可以从这篇文章中寻找到一些解决灵感。
怎样解决你的应用资源占用过高,怎样优化你的程序?你可以从下面几个方面尝试一下:
1. Use the lowest framerate possible –>尽量降低你程序的帧频,当然前提是在不影响你程序的流畅表现的情况下,一般的程序设置是24fps,但是在很多的AIR应用中,根本不需要这么多,你可以设置你的mx:WindowedApplication中的frameRate属性,或者在你的ActionScript中的stage.frameRate (Read more…)
Category: AIR