Click here to Skip to main content
12,398,816 members (57,114 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Embedded C# Windows Flash
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 19-Mar-12 1:52am

1 solution

Rate this: bad
 
good
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).
  Permalink  
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
   
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 19 Mar 2012
Copyright © CodeProject, 1999-2016
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