converting old flash object code into SWFOBJECT code

Hi all,

I'm using slideshow pro to create banners, the flash code it pumps out is the usual adobe active content code, however this isnt as clean as the swfobject code.

I've tried to convert my code using this tutorial, but im clearly doing something wrong.

tutorial site http://www.pixelmill.com/support/support_article.aspx?ArticleID=kb101619

I've included a snippet of my code and the conversion I attempted, could someone please convert the code for me, you can add comments if you like.

cheers

<script type="text/javascript">AC_FL_RunContent = 0;</script>
<script src="../local/scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script type="text/javascript">if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0',
			'width', '739',
			'height', '252',
			'src', '../local/flash/services/services_banner',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'services_banner',
			'bgcolor', '#ffffff',
			'name', 'services_banner',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', '../local/flash/services/services_banner',
			'salign', ''
			); //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=7,0,0,0" width="739" height="252" id="services_banner" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="false" />
	<param name="movie" value="../local/flash/services/services_banner" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" />	<embed src="../local/flash/services/services_banner" quality="high" bgcolor="#ffffff" width="739" height="252" name="services_banner" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>
</noscript>
 
 
 
<!--- my conversion effort --->
 
<script type="text/javascript" src="/local/scripts/swfobject.js"></script>
 
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="739" height="252" id="services_banner" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="false" />
	<param name="movie" value="../local/flash/services/services_banner" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#000000" />
    <embed src="../local/flash/services/services_banner" quality="high" bgcolor="#ffffff" width="739" height="252" name="services_banner" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>
 
 
<!--- no flash? dammit! publish the following div ---> 
<div id="flashcontent">
Flash has encountered an error, you may not have flash installed.
</div>
 
 
<script type="text/javascript">
  var so = new SWFObject("services_banner.swf", "services_banner", "0", "0", "6", "#000000");
  so.write("flashcontent");
</script> 
 
 
<!--- swfobject flash --->

Open in new window

LVL 2
CurtinPropAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

crooksy88Commented:
The attached file should embed and display your swf file. Download it and change the .txt suffix to .html.
Place this next to your swf file and also place a copy of the swfobject.js file next to it as well.

When you have all three files sat next to each other, test your index.html file.

If this works and you want to arrange your files into directories then simply change the URL's for the swf and swfobject.js file accordingly.
index.txt
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.