www.pudn.com > C++_Flash.rar > SWFButton.h


// SWFButton.h: interface for the CSWFButton class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(SWFBUTTON_H) 
#define SWFBUTTON_H 
 
#include "Definitions.h" 
#include "SWFObject.h" 
#include "SWFColorTransform.h" 
#include "SWFMatrix.h" 
#include "SWFAction.h" 
 
class CSWFButton : public CSWFObject 
{ 
public: 
	CSWFButton(USHORT nID, USHORT depth, bool bMenuButton); 
	virtual ~CSWFButton(); 
 
public: 
	// State methods 
	void AddStateCharacter(UCHAR stateFlags, USHORT characterID, int depth, SWF_COLOR_TRANSFORM* pColorTransform); 
	void AddStateAction(UCHAR flags1, UCHAR flags2, CSWFAction* pAction); 
 
	// Special methods 
	UCHAR* BuildSWFStream(); 
	int GetSWFStreamLength(); 
 
private: 
	// Private members 
	int m_NumberButtonRecords; 
	SWF_DEFINE_BUTTON2_TAG m_Button; 
	int m_NumberCondActions; 
	SWF_BUTTONCONDACTION_TAG* m_ButtonCondActions; 
	UCHAR* m_SWFStream; 
	int m_SWFStreamLength; 
 
public: 
	// Public members 
 
}; 
 
#endif // !defined(SWFBUTTON_H)