Click here to Skip to main content
13,558,655 members
Rate this:
Please Sign up or sign in to vote.
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?+
Posted 19-Mar-12 1:52am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Add it as a resource that's extracted when the program runs (it's a resource property).
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?
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.
But how to convert it for swf file?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01-2016 | 2.8.180515.1 | Last Updated 19 Mar 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100