# SWF continues playback

**URL:** <https://forum.kirupa.com/t/swf-continues-playback/320612>\
**Category:** programming\
**Created:** [March 28, 2011, 2:36pm UTC](https://forum.kirupa.com/t/swf-continues-playback/320612 "2011-03-28T14:36:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![timmeh83](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@timmeh83](https://forum.kirupa.com/u/timmeh83)\
**Post date:** [March 28, 2011, 2:36pm UTC](https://forum.kirupa.com/t/swf-continues-playback/320612/1 "2011-03-28T14:36:07Z")

</div>

I am building a website which contains a banner made in flash (.SWF)  
This banner should continue playing after navigating to another page within this website.  
It looks like i have to use cookies, but i just cannot get it to work.  
Maybe sharedObjects can do the trick as well?

Can anybody help me out? Or at least give me a head start?

Underneath here i posted my header.php with the banner.swf embedded.  
I include the header.php in my index.php

\<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)”\>  
\<html xmlns=“[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)”\>  
\<head\>  
\<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” /\>  
\<link href=“style.css” rel=“stylesheet” type=“text/css” /\>  
\<title\>Twisted Gifts\</title\>  
\<link rel=“shortcut icon” href="/images/twisted.ico" type=“image/x-icon” /\>  
\<script type=“text/javascript” src="/js/swfobject.js"\>\</script\>  
\<script type=“text/javascript”\>  
swfobject.registerObject(“twisted\_banner”, “9.0.0”, “expressInstall.swf”);  
\</script\>

\</head\>  
\<body\>  
\<div id=“container”\>  
\<div id=“menu\_top”\>  
\<ul\>  
\<li\>\<a href=“index.php”\>home\</a\>\</li\>  
\<li\>|\</li\>  
\<li\>\<a href=“about.php”\>about us\</a\>\</li\>  
\<li\>|\</li\>  
\<li\>\<a href=“contact.php”\>contact\</a\>\</li\>  
\</ul\>

\</div\>  
\<div id=“banner”\>  
\<object classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” width=“700” height=“200” id=“twisted\_banner”\>  
\<param name=“movie” value=“banner.swf” /\>  
\<!–[if !IE]\>–\>  
\<object type=“application/x-shockwave-flash” data="/images/banner.swf" width=“700” height=“200”\>  
\<!–\<![endif]–\>  
\<a href=“[http://www.adobe.com/go/getflashplayer](http://www.adobe.com/go/getflashplayer)”\>  
\<img src=“[http://www.adobe.com/images/shared/download\_buttons/get\_flash\_player.gif](http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif)” alt=“Get Adobe Flash player” /\>  
\</a\>  
\<!–[if !IE]\>–\>  
\</object\>  
\<!–\<![endif]–\>  
\</object\>  
\</div\>
