?
Solved

converting old flash object code into SWFOBJECT code

Posted on 2008-11-09
1
Medium Priority
?
509 Views
Last Modified: 2012-05-05
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

0
Comment
Question by:CurtinProp
1 Comment
 
LVL 13

Accepted Solution

by:
crooksy88 earned 2000 total points
ID: 22919737
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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question