Also is it really hard to have one of the project links load a prev/next instead of one image. Many Thanks
Sorry im gonna leave it how it is now! Just still wondering about this bit: Code: function setBackground() { var startX = 0; var startY = 0; picHolder._x = startX; picHolder._y = startY; picHolder._width = Stage.width; picHolder._height = Stage.height; picHolder._xscale > picHolder._yscale ? picHolder._yscale = picHolder._xscale : picHolder._xscale = picHolder._yscale; } Before i had this and the whole movie was scaling it was set to 'TL' and i found that if i set it to 'L' it scaled my images more centrally. Is there a way to make the picHolders position 'L' ? Many Thanks
function setBackground() { var startX = 0; var startY = 0; picHolder._x = startX; picHolder._y = startY; picHolder._width = Stage.width; picHolder._height = Stage.height; picHolder._xscale > picHolder._yscale ? picHolder._yscale = picHolder._xscale : picHolder._xscale = picHolder._yscale; }
If you set it to "L" it will completely readjust the entirety of contents on the stage, namely the navigation... keep it at "TL" and then resplace the function code with this. PHP Code: function setBackground() { var startX = picHolder._width/2; //0; var startY = picHolder._height/2; //0; picHolder._x = startX - (picHolder._width/2); picHolder._y = startY - (picHolder._height/2); picHolder._width = Stage.width; picHolder._height = Stage.height; picHolder._xscale > picHolder._yscale ? picHolder._yscale = picHolder._xscale : picHolder._xscale = picHolder._yscale; } See if that helps.
function setBackground() { var startX = picHolder._width/2; //0; var startY = picHolder._height/2; //0; picHolder._x = startX - (picHolder._width/2); picHolder._y = startY - (picHolder._height/2); picHolder._width = Stage.width; picHolder._height = Stage.height; picHolder._xscale > picHolder._yscale ? picHolder._yscale = picHolder._xscale : picHolder._xscale = picHolder._yscale; }
Wile E. Coyote - "Clear as mud?"
That doesn't seem to make much difference apart from some images have a gutter along the bottom. I'm trying to load the images middle on the vertical scale. and left on he horizontal. Thanks
Why don't you just get a drag and drop preloader from here: http://www.flashden.net/searches?ter...es?ref=Yombull
Forum Rules