高分求助VC编程连续播放Flash过程中的问题!
在一个flash的按钮按下后,VC程序使用如下代码载入第二个flash文件,这个过程中窗口界面出现闪动现象,如何解决,谢谢大家!需要全部代码请跟贴!
void CFlashTestDlg::OnFSCommandShockwaveflash1(LPCTSTR command, LPCTSTR args)
{
CString fp;
char *pBuff=new char[MAX_PATH];
GetCurrentDirectory(MAX_PATH,pBuff);
fp=pBuff;
delete []pBuff;
if(strcmp(command,"_next")==0)
{
m_Flash.Stop();
m_Flash.LoadMovie(0,fp+"\\2.swf");
m_Flash.MoveWindow(0,0,800,600);
m_Flash.Play();
}
if(strcmp(command,"_before")==0)
{
m_Flash.Stop();
m_Flash.LoadMovie(0,fp+"\\1.swf");
m_Flash.MoveWindow(0,0,800,600);
m_Flash.Play();
}
if(strcmp(args,"_exit")==0)
{
SendMessage(WM_CLOSE);
}
// TODO: Add your control notification handler code here
}