PDA

View Full Version : loadmove inside a loaded movie?


jamesbooth
03-01-2006, 04:49 PM
I have another website which loads .swf's into it as different pages.

this is what ive used to load into the main.swf



loadMovie("home.swf", "_root.container"); //container being an empty mc



on one of the pages ive tried to load another .swf into and already loaded .swf



loadMovie("morose.swf", holder1); //holder being the empty mc in the loaded .swf



when i open the movie thats going to be loaded first into the main page on its own the other movie loads into it, but when i open the main.swf and load the first one in the second .swf doesnt appear? where have i gone wrong?

Thank you

Ricod
03-01-2006, 08:06 PM
Where is this code executed from ?

If holder1 is for instance in the swf which you loaded into the container mc and you execute this code from the main-swf, then the path should be _root.container.holder1

If not, then maybe holder1 isn't labeled correctly.

Or you need to use quotes : "holder1"

:rolleyes: nope, can't think of anything else atm

jamesbooth
03-01-2006, 09:04 PM
once ive loaded page1.swf into container (mc) which is in main.swf, im then loading subpage.swf into holder1 (mc) which is in page1.swf, i have the code to load subpage.swf in the page1.swf

but its inside a movie clip of animation on the first frame of page1.swf
would that change anything?

Ricod
03-02-2006, 02:53 PM
If I read it right, the absolute path to the holder mc would be :
_root.container.some_animation_mc_on_frame_1_of_pa ge1_swf.holder1

If "holder1" is inside another mc and the code is not on the same location, it won't find "holder1". You'll need to state the label of the animation mc then.

jamesbooth
03-02-2006, 08:25 PM
i tried what you said i was wondering if being in a different folder made a difference?

my "main.swf" with "container" (mc) inside is in the main folder.

then inside is a folder called "portfolio" with my "emotionaltype.swf" which is the page that loads into container on "main.swf", this has "background" (mc) with some animation and "holder1" (mc) inside.

also in that folder is "morose.swf" which needs to load into "emotionaltype.swf"

the code i have inside the "background" (mc) in "emotionaltype.swf" to load "morose.swf" is...


loadMovie("morose.swf", "_root.container.background.holder1");

but that doesnt work.

:(

oldnewbie
03-03-2006, 12:33 AM
Why don't you try it with ALL files in the same folder?

Ricod
03-05-2006, 05:37 PM
Or including the path to the right folder where the swf you want to load is located. If not, Flash won't know where to look and thus can't find it.

jamesmack
03-08-2006, 01:09 PM
have the same prob, too. this is the code i use for loading movies

on (release) {
_root.gallery_loader.loadMovie("gallery.swf");

(action is assigned to a button, gallery_loader is the empty MC the gallery.swf loads into)

it's supposed to go like this: main.swf --loads--> maingallery.swf --loads--> gallery1.swf

i've only loaded maingallery.swf but gallery1.swf doesn't

jamesbooth
03-09-2006, 11:49 AM
Finally after several fist to table collisions i've magaged to get the swf to load in!
as you said i put them in the same folder and took out all the code and it worked.

the code i ended up using was just.



loadMovie("morose.swf", "holder1")



thank you all for your help!