I've embedded a flash file into an assembly:
[assembly: WebResourceAttr ibute("Namespac e.main.swf", "applicatio n/x-
shockwave-flash")]
But when I try to reference it on a web page:
<object codebase="http://download.macrom edia.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-
yIbBHXWbUVMFGQV vrZPQF0kP_mR3y4 x7BaHrIsA2V8j5M oYYcTy0&t=6 330725220393750 00">
</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? 3 2990
There's more to it than that. You need to put an attribute into your
AssemblyInfo file, example:
[assembly: WebResource(web Resource, contentType, performSubstitu tion)]
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: WebResourceAttr ibute("Namespac e.main.swf", "applicatio n/x-
shockwave-flash")]
But when I try to reference it on a web page:
<object codebase="http://download.macrom edia.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-
yIbBHXWbUVMFGQV vrZPQF0kP_mR3y4 x7BaHrIsA2V8j5M oYYcTy0&t=63307 2522039375000">
</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?
On Feb 17, 7:19 am, "fnus...@gmail. com" <fnus...@gmail. comwrote:
I've embedded a flash file into an assembly:
[assembly: WebResourceAttr ibute("Namespac e.main.swf", "applicatio n/x-
shockwave-flash")]
But when I try to reference it on a web page:
<object codebase="http://download.macrom edia.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-
yIbBHXWbUVMFGQV vrZPQF0kP_mR3y4 x7BaHrIsA2V8j5M oYYcTy0&t=6 330725220393750 *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:WebRes ource 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
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 PerformSubstitu tion = 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: WebResourceAttr ibute("Namespac e.main.swf", "applicatio n/x-
shockwave-flash")]
But when I try to reference it on a web page:
<object codebase="http://download.macrom edia.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-
yIbBHXWbUVMFGQV vrZPQF0kP_mR3y4 x7BaHrIsA2V8j5M oYYcTy0&t=63307 25220393750Â*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:WebRes ource 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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 save the PPT as HTML, grab the
images files and upload them to my app. Then use Javascript to do the
slideshow.
However, it would be a 100 times easier for the users to simply upload
a PPT or better PPS file. I can manage the upload of the file no
|
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.
:)
|
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
|
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"
height="100" width="100" classid="clsid:D27CDB6E-
AE6D-11cf-96B8-444553540000">
|
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"
value="http://www.youtube.com/v/zAfQwDizpRo&rel=1"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/zAfQwDizpRo&rel=1"
type="application/x-shockwave-flash" wmode="transparent" width="425"
| |
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 advance,
JJ
|
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 with the whole "<object>" embedding as I use it to put alot of games (namely .swf) on my site. Would that be used here also?
Thanks
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |