Swf within swf within swf

Using a button, I am loading an external swf into a blank movie clip on my main timeline. In that external swf, again using a button, I am loading another external swf into a blank movie clip on it’s timeline. Doing this, the last external swf loaded (the one loaded into the external swf that was loaded into an mc on the main timeline) doesn’t work. Any buttons or actions do not function and it’s not positioned properly.

I think this has something to do with levels or depths or something but I am very confused. If someone has some insight on this, please share.

Please include the script if you can, I’m new at this…

Thanks in advance…

-P.

make sure the paths to your movies are named correctly,
say we were to press a button on the main timeline so to effect the movie in the nested swf in the external swf. the last one in other words.


on(release) {
_root.1blankMC.2blankMc.gotoAndPlay(14);
}


this code would look into the blank Mc which i called " 1 blank MC", then go to the 2 blank Mc which i called " 2 blank MC" then it would do the action you request which is in the 2 blank mc.

Is this what you want?

:::soulty:::smirk::

Thanks for your help, but I’ve got a more pressing problem: I can’t even see my buttons in the last external swf when it’s loaded. Any idea what gives?

-P.

my problem is the same, I have a blank mc (mc1) on top of a second blank mc (mc2). Mc1 is my topbar with a simple mousefollow type highlighter. Mc2 is my background. If I ONLY have Mc1 loaded, the mousefollow works. but if Mc2 is loaded with Mc1 loaded on top layer- All functionality of Mc1 is gone, it becomes a really cool 45 hours-to-make picture. Also if Mc1 is loaded INTO Mc2 it still does not work. I have to have both mc’s separated becase I want the mousefollow resricted to the topbar only and not over the rest of the site. HELP!!!

p13 and AplusIGX could you both post your fla’s?.

Maybe this will help, i mocked up something to show you a swf being loaded into a mc, then another swf being loaded to a 2ndblank MC from the external swf main time line.

Ive made some button to load and unload the swf, you will notice that when you get down to the last swf , the nested one in mc 2, that the buttons on mc2 still work. :slight_smile:

::::soulty:::smirk:::

*Originally posted by Soulty *
**p13 and AplusIGX could you both post your fla’s?. **

Thanks for all your help so far. I downloaded your example but for some reason applying it to my site didn’t seem to help. Here’s my fla’s for you to check out:

Right click: p13 site

Thanks!

-P.

By the way, the problem I’m having is with my “portfolio” section and the “illustration” section within.

Thanks again,

-P.

hey P13 you have to change some of your paths in portfolio swf. since your loading to a target mc , the _root will always be the first movie, your main movie, so for all your code to work in the portfolio section you have to change where you are targeting the button to load the swf in.

Your code (illustration button)


on (release) {
    loadMovie("illustration.swf", "_root.blanket");
}

this will make the movie look for a instance mc called blanket on the the main timeline , you dont want to do that you need to follow the path to where your instance “blanket” is .


on (release) {
    loadMovie("illustration.swf", "_root.blankhost.blanket");
}

hope this could help :slight_smile:

:::Soulty:::smirk::

No, that didn’t seem to work. Now nothing happens when I click the illustration button. Any other ideas?

Thanks!

-P.

? thats strange, it works here , but it just giving me the error that it cant find that path to the images. :-\

I changed the illustration button’s script to:

on (release) {
loadMovie(“illustration.swf”, “_parent.blanket”);
}

and it seems to work, it loads in now but the buttons in the illustration swf aren’t there for some reason…

Any ideas?

Thanks…

-P.

the left and right buttons on the illustration swf are targeted to _root . Need to change this.

Other than that iam not sure.

I tried targeting them with _parent but it didn’t work… AAARRRGGGHHH!

Thanks for all your help though!

-P.

I set up my portfolio using this tutorial I found on Kirupa:

Gallery

I though maybe you could check it out and it might give you some insight on my problem…

Thanks,

-P.

Hello,

I was wondering if it was possible to load the 2nd MC into it’s own new popup window, instead of loading it onto the root/main page? I know this can be done into a new HTML window but I don’t want to do that.

I would like to enable a button to launch a smaller sized window that contains text and I’d like to do it using swf/movie clips.

Thank you in advance!

lunatic