Flash animation as ActiveX control in MFC?
Greetings.
How do I make my flash animation as part of my MFC program?
I tried inserting an ActiveX control(Shockwave Flash) in my dialog and set the movie URL and base URL to "animation.swf", the animation is in the same folder as the program. However the animation does not shows, right-clicking on the control shows "Movie is not loaded".
What are the things that I have to set?
Advanced thanks for any help rendered.
Re: Flash control problems
I can successfully play a Flash Movie using this code, but I can't control it. That is subsequent calls like:
pFlashBox->Stop();
pFlashBox->Rewind();
do nothing.
Do you have any ideas?
Thanks,
--Rudy
Re: Flash control problems
Hi,
If you get the error C2065: 'pFlashBox' : undeclared identifier then there are some lines missing in your code I think.
And if you can use the classWizard you can do it like this m_FlashCtrl.Stop();
If this sample code doesn’t work for you, post some lines of you’re source code so I can look at it.
void CFlashDlg::OnButton1()
{
CShockwaveFlash* pFlashBox =
static_cast<CShockwaveFlash*>(GetDlgItem(IDC_FLASH));
pFlashBox->Stop();
// m_FlashCtrl.Stop(); // Put this Line in your *.h file
// ShockwaveFlash m_TestFlash;
}
/*Gr, David Smulders*/
Re: Flash (correct) help (flash5ocx.zip)
Hi, I have put a sample at this link.
I’ll hope it helps.
http://www.dinaric.org/software/cpp/flash5ocx.zip
/*Gr, David Smulders*/