Groups | Blog | Home
all groups > macromedia flash sitedesign > july 2006 >

macromedia flash sitedesign : Creating parent swf


jackcee
7/26/2006 5:50:15 PM
My website, ctmgroupinc.com contains seperate swf's for each page in the site.
I want to creat a "Parent" page that just contains the "shell". The shell would
be the outside border and graphics . So when you click to go to another page
you don't have to reload the border and graphics and only need to load the
contents that changes. How do I keep the "shell" up and just load the content
within the shell?http://www.ctmgroupinc.com
JenMQui
7/27/2006 4:38:49 AM
Good evening Jackcee,

You can use levels to do this. In your parent fla,go into the actions panel
and paste...

loadMovie("home.swf",30);

....I would assume that you would like your home page to load instantly. The
number "30" is a level number that you create. It can be 5, 10, 50, 60, or
whatever. I recommend not using "0" because this is the level of the stage. I
do recommend picking something with a few unused levels below it, in case you
want to go back and add some animated background graphics or the like.

Then go into the swf that contains your navigation, or do this in your parent
fla if that is where the nav is located.....

flaname.buttoninstance.onRelease = function() {
loadMovie("home.swf",30);
};
.....do this for each button instance using the corresponding swf name and the
same level number. The next swf loaded will take place of the existing swf of
the same level number.

I hope this is of help!

Jennifer M Quigley
jackcee
7/27/2006 12:26:11 PM
AddThis Social Bookmark Button