# Movie works on PC but wont work in browser?

**URL:** https://forum.kirupa.com/t/movie-works-on-pc-but-wont-work-in-browser/186923
**Category:** Uncategorized
**Created:** [April 25, 2006, 12:43pm UTC](https://forum.kirupa.com/t/movie-works-on-pc-but-wont-work-in-browser/186923 "2006-04-25T12:43:10Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![will\_roberts](https://avatars.discourse-cdn.com/v4/letter/w/4da419/32.png) [@will\_roberts](https://forum.kirupa.com/u/will_roberts)
#### Post date: [April 25, 2006, 12:43pm UTC](https://forum.kirupa.com/t/movie-works-on-pc-but-wont-work-in-browser/186923/1 "2006-04-25T12:43:10Z")

</div>

Hey all,

i have created a movie in flash and have buttons that load external swfs in through a container. all of this works whilst testing on my pc but when i upload them to ftp and browse to it using any browser only the initial movie loads up.

When i click the buttons to load the external swfs, nothing happens.

Here is the code for the buttons.

```auto

on(press){if (currMovie == undefined) { 
currMovie = "andy"; 
container2.loadMovie("andy.swf"); 
} else if (currMovie != "andy") { 
if (container2._currentframe>=container2.midframe) { 
currMovie = "andy"; 
container2.play(); 
} 
} 
}

```

cant understand why it works on the pc but not online.

Any ideas??

Button is situated on main timeline and the external swfs are in the same directory

---

<div class="post-metadata">

### Author: ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)
#### Post date: [April 25, 2006, 12:46pm UTC](https://forum.kirupa.com/t/movie-works-on-pc-but-wont-work-in-browser/186923/2 "2006-04-25T12:46:39Z")

</div>

alot of FTP programs rename the file extensions to uppercase. Check that “andy.swf” isn’t “andy.SWF”. You’d be suprised how stupid of an issue you can get hung up on:)

---

<div class="post-metadata">

### Author: ![will\_roberts](https://avatars.discourse-cdn.com/v4/letter/w/4da419/32.png) [@will\_roberts](https://forum.kirupa.com/u/will_roberts)
#### Post date: [April 25, 2006, 12:50pm UTC](https://forum.kirupa.com/t/movie-works-on-pc-but-wont-work-in-browser/186923/3 "2006-04-25T12:50:39Z")

</div>

Hi defective. all seems well on that front. i always make sure of that one too. just wont work for some reason??

---

<div class="post-metadata">

### Author: ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)
#### Post date: [April 25, 2006, 12:54pm UTC](https://forum.kirupa.com/t/movie-works-on-pc-but-wont-work-in-browser/186923/4 "2006-04-25T12:54:48Z")

</div>

There just seems to be alot of conditional checking there, maybe try dumbing it down:

```auto
on(press){
   currMovie = "andy"; 
   container2.loadMovie("andy.swf"); 
}

```

---

<div class="post-metadata">

### Author: ![Mirandir](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Mirandir](https://forum.kirupa.com/u/Mirandir)
#### Post date: [April 25, 2006, 12:55pm UTC](https://forum.kirupa.com/t/movie-works-on-pc-but-wont-work-in-browser/186923/5 "2006-04-25T12:55:10Z")

</div>

Is the movie embedded into a HTML-page that is located in another folder? When the movie is embedded it uses the HTML-page’s location for calculating relative paths.

/Mirandir

---

<div class="post-metadata">

### Author: ![will\_roberts](https://avatars.discourse-cdn.com/v4/letter/w/4da419/32.png) [@will\_roberts](https://forum.kirupa.com/u/will_roberts)
#### Post date: [April 25, 2006, 1:01pm UTC](https://forum.kirupa.com/t/movie-works-on-pc-but-wont-work-in-browser/186923/6 "2006-04-25T13:01:00Z")

</div>

Yes Mirandir it is. i have just tried loading the swf from the home directory and it worked fine. any ideas on how i can get it to work the other way?

---

<div class="post-metadata">

### Author: ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)
#### Post date: [April 25, 2006, 1:02pm UTC](https://forum.kirupa.com/t/movie-works-on-pc-but-wont-work-in-browser/186923/7 "2006-04-25T13:02:27Z")

</div>

put in the direct path the file, e.g:

```auto
container2.loadMovie("http://www.somewebsite.com/andy.swf"); 

```

---

<div class="post-metadata">

### Author: ![will\_roberts](https://avatars.discourse-cdn.com/v4/letter/w/4da419/32.png) [@will\_roberts](https://forum.kirupa.com/u/will_roberts)
#### Post date: [April 25, 2006, 1:06pm UTC](https://forum.kirupa.com/t/movie-works-on-pc-but-wont-work-in-browser/186923/8 "2006-04-25T13:06:32Z")

</div>

Thx defective, that worked. 🙂
