PDA

View Full Version : Absolute path loading issue


The_Edge07
09-15-2005, 06:09 PM
I have a very odd problem with a goto command, hope someone can help!!

I have a movie which has to load in other movies from a folder on the local drive, this is for a special project where the whole thing is installed on the C drive in the inetpub/wwwroot folder.

I have been told by the client that we must use absolute paths, they have had problems using relative paths on these machines before. So I am using the following syntax:
_root.movie_layer.loadMovie("file:///c:/inetpub/wwwroot/courses/client/data/source_movie/hello.swf", 0);

The movies have a stop frame on frame 1 to prevent them from auto running, however when I try: _root.movie_layer.gotoAndPlay(10); it wont run or jump to that frame, it just sits on the stop frame at frame 1.

Now for the odd part, if I change the path to a relative path:
_root.movie_layer.loadMovie("source_movie/hello.swf", 0); and do the _root.movie_layer.gotoAndPlay(10); it works fine! :confused:

Anyone any ideas? this affect abouy 50 movies and I can't make them all autorun!!

The_Edge07
09-16-2005, 05:41 PM
OK so not much response from anyone, so I've had a couple of people looking at it from my end and it looks like it can't be done, unless you give the absolute path of http://127.0.0.1/ etc...

That has worked for me, thanks for those who looked :)

Cota
09-16-2005, 06:56 PM
Have you tried:

_root.movie_layer.loadMovie("file:///c:/inetpub/wwwroot/courses/client/data/source_movie/hello.swf");

without the "0" in the loadmovie argument.