Si es posible, me gratificaría una respuesta.
Código :
fullPreloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
target.createTextField("my_txt",0,0,415,600,20);
target.my_txt.setNewTextFormat(new TextFormat("Verdana", 12, 0xFF5B24, false));
function onLoadProgress(target, bytes_loaded, bytes_total){
target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);
// stop and hide movie
target.stop();
target._visible = false;
// assign value to preloader
preloader_mc.value = bytes_loaded/bytes_total;
}
};
fullPreloader.onLoadComplete = function(target) {
new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
target.my_txt.text = myTitle;
// when loading is complete for loader_mcl
function onLoadComplete(target){
trace("complete")
// show and play loaded clip
target.play();
target._visible = true;
// remove the preloader animation
preloader_mc.removeMovieClip();
}
// if there is an error, this event handler will
// be called and the preloader will be removed
function onLoadError(target, error_code){
preloader_mc.removeMovieClip();
trace(error_code);
} 