Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions

Problem with Flash header


Reply

2 Posts   1447 Views

Avatar
Jaap

23 January 2010 at 7:01am Community Member, 2 Posts

Hi guys,

First of all, I'm a complete SilverStripe noob but I managed to get my first site running with this great CMS.
I've got a small problem with my Flash header, everytime I go to a different page the movie starts playing from the start.
Is there a way to keep it looping when browsing the site?

Regards,

Jaap

Avatar
banal

23 January 2010 at 9:27am (Last edited: 23 January 2010 9:27am), Community Member, 901 Posts

Hi and welcome to SilverStripe.
Embedded content like SWFs (Flash) or Movies always start anew with every page-refresh.
There are several workarounds for this, but they are either complicated or a SEO nightmare.

Here the possibilities I can think of:
1) Create a frameset. Run the flash header in the top frame and the rest of your site in the frame below.
Pros: Easy to do
Cons: Really bad in terms of search engine friendliness, bookmarking etc.

2) Load your site-contents via AJAX instead of reloading the whole site
Pros: No frameset, other elements (like the navigation) could stay "static" as well
Cons: Almost the same problems as with frames. Problem can be solved by using a deep-linking script like [url=http://www.asual.com/swfaddress/]SWFAddress[/url]

3) Keep track of the flash-position inside flash (by storing the "playhead-position" in a [url=http://livedocs.adobe.com/flex/3/langref/flash/net/SharedObject.html]shared object[/url] or similar and restart the movie from there at every page-refresh)
Pros: Website can be built as usual
Cons: Requires some advanced flash skills and most importantly: Access to the flash source.