 |
 |
Flash site design question
|
 |
|
 |
|
Junior Member
Join Date: Aug 2002
Location: boston
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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?
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|