# Windows Mac Compatibility

**URL:** https://forum.kirupa.com/t/windows-mac-compatibility/50556
**Category:** flash
**Created:** [May 4, 2004, 12:02pm UTC](https://forum.kirupa.com/t/windows-mac-compatibility/50556 "2004-05-04T12:02:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Pat\_Begg](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@Pat\_Begg](https://forum.kirupa.com/u/Pat_Begg)
#### Post date: [May 4, 2004, 12:02pm UTC](https://forum.kirupa.com/t/windows-mac-compatibility/50556/1 "2004-05-04T12:02:04Z")

</div>

Hi all,  
Got a problem with some random movie loading script, it works fine on a PC, loading a random movie out of a list when entering a frame, but on a Mac the random movie will not automatically display, however when one of the buttons if clicked it will load the movie.

This is the code:

filename = [“aerial\_pic\_1.swf”, “aerial\_pic\_2.swf”, “aerial\_pic\_3.swf”];  
path = “[http://www.charlesward.com](http://www.charlesward.com)\”;  
i = filename.length;  
k = Math.floor(Math.random()\*i);  
loadMovie(path+filename[k], \_root.main\_image);

Any ideas anyone? this is the last bug in the project.  
Much appreciated anyone that can help, adios

---

<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: [May 4, 2004, 12:45pm UTC](https://forum.kirupa.com/t/windows-mac-compatibility/50556/2 "2004-05-04T12:45:35Z")

</div>

```auto
path = "http://www.charlesward.com/"; 

```

works on Mac;)

scotty(-:

---

<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: [May 4, 2004, 1:09pm UTC](https://forum.kirupa.com/t/windows-mac-compatibility/50556/3 "2004-05-04T13:09:27Z")

</div>

Oh, when you go to the ‘photography’ link you will see about 8 links at the bottom of the screen i.e. architecture, aerial etc. when you click on these one of the thumbnails on the righthand side should load automatically, does it do this?  
And to be cheeky, all of the thumbanils link to a fullsize movie, each with a pre-loader, the preloaders work fine when the thumbnails are clicked, but when the random movie loads it shows ‘NaN%’ and the full progress bar instead of counting up…any ideas?

Pat

---

<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: [May 4, 2004, 2:01pm UTC](https://forum.kirupa.com/t/windows-mac-compatibility/50556/4 "2004-05-04T14:01:26Z")

</div>

Nope…  
I copied the code you gave in your first post and that didn’t work, but after changing the address in

```auto
path = "http://www.charlesward.com/";

```

it worked:) (including preloader)  
I guess when I look at your site it still the old code?

scotty(-:
