Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a C# application with a flash advertisement. But the swf file should be in the application folder in run time.
How can I "embed" the swf file in the exe so that it is not visible to the user. For dll files I think I can find an application. But can we bundle dll and swf with exe from Visual studio 2008 itself?+
Thanks
Posted

1 solution

Add it as a resource that's extracted when the program runs (it's a resource property).
 
Share this answer
 
Comments
CelestialCoder 19-Mar-12 8:32am    
OK. I got the idea.
But to implement ..can I get the procedure? How to add swf as a resource file and invoke it when form loads?
Thanks
#realJSOP 19-Mar-12 9:22am    
You add it in the project (in the IDE), and the property setting automatically extracts it when the app is executed.
CelestialCoder 20-Mar-12 7:25am    
I have added the file (flash movie) as a resource. There is no option to select a swf file, only images etc. But it is getting added to project as a binary file(I think). That part seems ok.
Now I need to get it back to be given to the movie property of the shockwave player. What method can do it? How we point it as a swf file?
I have found this also.
http://support.microsoft.com/kb/319292
But how to convert it for swf file?
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900