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.
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

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

Re: Flash doesn't play

I updated to 2.3.1.3.

I made a few minor tweaks to layout.master to make it more like the standard template for 2.3.1.3.

Still nothing.

(At this rate, I'm going to have to buy you a few more beers...)

8/9/2009 7:36:32 AM
Gravatar
Total Posts 18439

Re: Flash doesn't play

Hi Gerry,

I just tried on my local machine  and it seems to work for me.

in layout.master head:

<portal:ScriptLoader id="ScriptLoader1" runat="server" IncludeSwfObject="true" />

this will include the swfobject script loaded from google.

Then I copied the examples expressInstall.swf and test.swf into /Data/Sites/1/flash/

Then I pasted this in to an html module using source view in the editor. I saved it without switching back to wysiwyg view.

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

It seems to work fine for me.

I'm going to add a module setting to the html module to make it include the swfobject script so you don't have to enable it globally on scriptloader unless you plan to use flash all over the place. This way it will include it automatically on any pages containing an html module configured to require it.

Hope it helps,

Joe

8/9/2009 11:28:46 AM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Re: Flash doesn't play

Joe,

I am probably one of the few people around who knows even less than you about Flash. I think I have identified the cause of the problem - the main movie contents are held in a .flv file. The .swf appears to be some sort of wrapper file which arranges everything. The examples that you (and I) worked with that functioned had the video embedded (for lack of a better word) in the .swf. I think the problem might be related to directory paths for pointing to the .flv, etc., but I have not yet been able to resolve the problem.

If you have any final suggestions (other than praying), I would appreciate them. It seems that the issue is strictly on my end and has nothing to do with mojoPortal.

Thanks for all of the help!

8/9/2009 11:44:50 AM
Gravatar
Total Posts 18439

Re: Flash doesn't play

Probably the .swf file expects you to pass a param with the path to the .flv file 

8/9/2009 11:52:22 AM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Re: Flash doesn't play

Joe,

I have the Adobe flash s/w on my machine and fired it up for the first time today. There is a parameters section for entering the information related to the .flv file and the proper information was entered. (Keep in mind that on the previous version of the site, that the html page, the .swf, and .flv were all in the same directory, so everything worked just fine.) I tried putting in the full path, but that didn't help. Not sure what to do at this point - need to find someone who understands flash and using it within the context of a CMS.

8/9/2009 11:54:10 AM
Gravatar
Total Posts 18439

Re: Flash doesn't play

You might try just putting the files in the root and then change the path so it just has the file name. 

8/11/2009 12:39:32 PM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Re: Flash doesn't play

Tried that also - no luck.

So I cheated - I found some software to 'covert' the .flv into a .swf. Now it works. It seems that this is an issue worthy of further research for future releases. Thanks much for all of the help!

8/12/2009 7:01:17 AM
Gravatar
Total Posts 18439

Re: Flash doesn't play

I don't consider this any bug nor think it needs more research on my end.

.swf is what is generally used for a main flash movie. I think people who are good with Flash have no problem with this and can easily pass the path of a .flv file to the main .swf file as a parameter but often the path is hard coded inside the main .swf. There are players that can play .flv files but typically I think people just launch them from inside the .swf which orchestrates things. Often there may be multiple clips managed by the main .swf, internally the .swf typically uses a VideoPlayer called FLVPlayback. They drag one onto the canvas of the .swf file from a toolbar.

Best,

Joe

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