473,327 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

embedding a flash file

I've embedded a flash file into an assembly:

[assembly: WebResourceAttribute("Namespace.main.swf", "application/x-
shockwave-flash")]

But when I try to reference it on a web page:

<object codebase="http://download.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab"
height="100" width="100" classid="clsid:D27CDB6E-
AE6D-11cf-96B8-444553540000">
<param name="src" value="/WebResource.axd?d=bYC1eHVfsX9X-
yIbBHXWbUVMFGQVvrZPQF0kP_mR3y4x7BaHrIsA2V8j5MoYYcT y0&amp;t=633072522039375000">
</object>

it never loads. The page just times out.

When I try to load the resource directly in the browser it shows that
the content-type is not set and that the content-length is 0.

I know the webresource string is correct and pointing to an existing
resource because it works for an image file.

Is this a known issue or am I doing something wrong?

Feb 17 '07 #1
3 2973
There's more to it than that. You need to put an attribute into your
AssemblyInfo file, example:

[assembly: WebResource(webResource, contentType, performSubstitution)]

There is more information in the documentation for WebResource.axd, as well
as a couple of good articles by third parties if you care to search.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"fn*****@gmail.com" wrote:
I've embedded a flash file into an assembly:

[assembly: WebResourceAttribute("Namespace.main.swf", "application/x-
shockwave-flash")]

But when I try to reference it on a web page:

<object codebase="http://download.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab"
height="100" width="100" classid="clsid:D27CDB6E-
AE6D-11cf-96B8-444553540000">
<param name="src" value="/WebResource.axd?d=bYC1eHVfsX9X-
yIbBHXWbUVMFGQVvrZPQF0kP_mR3y4x7BaHrIsA2V8j5MoYYcT y0&t=633072522039375000">
</object>

it never loads. The page just times out.

When I try to load the resource directly in the browser it shows that
the content-type is not set and that the content-length is 0.

I know the webresource string is correct and pointing to an existing
resource because it works for an image file.

Is this a known issue or am I doing something wrong?

Feb 17 '07 #2
On Feb 17, 7:19 am, "fnus...@gmail.com" <fnus...@gmail.comwrote:
I've embedded a flash file into an assembly:

[assembly: WebResourceAttribute("Namespace.main.swf", "application/x-
shockwave-flash")]

But when I try to reference it on a web page:

<object codebase="http://download.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab"
height="100" width="100" classid="clsid:D27CDB6E-
AE6D-11cf-96B8-444553540000">
<param name="src" value="/WebResource.axd?d=bYC1eHVfsX9X-
yIbBHXWbUVMFGQVvrZPQF0kP_mR3y4x7BaHrIsA2V8j5MoYYcT y0&amp;t=6330725220393750*00">
</object>

it never loads. The page just times out.
There's a couple of steps you need to take to make sure you're able to
spit out resource files from compiled resources...
One of them is the assembly:WebResource attribute...
Another is NAMESPACE!
This would be the namespace of your application plus the FOLDERS your
files resides within...
The last point CANNOT be stressed enough!
I'll be willing to bet a couple of ORGANS that this is your
problem...!!

A good example I know about is one of the sample extensions controls
in Gaia (e.g. http://ajaxwidgets.com/AllControlsSa...omControl.aspx
)
If you download Gaia Ajax Widgets and check out any of the "extension
controls" you'll be able to see a working sample of spitting out a
JavaScript file to the browser from a compiled resource...

..t

--
http://ajaxwidgets.com
ASP.NET 2.0 Ajax Widgets

Feb 17 '07 #3
Hello!

I Have the same problem!
In my project i work with a lot of resources, SWF is the only that DON't WORK.

I try to use PerformSubstitution = true, and don't work too...
There is SOME PROBLEM HERE.

And please, anwser if you know, if you have experienced that....
SWF types are not working,,,
CSS, JS, .... All work correctly!!

I think that when the SWF is embedded in the DLL, one problem occours...

Thank You for your time, Please help me!
"Thomas Hansen" wrote:
On Feb 17, 7:19 am, "fnus...@gmail.com" <fnus...@gmail.comwrote:
I've embedded a flash file into an assembly:

[assembly: WebResourceAttribute("Namespace.main.swf", "application/x-
shockwave-flash")]

But when I try to reference it on a web page:

<object codebase="http://download.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab"
height="100" width="100" classid="clsid:D27CDB6E-
AE6D-11cf-96B8-444553540000">
<param name="src" value="/WebResource.axd?d=bYC1eHVfsX9X-
yIbBHXWbUVMFGQVvrZPQF0kP_mR3y4x7BaHrIsA2V8j5MoYYcT y0&t=6330725220393750Â*00">
</object>

it never loads. The page just times out.

There's a couple of steps you need to take to make sure you're able to
spit out resource files from compiled resources...
One of them is the assembly:WebResource attribute...
Another is NAMESPACE!
This would be the namespace of your application plus the FOLDERS your
files resides within...
The last point CANNOT be stressed enough!
I'll be willing to bet a couple of ORGANS that this is your
problem...!!

A good example I know about is one of the sample extensions controls
in Gaia (e.g. http://ajaxwidgets.com/AllControlsSa...omControl.aspx
)
If you download Gaia Ajax Widgets and check out any of the "extension
controls" you'll be able to see a working sample of spitting out a
JavaScript file to the browser from a compiled resource...

..t

--
http://ajaxwidgets.com
ASP.NET 2.0 Ajax Widgets

Apr 25 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: b_naick | last post by:
Is there a way to embed a powerpoint slideshow in a webpage? I have an application which requires a slideshow in one of the frames of the application. One option would be to get the users to...
3
by: Buggyman | last post by:
Hi, I have been given a swf file to embed as a banner on our site... Does anyone have any tips on how I do this?? -- *Many* thanks. :)
3
by: Ollie Riches | last post by:
How do I embed a *.flv file (Flash Video) into an aspx page similar to embedding windows media player active x control? Cheers Ollie Riches
0
by: fnustle | last post by:
I've embedded a flash file into an assembly: But when I try to reference it on a web page: <object codebase="http://download.macromedia.com/pub/shockwave/ cabs/flash/swflash.cab"...
5
by: Barrie Wilson | last post by:
anyone have any idea why I might be having an impossible time embedding a YouTube <objectin an .ASPX file: <object width="425" height="355"> <param name="movie"...
3
by: JJ | last post by:
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...
1
by: Chris72205 | last post by:
How would I go about embeding a flash application into an HTML page? Note that I say flash application, it's not just the average .swf file. How do I embed that or is it possible? I am familiar...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.