Skip to main content
Inspiring
June 24, 2009
Question

LoadMovie question

  • June 24, 2009
  • 1 reply
  • 1508 views

I have an flv player inside an swf (call it sub1.swf) the flv player has xml files that need to be in the same folder in order to work. I use a main swf to call the flv player  that is inside the sub1.swf with loadMovie this works fine as the path is  (in main.swf) loadMovie("sub.swf",1);

My problem is I have 8 other sub swf pages with 1 flv player in each and I cannot put these sub .swfs in the same folder as sub 1 because the xml files all have the same names and this will cause none of them to work. My only other idea is to put each sub.swf with xml and flv player files in its own folder so I have 9 folders with 9 separate sub.swfs. So the path is

(in main.swf)

loadMovie("folder1/sub1.swf",1);

loadMovie("folder2/sub2.swf",1);

loadMovie("folder3/sub3.swf",1);

This does not work,there has to be another way to do this.

anybody?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
June 24, 2009

use loadMovieNum() if you want to load into levels and use different levels for each swf.


loadMovieNum("folder1/sub1.swf",1);

loadMovieNum("folder2/sub2.swf",2);

loadMovieNum("folder3/sub3.swf",3);


mentlityAuthor
Inspiring
June 24, 2009

OK, but loadMovieNum does not work when the path is

loadMovieNum ("folder1/sub.swf",1)

only works for

loadMovieNum ("sub.swf",1)

when I put the folder1 the swf is in (in the path) it doesn't work.

???????

kglad
Community Expert
Community Expert
June 24, 2009

then you have the wrong folder name or the wrong swf name or the others are loading and you don't see them.

p.s.  the path will be relative to the embedding html file.