(C# ) Reloading flash files inside a windows form
Posted
by user257412
on Stack Overflow
See other posts from Stack Overflow
or by user257412
Published on 2010-04-17T09:38:45Z
Indexed on
2010/04/17
9:43 UTC
Read the original article
Hit count: 705
Using visual C# express 2008. I have a app which shows load a flash movie in form, using this code
axShockwaveFlash1 = new AxShockwaveFlashObjects.AxShockwaveFlash()
axShockwaveFlash1.LoadMovie(0, Form1.currentGame);
The problem is that when the Loadmovie method is called to load another flash file, without closing the form , the new flash is 'messed' up. to be more specific , it seems that the background and some controls of the previous flash still remain, 'spoiling' the new flash that is loaded. why?
Using the following methods before loading the second flash video makes no difference
axShockwaveFlash1.Refresh();
axShockwaveFlash1.Stop();
Solution ?
© Stack Overflow or respective owner