# GREAT PROB: swf doesn't work online !?

**URL:** <https://forum.kirupa.com/t/great-prob-swf-doesnt-work-online/121815>\
**Category:** Uncategorized\
**Created:** [September 7, 2004, 5:37pm UTC](https://forum.kirupa.com/t/great-prob-swf-doesnt-work-online/121815 "2004-09-07T17:37:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ObergottJango](https://avatars.discourse-cdn.com/v4/letter/o/c2a13f/32.png) [@ObergottJango](https://forum.kirupa.com/u/ObergottJango)\
**Post date:** [September 7, 2004, 5:37pm UTC](https://forum.kirupa.com/t/great-prob-swf-doesnt-work-online/121815/1 "2004-09-07T17:37:03Z")

</div>

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...

```

```auto
_root.movieclip.loadMovie("... .swf");

```

```
   then I loaded the images also by...

```

```auto
_root.movieclip2.loadMovie("image.jpeg");

```

```
   and then resized and repositioned them...

```

```auto
*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);
      }

```

…

```auto
_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.
