How is Embedding (.swf) in web pages?
ASP.NET
3
Posts
3
Posters
0
Views
1
Watching
-
What are you wanting to do? Embed the swf in the webpage or download the swf? If you want to embed the swf, just use the standard object/embed tags. http://www.alistapart.com/articles/flashsatay/[^] details a method embedding swf using XHTML Strict. If you are trying to download the swf, then will you need to change the mime-type of the swf to application/octet-stream
<%@ Page Language="VB" %>
Sub Page_Load(sender as Object,e as EventArgs)Dim fileName as String="/test.swf"; Response.ContentType="application/octet-stream" Response.AddHeader("Content-Disposition","filename="&fileName) Response.WriteFile(Server.MapPath(fileName)) End Sub