Combining content from different .swfs

Hey guys, I have been working on this problem for a while and I am flat out stuck. Take a look at the images below since I can’t up load my .flas (they are too big for kirupaforum (about 120kb)). Basically I have been having a hard time combining content from 3 different swfs onto one. The first .swf, experiemente.swf, is the mainpage where content from bed.swf experimental is loaded. I know how to load different swfs but I don’t know how to load a swf onto another and then click a button on the first swf to display content on the newly loaded swf. There must be something about _parent or _root I don’t know cause I just don’t get it, but I do think I have explained things pretty well using the following images so please check them out and tell me what you think. If you want I can email my flas to you so I can take a look at them.
-the shogun

here are the photos

someone please take a shot at it. All I really want to know is if its possible to have one swf and have a button on that swf to load another swf (a movie transition) on top of the main page (swf1) and then have the buttons on swf be able to load content onto the last frame of the movie/timeline of the second swf. Is it possible to control the content of multiple loaded swfs. Does it have something to do with loading into the _parent? Someone please help, this is for a pretty important project for this upcoming school year and I need it to demonstrate some of the things I have done at a summer architecture program to supplement my work as a third year arch student. much thanks

  • shogun8 (Isaiah)

well… i’m pretty sure it’s possible… cuz i think i read something about this topic about 1-2 days ago in this board… but don’t ask me how to… i am new to flash and still havent got a quite proper documentation for action script… so i can’t tell how to…

   search the board..
   
   yours
  
  EDIT: .. well.. found the thread, but it isnt answered either.. sry

EDIT: alright… took a look at the pics… well it definitely is possible to do all this just within one swf… i think the only reason why it’s proposed to use several .swf’s is to keep the filesize -> loading time as low as possible…

 if you want to solve it with just one .swf i'd propose the following:
 
 use different szenes with the same background but with changing content in the middle.. something like this:
 
 one szene is "links" etc.. and when the button is pressed simply do:
 
 gotoAndPlay("-FRAMENAME-","-SCENENAME-");
 
 whereas in the case of the links button it could be like this:
 
 on(release)
 {[indent]gotoAndPlay("begin","links");
 [/indent]}

to name the frames just select the frame and choose proporties -> there should be something like “framename”… and put “begin” or whatever u can think of there to access this frame… (btw. every keyframe has its own framename… frames after a keyframe get the same name as the keyframe they belong to…)

it’s defenitely not the most accurate solution… but still it should work… and its the best way i know to do it at the moment…

 hope this helps..
 
 kind regards..

so what you want to do is open a swf into main page, from the first loaded swf(1) you then want to load another swf(2), into main page? if you are trying to activate a movieclip in swf(1) from swf(2)? if you are having issues with the second problem I have also posted a similar question, included a zipped file. check it out, someone mite help me.

gld luck

Just a thought, but if you are only using the one photo image as a background then I doubt you need to load in seperate swf’s (if all thats in them is text.

Might be better to use either different scenes in the one file, or perhaps a set of movie clips, each corresponding to a link, eg.

u have bed.swf, which is just text… instead create a movie clip in your expermiment file and call it bed (call the instance of the clip bed that is).

Then on the button for bed you’d have something like:

on(release){
bed.gotoAndPlay(2);
}

(frame 1 having nothing in it but stop():wink:

From frame 2 onwards could be your fade in transition, just put a stop(); where u want the animation to end, otherwise itll loop back to frame 1 then stop.

Anyways, im rambling… back to work…

hmmm…

Sounds like your trying to do a similar thing to me:

http://www.kirupaforum.com/forums/showthread.php?t=67319

I’m still playing around with this but can’t get it working, and i’ve not had any replies at all.

Let me know if you get anywhere.

undrestanding how to make a full flash site might help you:
http://www.kirupa.com/developer/mx/full_site.htm

Hmm interesting thoughts guys thanks for the input, sorry I couldn’t respond sooner (changed isps yesterday). I kind of found what I was trying to do in another thread: check this out http://www.kirupaforum.com/forums/showthread.php?t=67695 . However I have done it a different way, and since I already knew how to load clips (but not control them) I found a way to combine them into one .fla, however it has somehow deactivated my code. Would anyone be willing to post their email so I can send them my material and see if they can fix my “all of the sudden” deactivated buttons?
-shogun