This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > April 2004 > Closing and Opening Curtains





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 Closing and Opening Curtains
Milo

2004-04-23, 5:33 pm

I'm working on a flash movie that's got curtains. When the movie starts the
curtains are closed and then they open to show the viewer whats inside..
(The home area). Then if you click on a contact button, the curtains close
and then open again revealing the contact area. Same thing for other areas.
How do I achieve this? Does it need to involve load and unload movie
actions?

Thank you very much!


jmack007

2004-04-24, 5:30 pm

Hello --

Yes it does involve loadMovie() but that's not all.

You can do two things.

1. You can hard code an array of the swfs you want to load when the nav
buttons are clicked then pass the current array element to a loadMovie()
function you will create that will play the first half of the transition and do
a preloader on whatever array element is being inserted into the movie clip
that holds your content swfs

2. Or-- you can define a variable in the first frame of your transition movie
clip and have this variable change based on the swf title or jpeg asset you are
wanting to load when the curtains close and open.

Alternatively-- and the way I do it, is you can put references to all of your
swfs in an XML document and have your loadMovie custom function just walk the
tree-- therefore you can add, change and remove any swfs you may want to have
in the future as the site grows or maintenance occurs.

--jmac

Sponsored Links


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