Welcome to WebmasterWorld Guest from 54.167.219.201

Forum Moderators: open

Message Too Old, No Replies

getting flash not to restart on page change

     
4:05 am on Apr 13, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:June 10, 2005
posts:78
votes: 0


Hi all,

I have a website set up where I have a flash header then some content. There is one main page that is php that has the header then and @include for the content which gets passed a variable from the page links.

My problem is when you click on a link to load new content the flash header reloads.

Does anyone know how I can stop it reloading each time a link is clicked.

Many thanks
Kiwidesign

4:41 pm on Apr 21, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:May 14, 2004
posts:41
votes: 0


You can't really stop the flash movie from reloading without going to some more complicated ajax setup for the site.

However, you can pass variables into the flash move via a query string in the object/embed tag....to indicate a starting point for the movie.

Put some code in the first frame of the movie to check for the var you are sending....like whatever.swf?start=afterIntro....

If (start == 'afterIntro')
{
_root.gotoAndPlay('home');
}
else
{
_root.gotoAndPlay('intro');
}

Simple example...but you should get the idea...

Depending on how you have the navigation movie setup..this should work....

I haven't done this in a while so you will likely have to do some experimentation.

The concept definitely works though.

9:05 pm on Apr 23, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:June 10, 2005
posts:78
votes: 0


Thank you very much. I will definately use this.

Cheers
Kiwidesign

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members