Flash-Adobe’s Flash to ship on new Android phone

Learned from http://news.cnet.com/8301-1035_3-10272261-94.html?part=rss&subj=news&tag=2547-1_3-0-20.
Marking a departure from the world of iPhone, HTC's new Android-based Hero phone will also come with the ability to handle Flash elements that adorn many Web sites and power YouTube video.
HTC新款Android系统手机Hero将内建Adobe Flash播放器。
Adobe Systems announced on Wednesday that its Flash Player will be built into the HTC phone, an important step in the company's efforts to spread Flash to mobile phones. The phone, one of several from HTC to use Google's open-source operating system, is scheduled to ship in Europe starting in July and in Asia and North America later in the year.
Adobe在周三发布了一个公告称Flash Player将内建在HTC手机中,这是Flash迈向手机平台关键性的一步。Hero是HTC使用Google的开源操作系统的其中一款手机,将在7月登录欧洲,并在晚些时候登录亚洲和北美。
AAS3WDP-Chapter 8 Composite 组合模式(下)
接上集《AAS3WDP-Chapter 8 Composite 组合模式(上)》,上集讲到了建立叶子元素和组合元素,这集先讲xml文件:
< ?xml version="1.0" encoding="utf-8"?> <filesystem> <filesystemitem type="Directory" name="Program Files" bytes="1024"> </filesystemitem><filesystemitem type="Directory" name="Adobe Flash"> <filesystemitem type="File" name="Flash.exe"/> <filesystemitem type="File" name="Hello.txt"/> <filesystemitem type="File" name="Today.txt"/> </filesystemitem> <filesystemitem type="Directory" name="Other" bytes="1024"> <filesystemitem type="File" name="Hello.txt"/> <filesystemitem type="File" name="Image.jpg"/> </filesystemitem> </filesystem>
xml里,文件分2个目录,Program Files和Other,Program Files目录下有子目录Adobe Flash,子目录Adobe Flash中有3个文件,而Other下有2个子文件,下边我们就用这个xml来模拟一个文件结构目录。
AAS3WDP-Chapter 8 Composite 组合模式(上)
啊,这一贴比较麻烦,内容也比较多,所以准备分上下部分来完成。
那么,什么是组合模式呢?
组合模式是将对象之间的关系以数据结构中的2叉树表现出来,使得客户端将单纯的元素与复杂元素同等看待,这样的话使得用户在操作不同的子类元素时可以和根节点元素一样操作,在透明模式下即根元素和叶元素公用同一个接口达到共同的结果。组合模式就是解决部分与整体的关系的一种模式。
这一章是以文件系统为例,文件分为"文件夹"和"文件"两种,恩,就是这样。那么我们先来建立一个共用接口IFileSystemItem:
package{
import IIterator;//PS:第7章的类
public interface IFileSystemItem{
function iterator():IIterator;
function addItem(item:IFileSystemItem):void;
function removeItem(item:IFileSystemItem):void;
function getName():String;
function setName(name:String):void;
function getParent():IFileSystemItem;
function setParent(parent:IFileSystemItem):void;
}
}
About Flash
今天在CSDN看到个题为《Adobe宣布Flex Builder将更名为Flash Builder》的东西,这个怎么说呢,什么是Flex,然后,什么是Flash?
其实一开始推出个Flex估计Adobe是想让她和Flash区分开来,而后来呢,Flash的定义被更改了,,于是现在又绕了回来,改成了Flash Builder~不过SDK依然是叫Flex SDK哈哈…纠结吧?ORZ。
那到底Flash是什么东西呢?如果你的想法还停留在Flash动画的年代,那赶紧更新下,不然就OUT了,,。
想看详细信息的可以点此下载官方的PDF《ADOBE® FLASH® 平台》。
Flash-关于AS和强制类型转换
内容来自Actionscript3.cn
Now,let's begin,what's the differenct between "objectA as BaseClass" and "BaseClass(objectA)"?
This answer from comment 6#:
objectA as BaseClass: 如果一个物件(objectA)属于一种型别(BaseClass),那么返回这个物件,否则返回Null. if objectA is a type of BaseClass,then return objectA,else return Null. BaseClass(objectA)为强制转换: 如果一个物件(objectA)属于一种型别(BaseClass),那么返回这个物件,否则报错. if objectA is a type of BaseClass,then return objectA,else throw an error. example: var objectA:MovieClip = new MovieClip(); trace(objectA as MovieClip);//输出:[object MovieClip] trace(objectA as Shape);//输出: null trace(MovieClip(objectA));//输出:[object MovieClip] trace(Shape(objectA));//输出:TypeError: Error #1034: 强制转型失败
AS-AMFPHP AS和AMFPHP的数据交互
What's AMFPHP?官方的介绍如下:
AMFPHP is a free open-source PHP implementation of the Action Message Format(AMF). AMF allows for binary serialization of Action Script (AS2, AS3) native types and objects to be sent to server side services. AMFPHP is challenged with implementing the entire AMF protocol to be an alternative to Flex Data Services (AMF3) and Flash Remoting (AMF0). AMFPHP allows thin client applications built in languages such as Flash, Flex, and AIR to communicate directly with PHP class objects on the server. PHP developers can leverage their PHP experience in server side code development by connecting to data sources such as web-services, databases, and business applications and return that data to the client. Client applications can also offload cpu intensive methods to PHP services and wait for the result set for presentation to the user.......
官方的下载包虽然给了几个Demo,但是都没有操作数据库,刚好学习AMFPHP,做了个Demo,共享下,Demo如下:
Flash-许愿板Wish Sky更新

Demo在这里:http://nwhy.org/nwhy/wish
这次主要更新了下导航条,其实早在留言板那边加上导航的时候就准备在许愿板加上导航。
不然没法返回,用户体验比较差,而且呢,很多人都不知道许愿板里原来可以切换头像……
所以在About里边做了个小说明,哈哈,时间比较赶,随便涂了下,,。
更新内容主要是按钮区域和外框的绘制,AS代码很简单,就不贴咯。
下一步准备加上按“许愿者”搜索愿望的功能