ciao a tutti
ho fatto un sito che ha un resize a seconda del monitor e un'img di fondo caricata esternamente in un clip...se lo vedo in locale è tutto ok ...se invece lo carico in rete la maggior parte delle volte non vedo l'img di fondo. se faccio il refresh piu volte poi finalmente compare l'img.
il sito è www.michellewindheuser.com
lo script invece è:
fscommand("fullscreen", "true");
Stage.scaleMode = "noScale";
altSwf = 600;
largSwf = 900;
var varMonitor:Object = new Object();
varMonitor.onResize = function() {
posiziona();
};
Stage.addListener(varMonitor);
//img.loadMovie("img.jpg");
this._visible = 0;
photos = ["img1.jpg", "img2.jpg", "img3.jpg"];
imagetoload = Math.floor(Math.random()*photos.length);
img.loadMovie("random/"+photos[imagetoload]);
e sul secondo frame
stop();
imgH = img._height;
imgL = img._width;
function posiziona() {
H = Stage.height;
L = Stage.width;
limSup = 0-((H-altSwf)/2);
limInf = altSwf+((H-altSwf)/2);
limSX = 0-((L-largSwf)/2);
limDX = largSwf+((L-largSwf)/2);
fascia.sfondo._height = H-fascia.copyright._height-1;
fascia.copyright._y = Math.round(fascia.sfondo._y+H);
fascia._y = Math.round(0-((H-altSwf)/2));
fascia._x = limSX+Math.round((L/100)*8);
this.fascia.carica._y = ((H-260)/2)-((H-altSwf)/2.75)
this.fascia.carica._x = ((L-400)/2)-((L-largSwf)/2)
this.fascia.caricazoom._y = (H-580)-((H-altSwf)/1.60)
this.fascia.caricazoom._x = ((L-433)/2)-((L-largSwf)/2)
this.fascia.menus._y = ((H-250)/2)-((H-altSwf)/2)
img._height = H;
img._width = (imgL*H)/imgH;
img._y = limSup;
img._x = limDX-img._width
}
posiziona();
this._visible = 1;
MovieClipLoader;