Go to the documentation of this file.
19 #ifndef GNASH_SWF_SYMBOLCLASSTAG_H
20 #define GNASH_SWF_SYMBOLCLASSTAG_H
34 class movie_definition;
50 log_debug(
"SymbolClassTag: Creating class %s.", _rootClass);
61 log_swferror(
"SWF contains SymbolClass tag, but is not an "
68 std::uint16_t num_symbols = in.
read_u16();
69 log_debug(
"There are %u symbols.", num_symbols);
70 for (
unsigned int i = 0;
i < num_symbols; ++
i) {
81 if (
id == 0)
m.addControlTag(st);
98 if (
s)
s->addControlTag(st);
111 const std::string _rootClass;
118 #endif // GNASH_SWF_SYMBOLCLASSTAG_H
virtual void executeActions(MovieClip *m, DisplayList &) const
Execute Action tags.
Definition: SymbolClassTag.h:46
Control tags are swf tags that control the operation of the movie.
Definition: ControlTag.h:44
std::string name
Definition: LocalConnection_as.cpp:149
void log_swferror(StringType msg, Args... args)
Definition: log.h:325
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &)
Definition: SymbolClassTag.h:54
Holds the immutable data for a sprite, as read from as SWF stream. @ should not derive from movie_def...
Definition: sprite_definition.h:50
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:31
void log_debug(StringType msg, Args... args)
Definition: log.h:301
@ i
Definition: GnashKey.h:155
void read_string(std::string &to)
Reads a null-terminated string from the given file and assigns it to the given std::string,...
Definition: SWFStream.cpp:395
The AVM1 virtual machine.
Definition: VM.h:72
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
Global_as * getGlobal() const
Get a pointer to this VM's _global Object.
Definition: VM.cpp:149
@ m
Definition: GnashKey.h:159
@ s
Definition: GnashKey.h:165
A MovieClip is a container for DisplayObjects.
Definition: MovieClip.h:84
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
#define IF_VERBOSE_MALFORMED_SWF(x)
Definition: log.h:404
A list of on-stage DisplayObjects, ordered by depth.
Definition: DisplayList.h:65
SWF Tag SymbolClass (76)
Definition: SymbolClassTag.h:43
The virtual machine for executing ABC (ActionScript Bytecode).
Definition: Machine.h:74
An SWF parsing exception.
Definition: GnashException.h:90
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
@ SYMBOLCLASS
Definition: SWF.h:106
#define IF_VERBOSE_PARSE(x)
Definition: log.h:378
void log_parse(StringType msg, Args... args)
Definition: log.h:313
as_object * getObject(const DisplayObject *d)
Return the as_object associated with a DisplayObject if it exists.
Definition: DisplayObject.h:1160
std::uint16_t read_u16()
Read a aligned unsigned 16-bit value from the stream.
Definition: SWFStream.cpp:332
SWF stream wrapper class.
Definition: SWFStream.h:59
void instantiateClass(std::string className, as_object *global)
Definition: Machine.cpp:3224
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:50
@ SWF
Definition: GnashKey.h:331