Groups | Blog | Home
all groups > flash actionscript > august 2004 >

flash actionscript : Flash based web site


SandyWeber
8/4/2004 11:04:24 PM
Hi all, I'm hoping someone can help me...

I building a Flash based web site (I mean all the pages are Flash pages, no
html). What I am doing is to load each page into a master swf as each menu
button "link" is pressed. I am loading each page into their own separate levels
in the master file.

What I am wanting to do is when a page is called to be loaded it checks to see
if it has already been loaded into its level. If it has, it displays the page
already loaded. If the page hasn't been loaded, it calls up the page from the
server. In this way it taxes the server less and pages display more efficiently
(since it is displaying pages cached in levels in the master file rather than
re-loading them from the server each time) giving the user a faster experience.

I hope I have made sense in my description. It seems like this would be a
typical thing to want to do with a Flash site, yet I can't seem to find any
information about doing this anywhere.

Or am I making this overly complex??

Thanks for any help!

Sandy

_jrh_
8/5/2004 2:20:45 AM
in each of the external pages that you're going to load, have an unique
identifying variable like _root.page1 = "loaded". then, in the main movie
buttons, before you load, have:

if (_root.page1 != "loaded") {
// your load code
}

this is one way of doing it.
SandyWeber
8/5/2004 4:57:15 PM
That's great! I knew there had to be a simple way of doing it.

Thanks so much.

Sandy
AddThis Social Bookmark Button