First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search movies
View @  640x480 800x600 1024x768 1280x960
(10 being the highest)
»Added  2010-03-23
»Rating  2
»Votes  4
»Author  liuyi | Search by liuyi
»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 :liuyi, Home and document online!: code: 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


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

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: work2survive
» Title: Girl Walking 1kb
» Description: Walking girl, animation just takes 1kb, using high heels shoes, and fashion model attitude.
Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.