Flash Movie

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/28/2011 7:29:32 AM
Gravatar
Total Posts 167

Flash Movie

I am having an issue with embedding a flash movie into my MP site.

I have created a flash movie from a video using adobe Flash CS3. On publishing I have several files

1) FlashMovie.swf

2) AC_RunActiveContent.js

3) FlashMovie.html

Looking at the HTML the movie works so I want to replicate this in my site. The source for FlashMovie.html looks like this

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>GreshamHill3</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="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=9,0,0,0',
			'width', '550',
			'height', '400',
			'src', 'FlashMovie',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'FlashMovie',
			'bgcolor', '#ffffff',
			'name', 'FlashMovie',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'FlashMovie',
			'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=9,0,0,0" width="550" height="400" id="FlashMovie" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="false" />
	<param name="movie" value="FlashMovie.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed src="FlashMovie.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="FlashMovie" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>
</noscript>
</body>
</html>

To get this to work in mojoprotal I copied AC_RunActiveContent.js and placed that in the skin folder.

Added to the header to read this file

<portal:SkinFolderScript ID="arc1" runat="server" ScriptFileName="AC_RunActiveContent.js" />
    <script type="text/javascript" src="AC_RunActiveContent.js"></script>

I then separated the code from the HTML file, placing the bit in the Script tag in the layout.master under the script for the administration menu ( changing Lanuage="javascript" to type="text/javascript")

I then placed the bit in the noscript area into the page, adding the directory location for the .SWF file. however all I get is a blank white box.

Has anyone any suggestions in how I can resolve this to play the video.

6/29/2011 5:05:59 AM
Gravatar
Total Posts 167

Re: Flash Movie

When placing a flash movie that has been converted from a video. Don't forget to also copy across the .flv file as well.

Otherwise you may come across as really stupid, Doh!

You must sign in to post in the forums. This thread is closed to new posts.