I am trying to make a circle preloader, so i need to convert it to be frame based. Can one help me understand why this is not working?
Check it out: http://0-style.com/test/test.html
Zip with Fla: http://0-style.com/test.zip
function loadExtMov(movieName, targetMovie, transEnabled:Boolean) {
var mcListener:Object = new Object();
mcListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
status_txt.text = Math.round((bytesLoaded/bytesTotal)*100);
// Radius Preloader
frame = int(bytesLoaded/bytesTotal/100);
tellTarget (progress_mc) {
gotoAndStop(frame);
}
};
var image_mc:MovieClipLoader = new MovieClipLoader();
image_mc.addListener(mcListener);
image_mc.loadClip(movieName, targetMovie);
}
loadExtMov("1.jpg", container_mc);