var precargador_mcl:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
Stage.showMenu = false;
listener.onLoadStart = function(target_mc) {
_root.attachMovie("barra", "barra_mc", _root.getNextHighestDepth());
_root.barra_mc._y = Stage.height/2;
_root.barra_mc._x = Stage.width/2;
};
listener.onLoadProgress = function(target_mc, loadedBytes, totalBytes) {
var porcentaje:Number;
porcentaje = Math.round((loadedBytes*100)/totalBytes);
_root.barra_mc.gotoAndStop(porcentaje);
target_mc._visible = false;
target_mc.stop();
};
listener.onLoadComplete = function(target_mc) {
_root.barra_mc.removeMovieClip();
target_mc._visible = true;
target_mc.play();
};
precargador_mcl.addListener(listener);
var nochache:String;
//En el evento onRelease del boton . . .
cargar_btn.onRelease = function() {
nocache = "?nocaching="+random(65000);
precargador_mcl.loadClip("i1.jpg"+nocache, caja_mc);
};
cargar_btn2.onRelease = function() {
nocache = "?nocaching="+random(65000);
precargador_mcl.loadClip("i2.jpg"+nocache, caja_mc);
};
cargar_btn3.onRelease = function() {
nocache = "?nocaching="+random(65000);
precargador_mcl.loadClip("i3.jpg"+nocache, caja_mc);
};
cargar_btn4.onRelease = function() {
nocache = "?nocaching="+random(65000);
precargador_mcl.loadClip("i4.jpg"+nocache, caja_mc);
};
Wno como pueden ver e imaginar sirve para cargar externamete imagenes con movicliloader (manual de la pagina), a mi lo q me gustaria es decirle q la imagen q cargue me la ponga en el mismo tamaño q el clip donde la va a visualizar, sino me encuentro con el problema q no se visualiza entera.
