Skip to main content
Participant
October 20, 2010
Question

Reloading and refreshing flash files inside a windows form in wpf application

  • October 20, 2010
  • 2 replies
  • 1061 views

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.

    This topic has been closed for replies.

    2 replies

    legendking
    Participant
    May 7, 2018

    use this ,

    axShockwaveFlash1.dispose();

    axShockwaveFlash1.Initialize();

    GTK _ happy coding...! Chandrakala85

    pwillener
    Legend
    October 21, 2010

    I don't think this is a Flash Player issue; try asking in the appropriate developers forum (Flash, Flex, Actionscript, ...).