homepage Welcome to WebmasterWorld Guest from 54.198.224.121
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
getting flash not to restart on page change
kiwidesign




msg:1564128
 4:05 am on Apr 13, 2006 (gmt 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

 

markanthony




msg:1564129
 4:41 pm on Apr 21, 2006 (gmt 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.

kiwidesign




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

Thank you very much. I will definately use this.

Cheers
Kiwidesign

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved