Help - Search - Members - Calendar
Full Version: Flash
Movable Type Community Forum > Additional Resources > Tips and Tricks
morgantj
How can I embed or include flash movies in my blog?

I tried using:
CODE
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="400" HEIGHT="25" id="jm" ALIGN="">
<PARAM NAME=movie VALUE="my.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#336699> <EMBED src="jm.swf" quality=high bgcolor=#336699  WIDTH="400" HEIGHT="25" NAME="my" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>

but it didn't work, it tried to load the movie, but it never loads.
gramcracker
Just use the code that Flash spits out into an HTML document when you publish, and stick it in your template or a blog entry.
morgantj
I tried that, it didn't work unless I did it wrong.
rusto
I'm no Flash expert but I just copy and pasted this from the html GoLive generated for a little Flash avatar I had lying around. The only thing that's not self-explanitory is the "classid" bit right after the object tag is opened. I don't know what that's for. Sorry for the long lines of code:

CODE
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="64" width="64">
   <param name="movie" value="URL or relative path to your flash thingy/nameOfDoodad.swf">
   <param name="quality" value="best">
   <param name="play" value="true">
   <embed height="64" pluginspage="http://www.macromedia.com/go/getflashplayer" src="URL or relative path to your flash thingy/nameOfDoodad.swf" type="application/x-shockwave-flash" width="64" quality="best" play="true">
     </object>


If you get over to my blog (see link in sig below) I tested the code on my archive page. I'll leave it there for a few days so you can see it.
rusto
Looks like you have a

CODE
</EMBED>


in there that the code I pasted does not...

EDIT: oops, YES mine does...sorry. biggrin.gif

EDIT2: GEEZ, just not looking carefully. Mine LACKS the close "embed" tag...maybe if you drop it from yours?
morgantj
ah, yes... I didn't put the full path to my *.swf file. I'll try it again. Thanx. I seen your example. It should work if it worked for you.
morgantj
it worked perfect, once I put in the full path. Thank you for your help.
rusto
Peeked at your site: you've certainly got Flash down well...can you link us to where you incorporated it into MT?
morgantj
Yes, I've just installed MT a couple days ago and got it running, I am still learning it and will improve the features and design of my site as I get familiar with it. My blog is here. You can see I used a Flash header, this will allow me to add some more features to the site that I wouldn't be able to do with mt alone. Maybe a music player, other links, what ever I find usefull. I just started it so there are not that many entries yet, I am still working with getting it all designed first. I want to make all the external links open in new windows, and theres allot of other stuff I have to do to.
rusto
Looks good, keep us posted!
morgantj
I changed the layout and theme. This is my new Ojiisan theme!!!

www.jaymorgan.com
charle97
wow. very subtle and impressive use of flash.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.