Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Flash site design question

Flash site design question
Thread Tools
Junior Member
Join Date: Aug 2002
Location: boston
Status: Offline
Reply With Quote
Mar 18, 2004, 09:37 PM
 
I am developing a website entirely in Flash, which I have never done before.

It's a pretty simple site with a top navigation, and about 5 pages.


Is it better to have each page be it's own .swf file, or to have each page a seperate scene in one .swf?

If it makes any difference, I created the first page and it is about 50k. So it is a relatively small site in terms of file size.


Again, I'm a relatively experienced developer, but new to flash design. I appreciate any help.
     
Senior User
Join Date: May 2001
Location: Nottingham, UK
Status: Offline
Reply With Quote
Mar 19, 2004, 04:21 AM
 
I would use separate swf files. It means people only have to load the page if they want to see it.

You really want to use MovieClipLoader.loadclip to load your separate swf files. There's online help available on that, and it's very powerful. Unfortunately, it's flash player 7 only. Most people have version 7 now, but if not you'll have to use the LoadMovie or LoadMovieNum functions
     
Junior Member
Join Date: Aug 2002
Location: boston
Status: Offline
Reply With Quote
Mar 19, 2004, 09:20 AM
 
If I were to keep it in one .swf file, could I have each page on a seperate frame in the movie, and only load each frame as needed?

Maybe have the first frame be a preloader to the second frame, and then load the rest in the background?

Is that another logical way to do it?
     
Senior User
Join Date: May 2001
Location: Nottingham, UK
Status: Offline
Reply With Quote
Mar 19, 2004, 10:37 AM
 
As far as i know, there's no way of 'stopping' a single swf from loading. If it's one file, a browser will download the whole thing at once. I may be wrong though...
     
Mac Elite
Join Date: Dec 2003
Location: In Your Computer
Status: Offline
Reply With Quote
Apr 14, 2004, 12:49 AM
 
Keep each section seperate swfs. It makes so much more sense. There should only be one frame on the root timeline. Use some simple AS like createEmptyMovieClip and then load the swf into that. Make sure its positioned in the place you want it to be...

.: 15" PowerBook G4 - 1.5 GHz - 512 MB RAM - ATI Mobility Radeon 9700 128 MB VRAM - 80 GB HD @ 5400 rpm :.
     
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Apr 14, 2004, 07:50 AM
 
Originally posted by Holigen:
Keep each section seperate swfs. It makes so much more sense. There should only be one frame on the root timeline.
Where do you do put your preloader?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:03 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2