sswf::TagSprite Class Reference
Group shapes, sprites, texts, buttons, sound, etc.
More...
#include <libsswf.h>
List of all members.
Detailed Description
The
TagSprite is the SWF object used to group other objects in one single entity. The sprite is given an ID which can later be used to display the sprite.
A sprite can be viewed as a group, though it only includes a set of control tags used to define a display list.
For instance, to include a TagSprite inside another TagSprite you actually need to use a TagPlace which reference the TagSprite to be inserted.
There is one special case sprite: the empty sprite. This is required if you want to use the CreateEmptyMovie() function in some ActionScript!
Since version 1.8.0, a Sprite derives from the sswf::TagScalingGrid. This means you can define a scaling rectangle with a call to the void sswf::TagScalingGrid::SetGrid(const SRectangle& rect) function.
- See also:
- SWF Alexis' Reference—Define Sprite
SWF Alexis' Reference—swf_tag
Constructor & Destructor Documentation
| TagSprite::TagSprite |
( |
TagBase * |
parent |
) |
|
By default, a TagSprite is created empty. You can add objects using the Sprite object as the parent of other objects (instead of the TagHeader.)
Member Function Documentation
This function saves all the children defined in this sprite, the Sprite header and when the user did not specify them, the TagShowFrame and TagEnd at the end of the list.
- Warning:
- The size of the sub-list of tags within a sprite is limited to 64Kb.
- Parameters:
-
| data | The Data buffer in which the sprite is to be saved |
- Returns:
- An error manager code
Implements sswf::TagBase.
References sswf::Data::Append(), sswf::Data::ByteSize(), sswf::TagBase::Children(), sswf::ErrorManager::ERROR_CODE_NONE, sswf::TagBase::FrameCount(), sswf::TagScalingGrid::GridSave(), sswf::TagBaseID::Identification(), sswf::TagBase::Name(), sswf::TagBase::Next(), sswf::Data::OverwriteShort(), sswf::Data::PutShort(), sswf::TagBase::ResetFrames(), sswf::TagBase::Save(), sswf::TagBaseID::SaveID(), sswf::TagBase::SaveTag(), sswf::TagBase::ShowFrame(), sswf::TagBase::SWF_TAG_DEFINE_SPRITE, sswf::TagBase::SWF_TAG_END, and sswf::TagBase::SWF_TAG_SHOW_FRAME.
The documentation for this class was generated from the following files: