954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Playing an swf file located outside project

Here's the code I use to show an swf file that's located inside my project (in the directory SWF. It works fine. However, SWF files are huge and I would like to keep them in an external directory. I put some in my development server (C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\SWF) to test. Can anyone help me with the syntax to replace SWF\0001.swf with in order to embed these swf files?

Dim filepath = "<embed src=""" & SWF\0001.swf"" width=700 height=400 /></embed>"

Dim vid As Literal = New Literal
vid.Text = FilePath

Dim divVid As System.Web.UI.HtmlControls.HtmlGenericControl = New System.Web.UI.HtmlControls.HtmlGenericControl("DIV")
divVid.Style.Add("position", "absolute")
divVid.Style.Add("left", "20px")
divVid.Style.Add("top", "20px")
divVid.Style.Add("border-style", "none")
divVid.Style.Add("z-index", "-1")
divVid.Controls.Add(vid)
form1.Controls.Add(divVid)
jimib
Newbie Poster
23 posts since May 2009
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: