Reloading and refreshing flash files inside a windows form in wpf application
I have a app which shows load a flash movie in form and using following dll
C:\WINDOWS\system32\Macromed\Flash\Flash10k.ocx
Which inturn generates two dll's AxInterop.ShockwaveFlashObjects.dll and Interop.ShockwaveFlashObjects.dll
I am loading the flash file in our app using below code:
axShockwaveFlash1 = new AxShockwaveFlashObjects.AxShockwaveFlash()
axShockwaveFlash1.LoadMovie(0,flashfile.swf);
The problem is that whenever I make a changes in the flash hosted in our application and try to refresh the to see the changes, the new changes 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();
Even I tried loading "empty" flash video before loading your new video?
axShockwaveFlash1.LoadMovie(0,""); but nothing worked
Its urgent.Could somebody help me out.
