Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

SWFLIB - a free Flash authoring library

, 18 Jul 2006 CPOL
An article on a free Flash authoring library.
samplemovie.zip
SampleMovie.swf
swflibreference.zip
SWFLIB - Programmers Reference.pdf
swflib_library.zip
swflib.dsp
swflib.dsw
swflib_reference.zip
SWFLIB - Programmers Reference.pdf
swflib_samplemovies.zip
SWF Sample Movies
Sample1.swf
Sample2.swf
Sample3.swf
Sample4.swf
Sample5.swf
swflib_testproject.zip
SWFLIB TestProject.dsp
SWFLIB TestProject.dsw
res
SWFLIB TestProject.ico
Sample1.swf
Sample2.swf
Sample3.swf
Sample4.swf
Sample5.swf
bm128.jpg
SWFLIB TestProject.clw
// 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)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

darkoman
Software Developer (Senior) Elektromehanika d.o.o. Nis
Serbia Serbia
He has a master degree in Computer Science at Faculty of Electronics in Nis (Serbia), and works as a C++/C# application developer for Windows platforms since 2001. He likes traveling, reading and meeting new people and cultures.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141216.1 | Last Updated 18 Jul 2006
Article Copyright 2006 by darkoman
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid