November 15, 2006

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

ActionScript3天地会公测中...

下载地址及详细中文教程: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

广告:哈哈,现在刚好是阿里妈妈推广期哦,你是站长吗?推荐注册阿里妈妈赚广告费

TrackBack

TrackBack URL for this entry:
http://www.kingda.org/mt/mt-tb.cgi/119

Comments (4)

dingsword:

kingda,我是经典上的网友,遇到一个难题想让帮忙看一下,
http://bbs.blueidea.com/thread-2693826-1-1.html
我已经把测试用的源文件给你发过去了,你看看是怎么回事,谢了

收了,备用~

收了,谢谢~~

seo:

收到,正在寻找中,谢谢 !~~~

非常感谢~~

留下高见,发表评论

个人信息不会外泄,请放心填写。

姓名和Email必填。

发表评论后,请耐心等待,不要频繁刷新。提交完成后,刷新一下本页即可看到您的评论。^_^

请输入验证字符"n" :
文字广告:你是站长吗?注册阿里妈妈赚广告费

最近发表

归档

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