Search movies
| »Added | 2010-03-23 |
|---|---|
| »Rating | 3 |
| »Votes | 2 |
| »Author | liuyi | Search by liuyi |
| »Website | http://www.ourbrander.com |
| »Version | Flash 9 |
| »Description | Hi,guys!Very happy to announce to the world,my easyLoader project was updated to 1.012.this class can be used to load sound,video,txt,xml,image,swf,event dae and on.and you guys can add custom file type for easyLoader.author :liuyi email:ourbrander@gmail.com, Home and document online!:http://www.ourbrander.com/easyloader/Google code:https://code.google.com/p/easyloader/What is easyLoader?This work is use load all the assets of website or game,it is an good assets manager.People can use it to load sound,video,txt,xml,image,swf,dae and any custom types of files.Why we need it?-easy of useEvery method have a good naming,you can use it likes speak to an friend.Only need several lines to complete the work.-never be lost itemsload items one by one.-excellent memory manageUsing it continually more than 24 hours,memory do not increase without limit.item can be destoried,easyLoader Object(include all assets) too.-flexibleUser can add custom file type to loading.-dynamic add items for easyLoaderEasyLoader can add and load new assets anytime and anywhere,although all the items were loaded.-Updateswill updates according to user's requirements.How to use?Realy only need several lines:step1:new a easyLoader Objectline1: var _assetsManager = new EasyLoader();step2:add some necessary event Listenerline2: _assetsManager.addEventListener(EasyLoaderEvent.CO MPLETED,assetsLoaded)step3:add the assetsLoaded functionline2:private function assetsLoaded(e:EasyLoaderEvent) {line3: //put some code to here like init()line4:}step4:load assets according to config xmlline5:_assetsManager.loadConfig("assets.xml")ok,this is all!Public MethodsEasyLoader() addFile(path:String, alias:String = "", loadTip:String = "", autoRemove:Boolean = false, method:String = "text"):void addType($type:String, $name:String):Boolean dispose():void disposeFileByAlias(alias:String):Boolean disposeFileByName(name:String):Boolean getFileByAlias(alias:String):LoadedItem getFileByIndex(number:uint):LoadedItem getFileByName(name:String):LoadedIteminit(obj:* = null, $autoLoad:Boolean = true, $ignoreError:Boolean = true):Boolean loadConfig(str:String):voidpause():voidremoveFileByAlias(alias:String):BooleanremoveFileByName(name:String):Boolean start():void unPause():void |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!