Page 1 of 1

Stop a movie after it starts playing from resource

Posted: Sun Nov 26, 2006 4:29 am
by max1
FlashPlayerControl1.PutMovieFromStream(this.GetType().Assembly.GetManifestResourceStream("Sample2_SWF_FLV_Embedding.Embedded_Movies.movie.swf"));

When I place the above code in a button in C# and I run my application the button will start my movie.swf from resource. How do I stop the movie without closing the application. In other words how do I stop the flashplayercontrol and return to the main form. Thank you!

Posted: Sun Nov 26, 2006 11:24 am
by Softanics
Use FlashMethod_Stop() .

Posted: Sun Nov 26, 2006 7:17 pm
by max1
FlashPlayerControl1.FlashMethod_Stop();

The above code when placed in a button does not stop the movie. I am not sure what I am doing wrong. Thank you!

Posted: Mon Nov 27, 2006 10:18 am
by Softanics
Could you run your movie into Internet Explorer and try to stop it using right-click context menu?

Still not working for me. Please help.

Posted: Tue Dec 19, 2006 4:12 pm
by max1
FlashPlayerControl1.PutMovieFromStream(this.GetType().Assembly.GetManifestResourceStream("Sample2_SWF_FLV_Embedding.Embedded_Movies.movie.swf"));

When I place the above code in a button in C# and I run my application the button will start my movie.swf from resource. How do I stop the movie without closing the application. In other words how do I stop the flashplayercontrol and return to the main form. I posted this question earlier and tried what you suggested with no success. Also, If I have 2 movies running at the same time, how do I stop one without stopping the other. FlashPlayerControl1.FlashMethod_Stop(movie2); This does not work. In fact it creates an error. I want to be able to call the movie I want to stop in the statement and not stop other movies that are running. Thank you!

Posted: Tue Dec 19, 2006 4:27 pm
by Softanics
Could you run your movie into Internet Explorer and try to stop it using right-click context menu? It's important!