Hey I was wondering what’s going down with this code
//loadRegisterSWF function
function loadRegisterSWF(){
//evaluate the preloaderSWF variable for use within this function
var preloaderSWF = eval(preloaderSWF);
//
registerSWF_listener.onLoadStart = function(registerSWF_level){
//place scripts here that will attach a preloader to
//get the download progress for register.swf
var loadProgress = loader_mcl.getProgress(registerSWF_level);
preloaderSWF.currentBytesLoaded = loadProgress.bytesLoaded;
preloaderSWF.totalBytes = loadProgress.bytesTotal;
preloaderSWF.displayInfo();
}
//
registerSWF_listener.onLoadProgress = function(registerSWF_level, loadedBytes, totalBytes){
//continue to pass the current status of the download to
//the attached preloader
//get the download progress for register.swf
preloaderSWF.currentBytesLoaded = bytesLoaded;
preloaderSWF.totalBytes = bytesTotal;
preloaderSWF.displayInfo();
}
//
registerSWF_listener.onLoadComplete = function(registerSWF_level){
//align register.swf when the stage resizes
stage_listener.onResize = function(){
registerSWF_level.alignMovieClips();
}
//get the download progress for register.swf
var loadProgress = loader_mcl.getProgress(registerSWF_level);
preloaderSWF.currentBytesLoaded = loadProgress.bytesLoaded;
preloaderSWF.totalBytes = loadProgress.bytesTotal;
preloaderSWF.displayInfo();
}
//
registerSWF_listener.onLoadInit = function(registerSWF_level){
//now set all the initial states of the movie clips
//contained within the register.swf
registerSWF_level.alignMovieClips();
//unattach the preloader
unloadPreloaderSWF();
//remove the loader_mcl listener
loader_mcl.removeListener(registerSWF_listener);
}
//
registerSWF_listener.onLoadError = function(registerSWF_level, errorCode){
//display any errors in the ncicMain error window
}
//add the registerSWF_listener to the loader_mcl
loader_mcl.addListener(registerSWF_listener);
//load the register.swf
loader_mcl.loadClip(registerSWF_url, registerSWF_level);
}
all the other methods seem to be working fine but getProgress doesn’'t seem to execute. Also the bytesLoaded and **bytesTotal **properties are returning 0.
Thanks for any help.