beh anche se il cod sembra giusto....
prova questo
Codice PHP:
// prima serie di listener
var my_mcl = new MovieClipLoader();
myListener = new Object();
myListener.onLoadStart = function (target_mc)
{
target_mc._alpha = 0;
trace(width2+" , "+ height2)
var loadProgress = my_mcl.getProgress(target_mc);
_root.attachMovie("barra", "barra", 7, {_x:target_mc._x+5, _y:target_mc._y+23});
_root.barra._visible = false;
_root.barra._xscale = 0;
}
myListener.onLoadProgress = function (target_mc, loadedBytes, totalBytes)
{
//trace ("onLoadProgress() richiamato nel filmato " + target_mc);
perc = Math.round((loadedBytes/totalBytes)*100);
_root.barra._visible = true;
_root.barra._xscale = perc
}
myListener.onLoadComplete = function (target_mc)
{
var loadProgress = my_mcl.getProgress(target_mc);
}
myListener.onLoadInit = function (target_mc)
{
_root.barra.removeMovieClip();
testo.text="";
target_mc._width = width2;
target_mc._height = height2;
target_mc._alpha=100
}
myListener.onLoadError = function (target_mc, errorCode)
{
//trace ("ERROR CODE = " + errorCode);
trace ("Il caricamento nel clip filmato non è riuscito = " + target_mc + "\n");
}
my_mcl.addListener(myListener);
foto="mia.jpg"
width2=200
height2=200
my_mcl.loadClip(foto, myClip);
il contenitore ha istanza myClip e ci sta in libreria un clip con concatenamento "barra"
e funge