Simcoder Posted June 20, 2006 Posted June 20, 2006 Does anyone know how to properly reference an embedded swf file and play it? Currently, I copy the embedded swf file to the hard drive and then access it using the following code FlashMovie.Movie = Application.StartupPath & "\MyFlash.swf" FlashMovie.Play() While this method does work, I'd rather skip the step of copying the file to the harddrive and instead just use it straight from assembly. The problem is that FlashMovie.Movie part of the code requires a path (string) to the location of the file. Any suggestions for accomplishing this or should I just stick with what I have? Thanks in advance. -=Simcoder=- Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
Leaders snarfblam Posted June 20, 2006 Leaders Posted June 20, 2006 Are there any overloads (not sure what type of library we are looking at) or other similar methods like .FromBinary or .FromMemory or anything like that? Something that accepts an array of bytes or a stream? If the only option is a file then you are stuck with a file, which is most simply handled by copying the embedded resources to a file. Quote [sIGPIC]e[/sIGPIC]
Simcoder Posted June 21, 2006 Author Posted June 21, 2006 Are there any overloads (not sure what type of library we are looking at) or other similar methods like .FromBinary or .FromMemory or anything like that? Something that accepts an array of bytes or a stream? If the only option is a file then you are stuck with a file' date=' which is most simply handled by copying the embedded resources to a file.[/quote'] I didn't notice any methods that could read from a stream or from memory. I figured I'd just have to stick with what I have. I guess I'll just have to delete the swf file after I'm done using it which is not a big deal. Anyways, thanks for the reply Marble. =) -=Simcoder=- Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
Diesel Posted June 22, 2006 Posted June 22, 2006 You want to stream the movie. Literally. To stream flash movies, you have to convert the swf to a flv format. And besides that I have no idea...but check out this application... http://www.mxer.com/sandbox/csharpflashvideo/default.asp this component also performs that functionality http://www.f-in-box.com/dotnet/ Quote
Simcoder Posted June 29, 2006 Author Posted June 29, 2006 Thank you Diesel, that was exactly what I was looking for. -=Simcoder=- Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.