Revision: 4818
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 22, 2008 11:13 by imhugo
Initial Code
// Function constructor // function callLoadClip(clip:String):Void { // Constructors var mcLoader:MovieClipLoader = new MovieClipLoader(); var listener:Object = new Object(); // Whrn Start loading listener.onLoadStart = function(target:MovieClip) { // Actions when loading starts } // Preloading listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void { var percent:Number = Math.round(bytesLoaded * 100 / bytesTotal); preloader_txt.text = percent + "%"; } // Loaded listener.onLoadInit = function(target:MovieClip) { // Actions when loading ends } // Init mcLoader.addListener(listener); mcLoader.loadClip(clip, loader_mc); } // Call function // callLoadClip("images/myImage.jpg");
Initial URL
Initial Description
Initial Title
Load Images/Swf's with loadClip
Initial Tags
actionscript, load
Initial Language
ActionScript