Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Embedded C# 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 at 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 at 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
0 CPallini 385
1 BillWoodruff 344
2 George Jonsson 295
3 Sergey Alexandrovich Kryukov 293
4 OriginalGriff 222
0 OriginalGriff 5,095
1 CPallini 4,285
2 Sergey Alexandrovich Kryukov 3,767
3 George Jonsson 2,941
4 Gihan Liyanage 2,386


Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 19 Mar 2012
Copyright © CodeProject, 1999-2014
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