Last post Nov 06, 2009 05:35 PM by KentWA
Nov 01, 2009 05:38 PM|KentWA|LINK
I have adding more functionality to a server control. The first version used a single SWF and worked as designed. When I added new functionality with a second SWF, it would never find the second SWF. I have registered each in the AssemblyInfo.vb file using:
<Assembly: System.Web.UI.WebResource("SandK.Player.Slider.swf", "application/x-shockwave-flash")>
<Assembly: System.Web.UI.WebResource("SandK.Player.Player.swf", "application/x-shockwave-flash")>
Each SWF has a VB file that controls its functionality (Player.vb and Slider.vb) and the call to get the Resource is:
I have played around with changing things for 5 days off and on now with no luck. Any suggestions why I would be unable to load this resource?
Nov 03, 2009 12:49 AM|Allen Chen – MSFT|LINK
Is the second swf's build action set to "Embeded Resource"? Could you share a demo that can reproduce this problem for me to test? You can upload the project to
http://skydrive.live.com/ and paste download link here.
Nov 06, 2009 05:35 PM|KentWA|LINK
Yep, that was it, I had forgotten all about setting the build action! Duh! Thanks.