path of loadMovie

  • mm2
  • Born
  • Born
  • mm2
  • Posts: 4
  • Loc: atlanta

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

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.
  • forest
  • Born
  • Born
  • forest
  • Posts: 4

Post 3+ Months Ago

Yea, try loadMovie("../media/2.swf");
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

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");
  • mm2
  • Born
  • Born
  • mm2
  • Posts: 4
  • Loc: atlanta

Post 3+ Months Ago

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 10 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
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.