This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > August 2006 > Creating parent swf





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Creating parent swf
jackcee

2006-08-02, 10:46 am

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

2006-08-02, 10:46 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

2006-08-02, 10:46 am

Thanks Jen. I'll give it a try.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews