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

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.com![]()







Comments (4)
kingda,我是经典上的网友,遇到一个难题想让帮忙看一下,
http://bbs.blueidea.com/thread-2693826-1-1.html
我已经把测试用的源文件给你发过去了,你看看是怎么回事,谢了
Posted by dingsword | November 15, 2006 4:56 PM
Posted on November 15, 2006 16:56
收了,备用~
Posted by yatrip | August 1, 2007 5:35 PM
Posted on August 1, 2007 17:35
收了,谢谢~~
Posted by Benben | August 14, 2007 9:54 AM
Posted on August 14, 2007 09:54
收到,正在寻找中,谢谢 !~~~
非常感谢~~
Posted by seo | September 17, 2007 1:45 PM
Posted on September 17, 2007 13:45