« October 2006 | Main | December 2006 »

November 2006 Archives

November 5, 2006

【黑羽】AS3.0教程(11): 视觉元件精要(1)

题外话:
不少兄弟问我,AS3教程咋不出了哩?其实看我博客的兄弟们应该都知道,黑羽目前的Flash RIA整体网站,接近竣工,11月即将推出。结尾工作实在太多,从十一到上周末,基本上放假都在加班。一些博客或者论坛上兄弟的问题都没有精力回复,抱歉了。

上次还在5d上看到版主鼓动大家给我打气,让我继续,真是非常不好意思。
这个周末偶得空闲,遂集中精力,将自己开发笔记整理了一篇放上来。项目发布后,更新会正常。
laughing.gif

彻底了解AS3视觉元件架构

DisplayObject,直译为视觉对象,意为可以被看到的对象。

视觉是Flash 成功的主要基石。当我赏析ActionScript 3 的所有视觉元件类型和其整体构架时,感到非常满意。可以看出,这次整体的架构设计是深思熟虑的结果。与其他语言,比如C#,相比有自己强烈的特色,是对Flash视觉行为贴身定做的结果。

ActionScript 3的架构乍一看很复杂,不包括UIComponent的子类,就有7到8个层,20多个莫名奇妙的类。头疼!但实际上,它的设计是非常的简洁优雅,远远比ActionScript 2一个MovieClip打天下强太多了。实际上,只要真正弄清了它的设计思路,就可以高屋建瓴,一览无余,会发现这个架构逻辑清晰,非常的易懂易记。所以,先抛开ActionScript 3 的帮助文件,我们一起来看看为什么要设计这样一个架构,搞出20多个怪胎出来。

Continue reading "【黑羽】AS3.0教程(11): 视觉元件精要(1)" »

November 9, 2006

惊喜!!Flash开源时代降临!附AVM2源码下载地址

Web发展史书会记住这一刻!
2006年11月7日,地点:SAN FRANCISCO, Adobe宣布将ActionScript Virtual Machine 2(AVM2,ActionScript 虚拟机2)源代码贡献给Mozilla组织。

AVM2所有源代码将作为Mozilla的开源项目Tamarin的重要组成部分。
AVM2源码目前已经在以下地址发布:
ActionScript Virtual Machine 2 源码!

AVM2是目前Flash Player 最新版本9的核心,所有Actionscript 3的代码都只能由AVM2来执行。
Mozilla是目前最流行的开源浏览器FireFox的开发者。
Tamarin将作为下一代Firefox浏览器脚本解释引擎SpiderMonkey的重要组成部分。

黑羽要感谢Adobe和Mozilla中无数浪漫主义者和理想主义者!
你们是Web真正的生命力!
也同时感谢Adobe的野心!你的这一招棋,已经为Apollo时代奠定了绝对性的胜局!
呼唤所有关注网络应用开发者关注AS3,这将是你们最明智的选择之一!

Web2.0从此掀开崭新的一页!混乱的脚本语言战国时代即将终结,统一的号角已经吹响!
为何如此妄言,诸君听黑羽细细分解!!

Continue reading "惊喜!!Flash开源时代降临!附AVM2源码下载地址" »

另一篇介绍AVM2开源和Tamarin相关信息的好文!

推荐:D.cat博客上的一篇好文!What Tamarin really means ?
写的好,技术细节讲的比我上篇文章
惊喜!!Flash开源时代降临!
更加清楚。
特加以转载。biggrin.gif

Continue reading "另一篇介绍AVM2开源和Tamarin相关信息的好文!" »

November 15, 2006

【黑羽】Flash实用loading工具KLoader新版1.5版本下载!KLoader ver 1.5 released!

下载地址及详细中文教程:http://www.kingda.org/archives/kingda/2006/05/kingdas_loader.html
kloader_inspecter.gif

Click here to download:

Kingda's KLoader 1.5.0 (only 11 kbytes)
New features:
1.passData:Boolean
If set true, KLoader will pass all properties (only Number, Boolean, String types) of parent MovieClip to target SWF.
For example:
Without loader, we want to pass some data to a.swf


http://www.xxx.com/a.swf?data1=false&data2=blabla&data3=10293

But now, we want to use KLoader to load a.swf and still want pass the same data to a.swf through URL.
That's ok.We put a KLoader on the root, set its targetURL="a.swf", and set passData = true; then compile it to a_loader.swf
and type as the follow in the browers address bar:

http://www.xxx.com/a_loader.swf?data1=false&data2=blabla&data3=10293


Then a.swf will be loaded and get all thest data. So Easy!

When we load a SWF named "a.swf" into a MovieClip named "a_mc" and want to pass the data to the target SWF, we just set the data at a_mc and set the KLoader instance's passData=true, which is in a_mc.
For example:

a_mc.data1=false;
a_mc.data2="blabla";
a_mc.data3=1234;
a_mc.k_loader.passData = true;
a_mc.k_loader.load("a.swf")

2.debug:Boolean
If set true, KLoader will trace a lot of helpful information.

3.Add onLoadInit Event:
The event will be dispatched right after loading completed and intialized.

4. Add inspecter support.
You can input and set all parameters in the component inspecter without type any ActionScript code. Just for Beginners!

Feature:
1.Support lockroot.
2.Easy to customs skin
3.Easy to use. for beginner and lazy guys
4.Avoid the annoying problem:"export to the first frame" cause the normal loading bar start from >40% or more.

How it works:
1.load a whole swf.
After install ,drag KLoader from component panel to stage,then name it "aaa".
SWF's URL is: "http://www.xxx.com/xxx.swf",or "xxx/xxx.swf",
URL can be the SWF、JPEG、GIF or PNG file's absolute or relevant URL。
Then write at the action panel of the first frame:
aaa.load("http://www.xxx.com/xxx.swf");
Test Movie, Ok.
2.load a child swf in a mc.
drag a KLoader into the mc, name it "aaa".
then enter:
aaa.isLockroot = false;
aaa.load("http://www.xxx.com/xxx.swf");
Then OK.


API:
1How to create a KLoader by actionscript
a.
import org.kingda.tools.loader.KLoader;
createClassObject(KLoader, "yourLoaderName", depthNumber);

2.How to set lockroot:
kLoaderInstance.isLockroot = true //locked
kLoaderInstance.isLockroot = false //unlock
(before using load())


3.How to change skin:
kLoaderInstance.setup("skinLinkageID");
(before using load())

4.load
kLoaderInstance.load("URLstring");

5.unload
kLoaderInstance.unload();

6.the refrence to the content movie (the swf you loaded), for advance user;
kLoaderInstance.container //MovieClip

7.load success event,for advance user;
the event's structure: eO.type = "loaded"; eO.target = this; eO.target_mc = mc;

8.load error event,for advance user;
the event's structure:eO.type = "error"; eO.target = this; eO.target_mc = mc; eO.errorCode = errorCode; eO.httpStatus = httpStatus;

Kingda's KLoader 黑羽翔天的小小装载器1.0



www.kingda.org
e-mail:kingda.org(at)gmail.comlaughing.gif

November 27, 2006

黑羽负责的Flash RIA系列项目即将全面推出公测!

前天服务器上架了。
这段时间累惨了,也没时间和精力更新博客!
下面几天就是公测了!公测完后,应该轻松很多!
卖个关子,两天内揭晓。
用Flash开发的全套四六级英语教学和测试系统!
biggrin.gif

文字广告:你是站长吗?注册阿里妈妈赚广告费

About November 2006

This page contains all entries posted to 黑羽翔天 § Kingda's Weblog in November 2006. They are listed from oldest to newest.

October 2006 is the previous archive.

December 2006 is the next archive.

Many more can be found on the main index page or by looking through the archives.

最近发表

归档

全部
Creative Commons License
此 Blog 中的日记
遵循以下授权:
Creative Commons
(创作共用) 授权
.
Google PageRank
本站被Adobe官方MXNA新闻聚合器收录
本站被蓝色理想BXNA收录