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

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 7, 2004, 5:39pm UTC](https://forum.kirupa.com/t/great-prob-swf-doesnt-work-online/63525/2 "2004-09-07T17:39:52Z")

</div>

search for Quasimodo’s loadmovie fix on google.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 7, 2004, 6:49pm UTC](https://forum.kirupa.com/t/great-prob-swf-doesnt-work-online/63525/3 "2004-09-07T18:49:28Z")

</div>

> [@amitgeorge](#):
>
> search for Quasimodo’s loadmovie fix on google.

Sorry but I do not find anything usefull… there is “Quasi_mondo_” but also with that keyword I don’t find anything like an “loadmovie fix”. ☹

Can you give me an URL?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 7, 2004, 9:27pm UTC](https://forum.kirupa.com/t/great-prob-swf-doesnt-work-online/63525/4 "2004-09-07T21:27:35Z")

</div>

Offline the HTML-File with the integrated FlashMovie works well, too. But online…

```
  I now attach the files, therefor some information:
     - I will only pack some important files with it
          - the main movie
          - the menu
          - one gallery together with some demo-pictures in different sizes
          - a .txt-File from which the movie reads the amount of pictures per gallery
     - because the menu (as a .fla-file) is 107MB big I will upload that and the images [extern](http://tests.alpha-page.de/help.zip)
      - some of the variables and commentaries are german for questions post, pm or email me
```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 9, 2004, 6:24am UTC](https://forum.kirupa.com/t/great-prob-swf-doesnt-work-online/63525/5 "2004-09-09T06:24:41Z")

</div>

Here it is :

> 

Movieclip.prototype.oldLoadMovie=Movieclip.prototype.loadMovie;  
Movieclip.prototype.loadMovie=function(url,vars) {  
if(this.onData != undefined && this.onData != null) {  
this.\_parent.createEmptyMovieClip(“\_\_fixEvents”,7777);  
this.\_parent.\_\_fixEvents.theTarget=this;  
this.\_parent.\_\_fixEvents.onData=this.onData;  
if(this.onLoad != undefined && this.onLoad != null) {  
this.\_parent.\_\_fixEvents.onLoad=this.onLoad;  
}  
this.\_parent.\_\_fixEvents.onEnterFrame=function() {  
this.oldv=this.v;  
this.v=this.theTarget.getBytesLoaded();  
if(this.v != this.oldv) {  
this.onData.call(this.theTarget);  
}  
if(this.v == this.theTarget.getBytesTotal() && (this.theTarget.\_width \> 0) && (this.theTarget.\_height \> 0)) {  
this.theTarget.onData=this.onData;  
if(this.onLoad != undefined) {  
this.theTarget.onLoad=this.onLoad;  
}  
this.onLoad.call(this.theTarget);  
this.removeMovieClip();  
}  
}  
}  
this.oldLoadMovie(url,vars);  
}
