These are the steps I've tried:
1. Adding the 'myFlashFile.swf" to the web control project, and setting its
property as an embedded resource;
2. Adding the following line to the AssemblyInfo.cs file:
[assembly: System.Web.UI.WebResource("MyNamespace.myFlashFile .swf",
"application/x-shockwave-flash")]
3. Accessing the WebResource URL by way of this line in the RenderContents
method:
string flashUrl = Page.ClientScript.GetWebResourceUrl(this.GetType() ,
"MyNamespace.myFlashFile.swf").ToString();
A URL is produced, but one that is clearly not understood by the browser,
even though I write the url in the usual Flash Object Code.
Is it therefore possible to do this?
"JJ" <ab*@xyz.comwrote in message
news:uc**************@TK2MSFTNGP02.phx.gbl...
How do I embed a swf (flash) file as a resource in my custom web control?
And, if thats possible, how would I access it when I am (presumably)
overriding the RenderContents method?
Thanks in advance,
JJ