hi,
i can’t see the loaded movieclips when i resize the window firstly. if i load the movie first and then i resize the window, it works good. i couln’t find a solution for this. may it’s sync or onenterframe problem but i couldn’t fix it. you can see the script and the .fla below.
thank you
Stage.align = "LT";
Stage.scaleMode = "noScale";
import mx.transitions.Tween;
import mx.transitions.ease.*;
back._x = 0;
back._y = 0;
img_prop = back._height/back._width;
back._width = Stage.width;
back._height = Stage.width*img_prop;
backperde._x = 0;
backperde._y = 0;
backperde._height = Stage.height;
backperde._width = Stage.width;
thumbs._y = Stage.height-80;
var back = backholder.attachMovie("back", "newback", this.getNextHighestDepth);
var backAfx:Tween = new Tween(back, "_alpha", Strong.easeOut, 0, 100, 0.5, true);
backAfx.onMotionFinished = function() {
links();
};
function links() {
space = 2;
xIni = 35;
yIni = 20;
wt = 35+space;
gh = 35+space;
//
for (j=0; j<7; j++) {
var links = thumbs.attachMovie("ct"+String(j), "pth"+String(j), j);
posX = xIni+wt*int(j%25);
posY = yIni+gh*int(j/25);
var uyuz:Tween = new Tween(links, "_x", Strong.easeOut, 0, posX, 1, true);
var uyuz:Tween = new Tween(links, "_y", Strong.easeOut, 0, posY, 1, true);
links.j = j;
links._alpha = 70;
links.onRollOver = function() {
var uyur:Tween = new Tween(this, "_alpha", Strong.easeOut, this._alpha, 100, 1, true);
};
links.onRollOut = function() {
var uyur:Tween = new Tween(this, "_alpha", Strong.easeOut, this._alpha, 70, 1, true);
};
links.onRelease = function() {
metinfade();
//image.loadMovie("photography/concept/c0/"+this.j+".swf");
image_mcl.loadClip(this.j+".swf",image);
};
}
}
//onResize positions
size = new Object();
size.onResize = function() {
thumbs._y = Stage.height-80;
back._x = 0;
back._y = (Stage.height-back._height)/2;
img_prop = back._height/back._width;
back._width = Stage.width;
back._height = Stage.width*img_prop;
backperde._x = 0;
backperde._y = 0;
backperde._height = Stage.height;
backperde._width = Stage.width;
if (Stage.height<800) {
imgprop = image._height/image._width;
image._height = Stage.height-150;
image._width = image._height/imgprop;
image._x = (Stage.width-image._width)/2;
image._y = (Stage.height-image._height)/2;
} else {
imgprop = image._height/image._width;
image._height = 650;
image._width = image._height/imgprop;
image._x = (Stage.width-image._width)/2;
image._y = (Stage.height-image._height)/2;
}
};
var mclListener:Object = new Object();
mclListener.onLoadInit =function () {
if (Stage.height<800) {
imgprop = image._height/image._width;
image._height = Stage.height-150;
image._width = image._height/imgprop;
image._x = (Stage.width-image._width)/2;
image._y = (Stage.height-image._height)/2;
} else {
imgprop = image._height/image._width;
image._height = 650;
image._width = image._height/imgprop;
image._x = (Stage.width-image._width)/2;
image._y = (Stage.height-image._height)/2;
}
};
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(mclListener);
Stage.addListener(size);