Flash doesn't play

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
7/22/2009 9:44:30 PM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Flash doesn't play

Not sure why I am having trouble with this. I copied some flash files to Data\Sites\1\flash. The files copied are:

  • filename.fla - 208 kB
  • filename.swf - 34 kB
  • filename_2.flv - 12.7 MB

On an HTML form, I clicked the Add Flash button in the toolbar, browsed to filename.swf, and selected it. However, nothing appears on the page. The flash is embedded on the page - when I right-click the region, I get the flash context menu. The flash files should all be good - I copied them from the previous version of the web-site. I did check file permissions, and they are set properly.

Any suggestions?

7/26/2009 10:07:28 PM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Re: Flash doesn't play

bump!

p.s. The page source looks like this:

<div id="ctl01_mainContent_ctl00_divSingleItem" class="modulecontent">

  <embed menu="true" loop="true" play="true" type="application/x-shockwave-flash" src="/Data/Sites/1/flash/ace_final.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" width="550" height="400"></embed>

</div>
 

p.p.s. Same behavior under both FF and IE.

7/27/2009 5:10:53 AM
Gravatar
Total Posts 18439

Re: Flash doesn't play

Hi Gerry,

I don't really know all that much about Flash but suspect that the toolbar integration in FCKeditor only supports flash movies that auto play. Lots of Flash things require parameters and other things like scripting to get them started. I think most people use swfobject to setup flash. I've been thinking of building a Flash Module around swfobject, in fact started it once a while back. I don't have the tools or skills to make Flash content though. If you could email me a couple of flash movies I could use for testing maybe I will give it a try sometime this week.

Best,

Joe

8/6/2009 9:57:48 PM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Re: Flash doesn't play

Joe,

I have been working with swfobject, but to no avail. Using the tutorial here, I was able to create a html page which loads and plays my flash file. However, when I embedded the code into my mojoPortal HTML page element, it does not work.

Regarding your request for a flash file, there is one included in the swfobject download.

Boring details:

Here is the html page which works. (This file resides in c:\inetpub\wwwroot. the mojoPortal base directory is c:\inetpub\wwwroot\mojocms.):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="mojocms/Data/Sites/1/flash/swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("myFlashContent", "9.0.0");
</script>
</head>
<body>
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400" id="myFlashContent">
<param name="movie" value="mojocms/Data/Sites/1/flash/ace_final.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="mojocms/Data/Sites/1/flash/ace_final.swf" width="550" height="400">
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>
 

Here is the code I inserted into the HTML element which does not work:

<script type="text/javascript" src="Data/Sites/1/flash/swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("myFlashContent", "9.0.0");
</script>
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400" id="myFlashContent">
<param name="movie" value="Data/Sites/1/flash/ace_final.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="Data/Sites/1/flash/ace_final.swf" width="550" height="400">
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>

 

Thanks for you help!

8/7/2009 7:23:44 AM
Gravatar
Total Posts 18439

Re: Flash doesn't play

I would put the main script in the layout.master file not in the html content module. Also you need a / before Data so the path as you entered it is not resolving correctly.

If your site is running in a sub folder named mojocms the the path needs to start with /mojocms/Data

Actually in the latest mojoPortal, if you have the <ScriptLoader tag in your layout.master you can set IncludeSwfObject="true" on it and it will include the swfobject script and load it from the google cdn like other scripts.

Hope it helps,

Joe

 

8/7/2009 11:07:43 AM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Re: Flash doesn't play

Joe,

I tried the / before data and putting both <script> lines in layout.aster (in the <head> section). Still nothing.

Can you provide some more guidance regarding the <scriptloader> tag. Guess I should try that next.

FYI - the page in question can be found here.

8/7/2009 11:12:33 AM
Gravatar
Total Posts 18439

Re: Flash doesn't play

Just the main script goes in the header.

This part:

<script type="text/javascript">
swfobject.registerObject("myFlashContent", "9.0.0");
</script>

should go at the bottom of your html module content after the actual object with the id "myFlashContent"

The scriptloader will include the main swfobect script in the page for you if you set the property I mentioned. 

If your layout.master does not have the ScriptLoader then copy it from another skin.

Hope it helps,

Joe

8/7/2009 1:00:56 PM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Re: Flash doesn't play

Joe,

I added scriptloader to the header. The header now looks like this:

<head id="Head1" runat="server"><title></title>
   <script type="text/javascript" src="/Data/Sites/1/flash/swfobject.js"></script>
   <portal:StyleSheetCombiner id="StyleSheetCombiner" runat="server" />
   <portal:IEStyleIncludes id="IEStyleIncludes1" runat="server" />
   <portal:MetaContent id="MetaContent" runat="server" />
   <portal:Favicon id="Favicon1" runat="server" />
   <portal:ScriptLoader IncludeSwfObject="true" id="ScriptLoader1" runat="server" />
   <meta name="viewport" content="width=670, initial-scale=0.45, minimum-scale=0.45"/>
</head>
 

I moved the script to the bottom of the html module.

Still nothing. No errors being reported. Very frustrating!

p.s. Regarding your earlier comment about a subfolder. From the perspective of the OS, the file is located in c:\inetpub\wwwroot\mojocms\Data\Sites\1\flash\swfobject.js. But, from the perspective of IIS, the file is located at www.ace-event.org/Data/Sites/1/flash/swfobject.js

8/7/2009 1:06:52 PM
Gravatar
Total Posts 18439

Re: Flash doesn't play

When I view the source of your page it does not seem to be including the main swfobject script.

Are you using the latest version of mojoPortal? Older versions did not have the logic to include swfobject script but the latest version it should work.

 

8/7/2009 1:14:09 PM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Re: Flash doesn't play

I am trying to figure out which version I have - my guess would be 2.3.0.4. Should I update to the latest?

8/7/2009 1:31:10 PM
Gravatar
Total Posts 18439

Re: Flash doesn't play

Well I can't guarantee it will immediately solve the flash problem but it will make it easy to get the main swfobject script into the page. There have been lots of improvements since version 2.3.0.4 to 2.3.1.3

Best,

Joe

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