PHPJavascript

Web Development Guide – My Personal Library of Tutorials and Scripts

Flash header reloading webpage load

February25

Download

In flash header websites the flash header reloads everytime a web page is called, to avoid that we can use sharedObject. Download fla file demonstrating the above mentioned feature.

You can use the latest feature of Flash MX ie sharedOject.

Click here to learn about sharedObject.

Now use the same technology with your flash header templates. All you have to do is create a flag at the first and last frame. The last frame creates sharedObject and the first frame checks if the sharedObject has already been created the flash player goes to the last frame else playes the movie from the first frame onwards.

First Frame

local_data = SharedObject.getLocal(”user_data”);
if (local_data.data.user_age <> undefined) _root.gotoAndStop(”last”);

Last Frame

local_data.data.user_age = 23;
local_data.flush();
stop();

Download the file above to get an idea. I am sorry I could’nt upload a proper flash header file with clear description due to lack of time. But thanks for visiting my website :)

posted under Flash

Email will not be published

Website example

Your Comment:

 

2,885 spam comments
blocked by
Akismet