Inserting flash into html emails?

Associate
Joined
1 Dec 2002
Posts
1,147
Hi,

Somewhat related to my previous post, but what html code is required to insert a flash file (.swf) hosted on a server into a html email?

Cheers.

John
 
Of course, the embed tag is deprecated. If you want to use standards-compliant code, use the object element. Don't expect it to work in IE successfully though. ;)

Edit: missed the part about it being inserted into an email, in which case, standards-compliancy shouldn't really matter. >_>
 
Last edited:
open the fla,
select file > publish settings,
goto formats tab and tick html if it's not already ticked,
goto html tab, the default settings may do you but here's where you can set the basic parameters that the object will use.
save, (saves your publish settings into the fla),
click publish and rip out the required code from the html it makes.

default:
Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="752" height="180" id="asd" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="asd.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#004c00" /><embed src="asd.swf" quality="high" bgcolor="#004c00" width="752" height="180" name="asd" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
now i'm going to show how out of touch i am.. i can't remember the exact params you need to change to include the full url lol i think it's just these two:
Code:
<param name="movie" value="asd.swf" 
<embed src="asd.swf"
although it could be just be
Code:
<embed src="asd.swf"
:o

edit: ah, as the swf file name has changed, all references to asd will have to be changed to reflect the new name. simple method would be to rename the fla to bonus-baggers_header2.fla and when you publish it'll all be done for you :cool:
 
Last edited:
Back
Top Bottom