19 #ifndef GNASH_SWF_DOABCTAG_H
20 #define GNASH_SWF_DOABCTAG_H
33 class movie_definition;
50 log_debug(
"Not executing ABC tag because we failed to parse it");
56 log_debug(
"getting machine.");
61 log_debug(
"Begin execute AbcBlock.");
63 log_debug(
"Executing machine...");
77 log_swferror(
"SWF contains ABC tag, but is not an "
91 if (!block->read(in)) {
92 log_error(
"ABC parsing error while processing DoABCTag. This "
93 "tag will never be executed");
98 boost::intrusive_ptr<DoABCTag> ABCtag(
new DoABCTag(block.release()));
101 log_parse(
_(
"tag %d: DoABCDefine"), tag);
120 #endif // GNASH_SWF_DOABCTAG_H
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:95
The ActionScript bytecode of a single ABC tag in a SWF.
Definition: AbcBlock.h:209
A MovieClip is a container for DisplayObjects.
Definition: MovieClip.h:83
void read_string(std::string &to)
Reads a null-terminated string from the given file and assigns it to the given std::string, overriding any previous value of it.
Definition: SWFStream.cpp:403
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:30
boost::uint32_t read_u32()
Read a aligned unsigned 32-bit value from the stream.
Definition: SWFStream.cpp:369
An SWF parsing exception.
Definition: GnashException.h:89
void initMachine(AbcBlock *pool_block)
Definition: Machine.cpp:3154
virtual size_t get_loading_frame() const =0
Returns 1 based index. Ex: if 1 then 1st frame as been fully loaded.
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
static void loader(SWFStream &in, TagType tag, movie_definition &m, const gnash::RunResources &)
Definition: DoABCTag.h:71
#define IF_VERBOSE_MALFORMED_SWF(x)
Definition: log.h:390
void prepare(Machine *mach)
Definition: AbcBlock.cpp:322
#define IF_VERBOSE_PARSE(x)
Definition: log.h:364
Control tags are swf tags that control the operation of the movie.
Definition: ControlTag.h:43
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
#define _(String)
Definition: log.h:44
void execute()
Definition: Machine.cpp:381
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:43
The virtual machine for executing ABC (ActionScript Bytecode).
Definition: Machine.h:73
virtual bool isAS3() const
True if the SWFMovie should use AVM2.
Definition: movie_definition.h:410
The AVM1 virtual machine.
Definition: VM.h:71
Definition: GnashKey.h:159
virtual void executeActions(MovieClip *m, DisplayList &) const
Execute Action tags.
Definition: DoABCTag.h:46
virtual void addControlTag(boost::intrusive_ptr< SWF::ControlTag >)
Add an ControlTag to this movie_definition's playlist.
Definition: movie_definition.h:273
A list of on-stage DisplayObjects, ordered by depth.
Definition: DisplayList.h:64
std::string name
Definition: LocalConnection_as.cpp:151
Definition: GnashKey.h:331
as_object * getObject(const DisplayObject *d)
Return the as_object associated with a DisplayObject if it exists.
Definition: DisplayObject.h:1160
SWF stream wrapper class.
Definition: SWFStream.h:58
void read(SWFStream *)
Definition: DoABCTag.h:67
SWF Tag DoABC (72)
Definition: DoABCTag.h:42
void ensureBytes(unsigned long needed)
Ensure the requested number of bytes are available for an aligned read in the currently opened tag...
Definition: SWFStream.cpp:51