Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

I've found that there is no default "displayTeaser***.cfm" template for the dmFlash object. So your first step should be to verify that this is indeed the case. If you're missing it, I can suggest you use the following. You do need to go get SWFObject and drop their js file out under the /www/js/swfobject/ folder to use this code right off the bat:

<!--- @@displayname: flash display using swfobject --->
<!--- @@author: Steve Rittler (srittler@countermarch.com)--->
<cfoutput>

<script type="text/javascript" src="/js/swfobject/swfobject.js"></script>
		
<div id="flashcontent">
  #stObj.teaser#
</div>


<script type="text/javascript">
   var so = new SWFObject("files/#stObj.flashMovie#", "#stObj.objectID#", "#stObj.flashWidth#", "#stObj.flashHeight#", "#replace(stObj.flashVersion, ",", ".", "ALL")#", "#stObj.flashBGColor#");

	so.addParam("align", "#stObj.flashAlign#");
	so.addParam("loop", "#stObj.flashLoop#");
	so.addParam("menu", "#stObj.flashMenu#");
	
	<cfif stObj.flashPlay IS "1">
		so.addParam("play", "true");
	<cfelse>
		so.addParam("play", "false");
	</cfif>
	so.addParam("quality", "#stObj.flashQuality#");
	
	<cfloop list="#stObj.flashParams#" delimiters="&" index="nvPair">
		<cfset name = getToken(nvPair, 1, "=") />
		<cfset value= getToken(nvPair, 2, "=") />
		so.addParam("#name#", "#value#");
	</cfloop>

   so.write("flashcontent");
</script>
</cfoutput>

That will give us a display template to use when we add the Flash movie to a container on an HTML page within Farcry.

In the Content tab of the webtop, select Media Library, then Media Library Flash.

Punch in the parameters and poof the SWF is uploaded to the server. Approve the content.

Then jump out of the webtop and "Show Design". Click on the container you want to put the Flash content in.

Select the "Handpicked" rule and find the Flash object. Pick the "flash display using swfobject" display method.

Commit your changes, close the popup and refresh the page. That should do it!

  • No labels