Stop a movie after it starts playing from resource

.NET Edition of the F-IN-BOX
max1
Posts: 12
Joined: Tue Nov 21, 2006 7:07 am

Stop a movie after it starts playing from resource

Postby max1 » Sun Nov 26, 2006 4:29 am

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!

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Sun Nov 26, 2006 11:24 am

Use FlashMethod_Stop() .
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

max1
Posts: 12
Joined: Tue Nov 21, 2006 7:07 am

Postby max1 » Sun Nov 26, 2006 7:17 pm

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!

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Mon Nov 27, 2006 10:18 am

Could you run your movie into Internet Explorer and try to stop it using right-click context menu?
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

max1
Posts: 12
Joined: Tue Nov 21, 2006 7:07 am

Still not working for me. Please help.

Postby max1 » Tue Dec 19, 2006 4:12 pm

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!

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Tue Dec 19, 2006 4:27 pm

Could you run your movie into Internet Explorer and try to stop it using right-click context menu? It's important!
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 15 guests

cron