# Swfs work offline but load funny online

**URL:** https://forum.kirupa.com/t/swfs-work-offline-but-load-funny-online/183496
**Category:** Uncategorized
**Created:** [March 27, 2006, 4:40pm UTC](https://forum.kirupa.com/t/swfs-work-offline-but-load-funny-online/183496 "2006-03-27T16:40:52Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![FlashFish](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@FlashFish](https://forum.kirupa.com/u/FlashFish)
#### Post date: [March 27, 2006, 4:40pm UTC](https://forum.kirupa.com/t/swfs-work-offline-but-load-funny-online/183496/1 "2006-03-27T16:40:52Z")

</div>

[http://www.dovecoteweddingcars.co.uk/](http://www.dovecoteweddingcars.co.uk/)

Offline, each section of this site works fine. Each section is an externally loaded swf and they load in their entirety. But when it’s online, only parts of the swf are visible when it’s first loaded. Check the contact section for example. There should be a map image that’s missing. Click contact again, and it appears. Any thoughts? Thanks in advance.

---

<div class="post-metadata">

### Author: ![jillymo](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jillymo](https://forum.kirupa.com/u/jillymo)
#### Post date: [March 27, 2006, 5:02pm UTC](https://forum.kirupa.com/t/swfs-work-offline-but-load-funny-online/183496/2 "2006-03-27T17:02:26Z")

</div>

I know I had a similar problem in the past and it had to do with my paths. I was using \_root in the loaded swf’s and had to change to \_this so that it loaded things into the proper timeline. I believe it has something to do with you main movie becoming \_root when the swf’s are loaded into it. Let me see if I can find the old thread that would explain correctly for certain.

found it: [http://www.kirupa.com/forum/showthread.php?t=89480](http://www.kirupa.com/forum/showthread.php?t=89480)

---

<div class="post-metadata">

### Author: ![FlashFish](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@FlashFish](https://forum.kirupa.com/u/FlashFish)
#### Post date: [March 27, 2006, 5:32pm UTC](https://forum.kirupa.com/t/swfs-work-offline-but-load-funny-online/183496/3 "2006-03-27T17:32:29Z")

</div>

Thanks for the help! But I can’t quite work out what part to change. This is my code:

this.createEmptyMovieClip(“content”, 2);  
with (“content”) {  
\_x = 0;  
\_y = 0;  
\_root.content.loadMovie(“home.swf”)  
}

and then on the buttons:

on (release){  
\_root.content.loadMovie(“coaches.swf”)  
}  
So I change \_root.content.loadMovie(“coaches.swf”)  
to  
\_this.content.loadMovie(“coaches.swf”) ?

Thanks again!

---

<div class="post-metadata">

### Author: ![jillymo](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jillymo](https://forum.kirupa.com/u/jillymo)
#### Post date: [March 27, 2006, 5:40pm UTC](https://forum.kirupa.com/t/swfs-work-offline-but-load-funny-online/183496/4 "2006-03-27T17:40:05Z")

</div>

FlashFish-

I don’t mean the code in your main movie, that should be fine. I am talking about where \_root is addressed in the loaded movies (like in your example the coaches.swf movie)

---

<div class="post-metadata">

### Author: ![FlashFish](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@FlashFish](https://forum.kirupa.com/u/FlashFish)
#### Post date: [March 27, 2006, 6:07pm UTC](https://forum.kirupa.com/t/swfs-work-offline-but-load-funny-online/183496/5 "2006-03-27T18:07:48Z")

</div>

Uhm, I don’t have any code in my loaded movies! Should I have?! I think we may have different problems…

---

<div class="post-metadata">

### Author: ![jillymo](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jillymo](https://forum.kirupa.com/u/jillymo)
#### Post date: [March 27, 2006, 6:24pm UTC](https://forum.kirupa.com/t/swfs-work-offline-but-load-funny-online/183496/6 "2006-03-27T18:24:56Z")

</div>

Yes you are right this is not the problem then. So sorry I could not help.

---

<div class="post-metadata">

### Author: ![FlashFish](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@FlashFish](https://forum.kirupa.com/u/FlashFish)
#### Post date: [March 27, 2006, 7:55pm UTC](https://forum.kirupa.com/t/swfs-work-offline-but-load-funny-online/183496/7 "2006-03-27T19:55:56Z")

</div>

Never mind, thanks for the effort!

Anyone else?
