Flash files again.

Flash files again.

by derek ward -
Number of replies: 3
I am trying to run a flash (swf) file in a book. After looking at an earlier thread, I have tried using the code below, but all I get is a white box. Being a novice at this, I cant see what is missing. This is the whole content of the html.


<img width="20" height="1" src="view.php_files/spacer.htm" />
<embed width="450" vspace="5" height="450" type="application/x-shockwave-flash" src="http:/zoo72/moodle/file.php/3/plastics/plastics_invented.swf" />

Any help would be gratefully accepted
Average of ratings: -
In reply to derek ward

Re: Flash files again.

by J. Chan -

Dear Derek

Try not to write in HTML. Use the <> button on the second right in the second row of your editor. Write in TEXT. Pls make sure you write http://... (double/)

Paste the following code:

<object id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" height="450" width="450" align="right" border="0" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000"><param value="http://zoo72/moodle/file.php/3/plastics/plastics_invented.swf" name="movie" /><param value="High" name="quality" /></object>

It should automatically be extended to the following script:

<object id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" height="450" width="450" align="right" border="0" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000"><param name="_cx" value="18521" /><param name="_cy" value="13732" /><param name="FlashVars" /><param name="Movie" value="http://zoo72/moodle/file.php/3/plastics/plastics_invented.swf" /><param name="Src" value="http://zoo72/moodle/file.php/3/plastics/plastics_invented.swf" /><param name="WMode" value="Window" /><param name="Play" value="-1" /><param name="Loop" value="-1" /><param name="Quality" value="High" /><param name="SAlign" /><param name="Menu" value="-1" /><param name="Base" /><param name="AllowScriptAccess" /><param name="Scale" value="ShowAll" /><param name="DeviceFont" value="0" /><param name="EmbedMovie" value="0" /><param name="BGColor" /><param name="SWRemote" /><param name="MovieData" /><param name="SeamlessTabbing" value="1" /><param name="Profile" value="0" /><param name="ProfileAddress" /><param name="ProfilePort" value="0" /></object>

I hope it works. However, please make sure the path of the file is correctly written as it may be "....file.php?....." instead of "...file.php/..."

On the other hand, I try putting my own files in the movies folder of the mod/flash/movies, and it works, now I try to put it in a domain:

<object id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" height="350" width="500" align="right" border="0" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000"><param value="http://educity.hk/sboard.swf" name="movie" /><param value="High" name="quality" /></object>

Hope this will help.

Cheers

James

In reply to J. Chan

Re: Flash files again.

by Eric Hagley -
If you still didn't get it to work I used the following script and it did (though I was using a different link to a flash file). Remember that you do have to use the <> (toggle html source) button on the html editor. Click on that and then paste the following in. Save it and you should be right. Just wondering though, is that the link you really want? When I pasted it into a browser it took me to a site - not a particular flash activity/movie. You might want to check that too.

<object height="350" width="425"><param name="movie" value="http://zoo72/moodle/file.php/3/plastics/plastics_invented.swf" /><embed src="http://zoo72/moodle/file.php/3/plastics/plastics_invented.swf" type="application/x-shockwave-flash" height="350" width="425" /></object>

All the best,
Eric Hagley
In reply to Eric Hagley

Re: Flash files again.

by Brian Roy -
If your flash (swf) file in a book works, can you still store output from the swf into the database? Such as the Flash mod does?

Thanks