How to Embedding flash object in Facebook Apps

This is how to embed flash object in Facebook Application (FBML)

1. Create html flash

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Untitled Document</title>
<script src=”../../Scripts/AC_RunActiveContent.js” type=”text/javascript”></script>
</head>
<body>
<script type=”text/javascript”>
AC_FL_RunContent( ‘codebase’,'http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=9,0,28,0′,’width’,’760′,’height’,’500′,’src’,'newlife’,
‘quality’,'high’,'pluginspage’,
‘http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=
ShockwaveFlash’,'movie’,'newlife’ ); //end AC code
</script><noscript><object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=9,0,28,0″ width=”760″ height=”500″>
<param name=”movie” value=”newlife.swf” />
<param name=”quality” value=”high” />
<embed src=”newlife.swf” quality=”high” pluginspage=”http://www.adobe.com/shockwave/
download/download.cgi?P1_Prod_Version=ShockwaveFlash” type=”application/x-shockwave-flash”
width=”760″ height=”500″></embed>
</object></noscript>
</body>
</html>

2. Create iFrame in HTML page

<fb:iframe src=”http://www.semenit.com/fb/life/callback/lifefb/flashlife.php” width=”760″ height=”500″ frameborder=”0″ scrolling=”no”></fb:iframe>

Tags:

This entry was posted on Wednesday, April 14th, 2010 at 8:53 am and is filed under Facebook, PHP. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

  • Hot Lyrics

    This is a good post, I stumbled across your post while looking for some random stuff. Thanks for sharing, I’ll be sure to come back.