I’ve made a Homepage in Flash for a friend (he is an artist and wants to present his pictures online)
I've made the whole site and it worked perfektly ***until **i *wanted to test it online so I loaded the whole stuff up on to my test-server and it worked all fine ***except ***the adjustment of the images' size and position.
I've got two .swf's, one *main.swf* in which the other .swf's (the menu and the different contents) are loaded via...
_root.movieclip.loadMovie("... .swf");
then I loaded the images also by...
_root.movieclip2.loadMovie("image.jpeg");
and then resized and repositioned them...
*imgwidth *= _root*.movieclip2*._width;
*imgheigth*= _root.*movieclip2*._height;
if(*imgwidth *> 460){
_root.*movieclip2*._xscale = 100 / ( *imgwidth */ 460);
_root.*movieclip2*._yscale = 100 / ( *imgwidth */ 460);
}
if(*imgheigth*> 368){
_root.*movieclip2*._xscale = 100 / ( *imgheigth*/ 368);
_root.*movieclip2*._yscale = 100 / ( *imgheigth*/ 368);
}
…
_root.*movieclip2*._x = _root.*xcenter*-(*imgwidth */2);
_root.*movieclip2*._y = _root.*ycenter*-(*imgheigth*/2);
I have tried ***EVERYTHING ***so please help !!!
And because I am in a litte pressure of time a quick answer would be awesome…
PS: If you want/need the files I could attach or email them, too.