path of loadMovie

  • mm2
  • Born
  • Born
  • No Avatar
  • Joined: Sep 01, 2004
  • Posts: 4
  • Loc: atlanta
  • Status: Offline

Post September 1st, 2004, 3:38 pm

Hi, all

I have this question about the path of loadMovie in flash.

I have two swfs. 2.swf will be loaded into 1.swf. I put these two swfs into a folder called media. Outside this media folder there is a index.html into which 1.swf is embeded.

I have to include the foder name into the path like this to make it work.

loadMovie("media/2.swf")

But this way, when I test 1.swf directly inside the media folder, nothing will be loaded.

It's so weird. Is it the way things are supposed to work?

Thanks in advance!
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 1st, 2004, 3:38 pm

  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post September 1st, 2004, 3:56 pm

That's it.
Imagine your in your living room,
you know the path to the bathroom in your bedroom is "bedroom/bathroom".
Now if your in the bedroom the path would be "bathroom", if it were "bedroom/bathroom" you would know that you are allready in the bedroom & go from there, flash however is going to look for the bedroom because it has been instructed to, if you tell it to go to "bedroom/bathroom" it's going to look for a bedroom door no matter where it is.
Strong with this one, the sudo is.
  • forest
  • Born
  • Born
  • No Avatar
  • Joined: Aug 26, 2004
  • Posts: 4
  • Status: Offline

Post September 2nd, 2004, 5:48 pm

Yea, try loadMovie("../media/2.swf");
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post September 3rd, 2004, 4:37 am

forest wrote:
Yea, try loadMovie("../media/2.swf");


:eek6: ... That's like walking from the livingroom into the bedroom & instead of just walking into the bathroom you walk back out into the livingroom then back into the bedroom then go to the bathroom.

I might pee myself by then :wink:
Code: [ Select ]
loadMovie("2.swf");
Strong with this one, the sudo is.
  • mm2
  • Born
  • Born
  • No Avatar
  • Joined: Sep 01, 2004
  • Posts: 4
  • Loc: atlanta
  • Status: Offline

Post September 3rd, 2004, 6:40 am

thanks joebert and forest.

loadMovie("../media/2.swf");

hmm, but this one didnt work. i want the path work for both situations, in the folder and outside the folder. but i just realized that it's impossible.

i guess i will declare a variable and use the value of that variable as the path. this way, by changing the vaule of the variable i can change the path easily.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 85 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.