Click here to Skip to main content
12,749,754 members (35,342 online)
Click here to Skip to main content

Stats

139.2K views
6.1K downloads
92 bookmarked
Posted 27 Jun 2006

SWFLIB - a free Flash authoring library

, 18 Jul 2006 CPOL
An article on a free Flash authoring library.
// 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.

You may also be interested in...

Pro
Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170215.1 | Last Updated 18 Jul 2006
Article Copyright 2006 by darkoman
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid