![]() |
![]() |
||||||
|
|||||||
| Tags: dll, loading, resource, swf, within |
![]() |
|
|||
|
I have an application that uses an HTML container to load a webpage with a
flash SWF embedded into it. I want to bundle the webpage and all of its resources (including the SWF) into a resource DLL, which makes it accessible from the HTML container using the res:// protocol. E.g. c:\MyResources.dll contains MyPage.htm, MyScript.js and MyFlash.SWF. In Internet Explorer I can use the URL res://C:\MyResources.dll/MyPage.htm to load my page. However when I try to load my SWF file in the page, it can't find MyFlash.SWF. I would expect to be able to use the normal method to load the movie as the SWF exists in the same effective namespace as the htm file - attached code example. MyScript.js is loaded from the resource just fine. I also found that I couldn't reference the SWF explicitly from the resource in a webpage that exists outside of the resource by using res://C:\MyResources.dll/MyFlash.SWF in the object/embed tags. However if I type the same string into the address bar, IE will prompt me to download the SWF file, proving that its there and accessible at least. Am I doing this wrong or does the flash plugin simply not support loading content from within resource DLLs? <!-- this js file runs fine --> <script src="MyScript.js" language="javascript"></script> <!-- but the flash movie won't load --> <object width="550" height="400"> <param name="movie" value="MyFlash.SWF"> <embed src="MyFlash.SWF" width="550" height="400"> </embed> </object> |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise