Copy link to clipboard
Copied
Dear,
we have an MFC application (VS2010 32-bit build) in which we show a flash animation (using CShockwaveFlash) during startup of our application. This was working fine on win xp machines, but there seems to be a problem on win 7.
On win 7, the window is shown but the animation doesn't work.
We noticed that it does work when the focus is set to another window (e.g. a modal dialog on top of the appilcation).
Snippet |
---|
CShockWave::CShockWave(CWnd* Parent) : CDialog(IDD_FLASH, Parent) { m_Shock = 0; } void CShockWave::InitShockWave() { RECT rect; GetWindowRect(&rect); rect.right -= rect.left; rect.left = 0; rect.bottom -= rect.top; rect.top = 0; if (_access(m_Movie.c_str(), 00) != -1) { m_Shock = new CShockwaveFlash(); if (m_Shock) { if (m_Shock->Create("FLASH", WS_VISIBLE, rect, (CWnd *)this, 10000)) { m_Created = true; m_Shock->SetPlaying(FALSE); m_Shock->SetLoop(FALSE); m_Shock->SetMovie(m_Movie.c_str()); m_Shock->Play(); } else { delete m_Shock; m_Shock = 0; } } } } IDD_FLASH DIALOG 0, 0, 282, 226 STYLE DS_SETFONT | WS_POPUP FONT 8, "Tahoma" BEGIN END CShockWave ShockWave = new CShockWave() ShockWave->Create(IDD_FLASH, NULL); ShockWave->InitShockWave(); ShockWave->CenterWindow(); ShockWave->ShowWindow(SW_SHOW); |
Any ideas/suggestions?
When I open the swf file in IE, it is working fine.
Thanks!
Copy link to clipboard
Copied
This forum is only to discuss how the forums operate, not products
If you go to the Forums Index http://forums.adobe.com/index.jspa
You will be able to select a forum for the Adobe product(s) you use