Public Types | Public Member Functions

gnash::SWF::ControlTag Class Reference

Control tags are swf tags that control the operation of the movie. More...

#include <ControlTag.h>

Inheritance diagram for gnash::SWF::ControlTag:
Inheritance graph
[legend]
Collaboration diagram for gnash::SWF::ControlTag:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

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.


Member Enumeration Documentation

Type of ControlTag.

Enumerator:
TAG_ACTION 
TAG_DLIST 

Constructor & Destructor Documentation

virtual gnash::SWF::ControlTag::~ControlTag (  )  [inline, virtual]

Member Function Documentation

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::DoABCTag, gnash::SWF::DoActionTag, gnash::SWF::StartSoundTag, gnash::SWF::StreamSoundBlockTag, 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::DefineSceneAndFrameLabelDataTag, gnash::SWF::DefinitionTag, gnash::SWF::DisplayListTag, gnash::SWF::DoInitActionTag, gnash::SWF::ExportAssetsTag, gnash::SWF::ImportAssetsTag, gnash::SWF::PlaceObject2Tag, gnash::SWF::RemoveObjectTag, gnash::SWF::ScriptLimitsTag, and gnash::SWF::SetBackgroundColorTag.


The documentation for this class was generated from the following file: