If you can't read please download the document
Upload
erica-davies
View
2
Download
0
Embed Size (px)
DESCRIPTION
Adobe Flash Actionscript code
Citation preview
//Make loader and holder movieclips (to load in next page swf file) invisible until the next button has been clicked
loader._visible=false;holder._visible=false;
//Create new movieclip loader objectvar mcl:MovieClipLoader=new MovieClipLoader();
//Create new event listener objectvar mclL:Object=new Object();
//Set up event listener to respond to the onLoadProgress which is called when the swf is loaded, then update the dynamic text field within the loader movieclipmclL.onLoadProgress=function(target,loaded,total){loader.percent.text=(Math.round(loaded/total)*100)+"%";}
//Set up event listener to make the loader movieclip invisble once the swf has been loadedmclL.onLoadInit=function(){loader._visible=false;loader.percent="";}
//Set up the event listener to recieve events from the movieclip loader objectmcl.addListener(mclL);