943,955 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Marked Solved
  • Views: 1110
  • C# RSS
Sep 20th, 2009
0

Embedded Flash Video

Expand Post »
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:
c# Syntax (Toggle Plain Text)
  1. 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.
Similar Threads
Reputation Points: 55
Solved Threads: 18
Junior Poster
papanyquiL is offline Offline
168 posts
since May 2009
Sep 21st, 2009
1

Re: Embedded Flash Video

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 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.
Reputation Points: 442
Solved Threads: 89
Master Poster
Diamonddrake is offline Offline
721 posts
since Mar 2008
Sep 21st, 2009
0

Re: Embedded Flash Video

I'm actually not 'deploying' my application in an install file, so I can't install it to the directory I want. However I've been able to solve this file by using the GetCurrentDirectory method and store the file there. Thanks for the help
Reputation Points: 55
Solved Threads: 18
Junior Poster
papanyquiL is offline Offline
168 posts
since May 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Get product version from windows installer to custom installer
Next Thread in C# Forum Timeline: Including DLLs for use in other programs





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC