Print Page | Close Window

How to plash flash file?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7702
Printed Date: 18 July 2025 at 3:10am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to plash flash file?
Posted By: cxmvip
Subject: How to plash flash file?
Date Posted: 01 August 2007 at 6:26am
I want to play the flash file in the tool bar. My code is following:
int CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)
{
 if (lpCreateControl->bToolBar && lpCreateControl->nID == IDC_ANIMATION)
 {
  // Create the flash control.
  if (!m_wndFlashCtrl.Create("swf",WS_TABSTOP | WS_CHILD | WS_VISIBLE | ACS_AUTOPLAY,
   CRect(0, 0, 340, 0), this, IDC_ANIMATION,NULL))
  {
   return FALSE;
  }
    CString m_st_flashFilePath="";
    m_st_flashFilePath.Format("e:\\demo.swf");
   m_wndFlashCtrl.LoadMovie(0,m_st_flashFilePath);
    m_wndFlashCtrl.Play();
 
    CXTPControlCustom* pControlFlash =  CXTPControlCustom::CreateControlCustom(&m_wndFlashCtrl);
  // Set the vertical draw options to xtpVerticalShow.
  // This will draw the animation control when the swf
  // toolbar is docked vertically.
  pControlFlash->SetVerticalPositionOption(xtpVerticalShow);
  lpCreateControl->pControl = pControlFlash;
     
  return TRUE;
 }

 return FALSE;
}
 
 
It cann't play swf file in the toolbar! Please help me!
 


-------------
bird



Replies:
Posted By: Oleg
Date Posted: 01 August 2007 at 9:00am
Hello,
 
What class m_wndFlashCtrl is?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: cxmvip
Date Posted: 02 August 2007 at 12:00pm

Thanks Oleg.

 The class m_wndFlashCtrl is one control to play swf file. 

CShockwaveFlash  m_wndFlashCtrl; // Flash control
I  insert shockwave flash object into my project.

-------------
bird


Posted By: Oleg
Date Posted: 03 August 2007 at 2:17am
It works for me....
 
Just change bounding rectangle to set some height:
 
CRect(0, 0, 340, 40)


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: cxmvip
Date Posted: 03 August 2007 at 3:45am
Thanks very much!!!!!!!!

-------------
bird



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net