# How to load Movie from subdirectory?

**URL:** <https://forum.kirupa.com/t/how-to-load-movie-from-subdirectory/184450>\
**Category:** Uncategorized\
**Created:** [April 5, 2006, 7:19am UTC](https://forum.kirupa.com/t/how-to-load-movie-from-subdirectory/184450 "2006-04-05T07:19:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kupluk](https://avatars.discourse-cdn.com/v4/letter/k/0ea827/32.png) [@kupluk](https://forum.kirupa.com/u/kupluk)\
**Post date:** [April 5, 2006, 7:19am UTC](https://forum.kirupa.com/t/how-to-load-movie-from-subdirectory/184450/1 "2006-04-05T07:19:27Z")

</div>

hello guys…, glad to join kirupa…

i hope all of you will be my friends and welcome me friendly  
okay…:hugegrin:

i got a problem…  
i have some swf files

these are my files :

[COLOR=Red] **tes.swf** [/COLOR] (not finished file)  
\subdirectory\*_wawa.swf_\*  
\subdirectory\*_MojaveOverNoVol.swf_\*  
\subdirectory\*_movie.flv_\*

okay, i’ll explain you about each file

**wawa.swf** --\> is the file to play the \*\*movie.flv \*\*file,  
**MojaveOverNoVol.swf** --\> is flash video playback template to play **movie.flv** inside the **wawa.swf**

and it works perfectly…

but the problem is, i want to make an swf files wich caled [COLOR=Red]\*\*tes.swf \*\*[COLOR=Black]located on the upper directory  
so that file could play the [/COLOR][/COLOR]\*\*wawa.swf \*\*with its flv movie inside and the flash video playback template also inside it…

i’ve created the [COLOR=Red][COLOR=Red]tes.swf[/COLOR][COLOR=Black]with these actionscript :  
loadMovie(“blablabla”…) inside it and it does’nt work

and also i’ve tried  
[/COLOR][/COLOR][COLOR=Red][COLOR=Black]loadMovieNum(“blablabla”…); and it also doesnt work

NOTE:  
i create the [COLOR=Red] **tes.swf** [/COLOR] file **only to load** the **wawa.swf** …  
the flash file is empty…, no animation, no keyframes (except the first keyframe for the actionscript to load the [/COLOR][/COLOR]"\subdirectory[COLOR=Red][COLOR=Black] **wawa.swf**" file)  
And the [/COLOR][/COLOR][COLOR=Red][COLOR=Black][COLOR=Red]\*\*tes.swf \*\*[/COLOR][/COLOR][/COLOR][COLOR=Red][COLOR=Black]flash file will be used inside a PC as a projector file for presentation, not to used inside browser

BUT Things never been as smooth as i expected please help ;(;(;(  
[/COLOR][/COLOR]

---

<div class="post-metadata">

**Author:** ![arriba](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@arriba](https://forum.kirupa.com/u/arriba)\
**Post date:** [April 5, 2006, 11:28am UTC](https://forum.kirupa.com/t/how-to-load-movie-from-subdirectory/184450/2 "2006-04-05T11:28:24Z")

</div>

you said:

**wawa.swf** --\> is the file to play the \*\*movie.flv \*\*file,  
**MojaveOverNoVol.swf** --\> is flash video playback template to play **movie.flv** inside the \*\*wawa.swf

\*\*how realy plays the flv? first of all…

check if the player call actions with the \_root or something like that, it could be the reason… if this happend i think (i never used it) there´s a property to loock the root of the mavie you load this way:

MovieClip.\_lockroot

See in the flash help how to use it, this makes all the \_root references of the load movie go to it self “\_root”, and not to the main movie, ok?

---

<div class="post-metadata">

**Author:** ![kupluk](https://avatars.discourse-cdn.com/v4/letter/k/0ea827/32.png) [@kupluk](https://forum.kirupa.com/u/kupluk)\
**Post date:** [April 5, 2006, 4:17pm UTC](https://forum.kirupa.com/t/how-to-load-movie-from-subdirectory/184450/3 "2006-04-05T16:17:15Z")

</div>

> [@arriba](#):
>
> you said:
> 
> **wawa.swf** –\> is the file to play the \*\*movie.flv \*\*file,  
> **MojaveOverNoVol.swf** –\> is flash video playback template to play **movie.flv** inside the \*\*wawa.swf
> 
> \*\*how realy plays the flv? first of all…
> 
> check if the player call actions with the \_root or something like that, it could be the reason… if this happend i think (i never used it) there´s a property to loock the root of the mavie you load this way:
> 
> MovieClip.\_lockroot
> 
> See in the flash help how to use it, this makes all the \_root references of the load movie go to it self “\_root”, and not to the main movie, ok?

dude…, i’m totaly new to flash…, i cant understand your explanation…

i also stuck on the Flash documentation :kommie:

---

<div class="post-metadata">

**Author:** ![Catalist](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/catalist/32/2148_2.png) [@Catalist](https://forum.kirupa.com/u/Catalist)\
**Post date:** [April 5, 2006, 6:55pm UTC](https://forum.kirupa.com/t/how-to-load-movie-from-subdirectory/184450/4 "2006-04-05T18:55:35Z")

</div>

You prolly used an absolute path. The loadMovie is looking for it in the same directory.  
So, if the file is in the directory behind yours. Use…

loadMovie(…/fileName.swf

But if it’s in a file below the directory the main \_root is in use a relative path, like…  
loadMovie([www.yourdomain.com/direcoryofRoot/subDirectory/file.swf](http://www.yourdomain.com/direcoryofRoot/subDirectory/file.swf)

Get it 😉  
?
