Gnash
0.8.10
|
Control tags are swf tags that control the operation of the movie. More...
#include <ControlTag.h>
Public Types | |
enum | Type { TAG_ACTION = 1 << 0, TAG_DLIST = 1 << 1 } |
Type of ControlTag. More... | |
Public Member Functions | |
virtual | ~ControlTag () |
virtual void | executeActions (MovieClip *, DisplayList &) const |
Execute Action tags. | |
virtual void | executeState (MovieClip *, DisplayList &) const |
Execute "state" or "DisplayList" tags. |
Control tags are swf tags that control the operation of the movie.
These are the events associated with a frame.
TODO: check whether this needs to be ref_counted. They are generally owned by a sprite_definition or a SWFMovieDefinition. TODO: rename this class so it's not the same as the SWF spec. It doesn't exactly correspond to the ControlTag defined there.
Type of ControlTag.
virtual gnash::SWF::ControlTag::~ControlTag | ( | ) | [inline, virtual] |
virtual void gnash::SWF::ControlTag::executeActions | ( | MovieClip * | , |
DisplayList & | |||
) | const [inline, virtual] |
Execute Action tags.
Not all tags that have ActionScript code are considered Action tags.
Reimplemented in gnash::SWF::StartSoundTag, gnash::SWF::StreamSoundBlockTag, gnash::SWF::DoActionTag, gnash::SWF::DoABCTag, and gnash::SWF::SymbolClassTag.
virtual void gnash::SWF::ControlTag::executeState | ( | MovieClip * | , |
DisplayList & | |||
) | const [inline, virtual] |
Execute "state" or "DisplayList" tags.
State tags exist to control the state of MovieClips along the timeline. They are executed even for skipped frames so that the state is consistent at each frame. Some tags are considered state tags even though they only contain ActionScript, e.g. the DoInitAction tag.
Reimplemented in gnash::SWF::PlaceObject2Tag, gnash::SWF::SetBackgroundColorTag, gnash::SWF::DefinitionTag, gnash::SWF::ImportAssetsTag, gnash::SWF::DoInitActionTag, gnash::SWF::RemoveObjectTag, gnash::SWF::ExportAssetsTag, gnash::SWF::DisplayListTag, gnash::SWF::DefineSceneAndFrameLabelDataTag, and gnash::SWF::ScriptLimitsTag.