AxShockwaveFlash object disappears at runtime

am having a strange problem with the shockwave flash object (look at
rwakelan.googlepages.com/flash.html to find out how to get it in a
project). The easiest way to recreate the error is to:

1. Create a new project.
2. Add a custom control.
2a. Inside that custom control add a tab control.
2b. Add the shockwave object to the tab page.
2c. Set up the shockwave object with a movie. It will work fine
here.
3. Add a button to the main form (not the user control).
4. have that button create a new instance of your user control and add
it to the form (so it shows up)

That recreates my problem. Basically, the flash object in the user
control doesn't appear with the user control. The tab page is blank.
Does anyone have an idea what can cause this I don't have a clue and
can't seem to find anything in my searches...

I know it is the Flash object because other controls I put on the tab page (such as a button) appear fine.



Answer this question

AxShockwaveFlash object disappears at runtime

  • B123456H

    It's been a while, but I believe the solution I found was to have the Flash object on the main form so it would load fine and then in the load event move the flash object to the tab page's control collection. Then on the enter event of the form, you can reset the movie to the first frame and start playing it again to have it start from the beginning of the movie.

    Let me know if that doesn't work and I'll look for that project to see what I did differently from that.


  • GeoffChambers

    Hi Robert,

    I know you posted this problem ages ago but did you ever find a solution

    When I put a AxShockwaveFlash object onto a form it works fine, when I then put it onto a panel placed on a tabcontrol it disappears at runtime, sometimes if I click another button (or other tab and then return to that tab) it appears and seems to work fine from then onwards. I have stepped through the code but can't see any reason why it sometimes appears / or is hidden. Its definitely a problem with the flash object as a button or label works fine.

    Any ideas Any help would be really appreciated.

    Thanks

    Paul


  • AxShockwaveFlash object disappears at runtime