| | |
Embedded Flash Video
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: May 2009
Posts: 114
Reputation:
Solved Threads: 11
I've got a splash screen that plays a flash video upon form load. My problem is, the method to load the flash video is like this:
However, if this app is installed on somebody elses computer they would either have to move the .swf file into that directory or they would have to go into the source code and change the directory to wherever they want. I've added the flash video into the project resources but the 'LoadMovie' parameters won't accept 'global:
roperties.App.Resources.file'. Any help would be appreciated. Thanks.
c# Syntax (Toggle Plain Text)
this.axShockwaveFlash1.LoadMovie(0, @"C:\blahblah\blah.swf");
However, if this app is installed on somebody elses computer they would either have to move the .swf file into that directory or they would have to go into the source code and change the directory to wherever they want. I've added the flash video into the project resources but the 'LoadMovie' parameters won't accept 'global:
roperties.App.Resources.file'. Any help would be appreciated. Thanks. Ok, the simple solution is to have your program save the embedded resource swf movie to disk if it doesn't' already exist. then pass the path to your load movie function.
more importantly, instead of using the loadMovie function, the appropriate way to load a flash movie is using the
now using that there is a more complicated way to go about it, if you set embedmove to true, when the program is ran, it will embed the movie into the control itself. so the movie is playing from memory not disk. unfortunately, this happens at run time and not compile time. although I heard that some people have found ways to make it work.
for now, stick with answer 1.
more importantly, instead of using the loadMovie function, the appropriate way to load a flash movie is using the
axShockwaveFlash.Movie property.now using that there is a more complicated way to go about it, if you set embedmove to true, when the program is ran, it will embed the movie into the control itself. so the movie is playing from memory not disk. unfortunately, this happens at run time and not compile time. although I heard that some people have found ways to make it work.
for now, stick with answer 1.
![]() |
Similar Threads
- flash video player tutorial (Graphics and Multimedia)
- embedded a flash swfl into notepad how to locate a new page(url) (HTML and CSS)
- Flash Video Platform Expert - DC (Web Development Job Offers)
- Designing a Flash Video Player (Graphics and Multimedia)
- Flash 8 - Video encoder (Graphics and Multimedia)
Other Threads in the C# Forum
- Previous Thread: Get product version from windows installer to custom installer
- Next Thread: Including DLLs for use in other programs
| Thread Tools | Search this Thread |
.net access ado.net algorithm alignment array barchart bitmap box broadcast buttons c# chat check checkbox client color combobox control conversion csharp custom customactiondata database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms function gdi+ hospitalmanagementsystems httpwebrequest image index input install java label list listbox listener mandelbrot math mouseclick mysql networking operator path photoshop picturebox pixelinversion post prime programming radians regex remote remoting richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml





