Quick links:
F-IN-BOX .NET Edition Home Page
| Buy license
| Welcome to our forum!
| Ask your question
| Help on the Web
F-IN-BOX .NET Help >> How to Loading a movie from a resource
It is known fact that the Flash Player ActiveX is able to load movies at certain URLs only. You have to save the movie to a temporary location from your application's resource before you can load it. You'll have to generate a corresponding link that you can pass to the Flash Player ActiveX and then delete the movie after. You'll have to admit that this is extremely inconvenient. Apart from being inconvenient there is a chance you'll fail when you try to create a temporary file if you don't have the appropriate permission or don't have access to a temporary folder. It is definitely not an appropriate approach when security is an issue since your movie can be easily intercepted. There is a solution! F-IN-BOX uses a different approach of swflash.ocx/flash.ocx code loading. It is able to load your movies directly to the Macromedia Flash Player ActiveX thereby avoiding the temporary file step. The advantages are pretty obvious. And you can also protect your movies from unauthorized access using your favourite software protection application. Using the component you can load any flash movie from memory directly. Just use the LoadMovieFromStream and PutMovieFromStream methods. No temporary files! Load any movie on-the-fly from any supported source. For example, you can put one or more flash movies in the resource section of your application and then load it from the exe! That's the portability and power of F-IN-BOX! Here's an example of how to load a flash movie from a resource: [ C# ]
private f_in_box__lib.f_in_box__control f_in_box__control1; ... f_in_box__control1.PutMovieFromStream( this.GetType().Assembly. GetManifestResourceStream("Sample1_SWF_And_FLV_Player.Embedded_Movies.movie.swf")); [ VB.Net ]
Friend WithEvents f_in_box__control1 As f_in_box__lib.f_in_box__control ... f_in_box__control1.PutMovieFromStream( _ Me.GetType().Assembly. _ GetManifestResourceStream("Sample1_SWF_And_FLV_Player.movie.swf")) Copyright © Softanics. All rights reserved. F-IN-BOX is a trademark of Softanics. Macromedia and Shockwave Flash are trademarks of Adobe
Quick links:
F-IN-BOX .NET Edition Home Page
| Buy license
| Welcome to our forum!
| Ask your question
| Help on the Web
|