Jump to content
Sign in to follow this  
Zaseth

What is: SWFObject & SWFAddress

Recommended Posts

So SWFObject & SWFAddress are both used in the CP play page.

These ''Javascript'' frameworks are for prettifying (and importing) SWF files into a homepage.

Now this is a format of SWFObject's usage:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<title></title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<script type="text/javascript" src="swfobject.js"></script>
		<script type="text/javascript">
			swfobject.registerObject("myFlashContent", "9.0.0");
		</script>
	</head>
	<body>
		<div>
			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="600" id="myFlashContent">
				<param name="movie" value="untitled.swf" />
				<!--[if !IE]>-->
				<object type="application/x-shockwave-flash" data="untitled.swf" width="800" height="600">
				<!--<![endif]-->
					<a href="http://www.adobe.com/go/getflashplayer">
						<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
					</a>
				<!--[if !IE]>-->
				</object>
				<!--<![endif]-->
			</object>
		</div>
	</body>
</html>

So now you are thinking probably: It's a large piece of code. Is there any way to actually generate this with a ton of options?

Well yes, there is and you can find that here: https://raw.githubusercontent.com/swfobject/swfobject/master/swfobject_generator/html/index.html

SWFAddress is there for using hyperlinks. Basically adding #xdd into your URL.

These are both pretty small projects and frameworks, but CP always used them.

You can find SWFAddress here: http://www.asual.com/swfaddress/ 

  • Like 1

Share this post


Link to post
Share on other sites
Sign in to follow this  

×