Preloading into nested clips

hey all,
i have been struggling with this for a long time and i haven’t been able to come up with a solution.

i have a main movie (homepage.html). On that main movie i have a CONTAINER MC. Into the container MC i am loading VIDEO.SWF. This swf file has a slider navigation menu in it. Within this slider navigation menu, I have another movie clip container called talkingHead. when a user clicks on a button in the slider navigation I have a swf load into this talkingLight MC. I would like to preload the swf that is loading into this talkingLight MC. But my code doesn’t seem to be working.
right now I have


bytes_loaded = Math.round(_parent.container.mask2.general.talkingLight.getBytesLoaded());
bytes_total = Math.round(_parent.container.mask2.general.talkingLight.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_parent.container.mask2.general.talkingLight.progressBar._width = getPercent*200;
_parent.container.mask2.general.talkingLight.progressText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
	_parent.container.mask2.general.talkingLight.gotoAndPlay(3);
}

what i am doing wrong??? is there some conflict cause of the slider menu system, or do masks affect your ability to preload (i highly doubt this is the problem)
hope you can help

cheers
Pithcell

Hmm, there is something wrong with the targeting, but i can’t really see since all this is very confusing (better if you posted with the AS tags next time :)).

_parent.container.mask2.general.talkingLight.progressText

These lines look a bit weird, i’m not sure if this is right though so it would be better if you posted an fla, or a sample or somethin similiar :slight_smile:

hey blah-de-blah and all,
the files are too big to post here but i have posted them on my server so you can get them there

http://www.solidhang.com/tonytemp/video.fla.zip

and

http://www.solidhang.com/tonytemp/gazebo.fla.zip

WARNING, the video file is VERY large (58.8 Mbs), and the gazebo file is smaller, like 2 or 3 Mbs.
Sorry bout the file sizes

thanks guys
Pithcell

file does not exsist for the gazebo :-\

Ok so i see the preloader is in the video you want to load, i usually put it inside the in the file that is loading the one you want to preload. Get it?

That might help, but i’m not sure and i don’t have your other fla…

Just make a new movieclip (with nothing inside), then put your code in there. And so when you click on a button, you target this frame so it loads your thing. Get it? :-\

hey blah-de-blah

i’m not sure i understand. I posted the gazebo clip up there @ (it’s definately there i checked)

http://www.solidhang.com/tonytemp/gazebo.fla.zip

sorry i forgot to post it last time. thanks for your patience

hope you can keep helpin

best
pithcell