www.pudn.com > C++_Flash.rar > SWFAction.h
// SWFAction.h: interface for the CSWFAction class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(SWFACTION_H)
#define SWFACTION_H
#include "Definitions.h"
class CSWFAction
{
public:
CSWFAction(bool bButtonAction);
virtual ~CSWFAction();
public:
// Action methods
void Stop();
void Play();
void NextFrame();
void PreviousFrame();
void GotoFrame(int frameIndex);
void GotoLabel(UCHAR* frameLabel);
void WaitForFrame(int frameIndex, int skipCount);
void GetURL(UCHAR* urlString, UCHAR* targetString);
void SetTarget(UCHAR* targetString);
// Special methods
void ClearActions();
bool IsButtonAction();
UCHAR* BuildSWFStream();
int GetSWFStreamLength();
private:
// Private members
bool m_ButtonAction;
int m_NumberActions;
SWF_ACTIONRECORD* m_Actions;
UCHAR* m_SWFStream;
int m_SWFStreamLength;
};
#endif // !defined(SWFACTION_H)