public final class SymbolClassTag extends Tag implements IManagedTag
SymbolClass
tag in a SWF file.
The SymbolClass tag creates associations between symbols in the SWF file and ActionScript 3.0 classes. It is the ActionScript 3.0 equivalent of the ExportAssets tag. If the character ID is zero, the class is associated with the main time-line of the SWF. This is how the root class of a SWF is designated. Classes listed in the SymbolClass tag are available for creation by other SWF files (see StartSound2, DefineEditText (HasFontClass), and PlaceObject3 (PlaceFlagHasClassName and PlaceFlagHasImage). For example, ten SWF files that are all part of the same web site can share an embedded custom font if one file embeds and exports the font class.
Constructor and Description |
---|
SymbolClassTag()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addSymbol(ICharacterTag characterTag,
String name)
Register a symbol with the given name.
|
String |
description()
Sub-class can override this method to provide more information when the
tag object is printed out.
|
ICharacterTag |
getSymbol(String name)
Find a symbol by name.
|
String |
getSymbolName(ICharacterTag characterTag)
Get symbol name.
|
Set<String> |
getSymbolNames()
Get all the symbol names.
|
void |
removeSymbol(ICharacterTag characterTag)
Remove a symbol.
|
void |
removeSymbol(String name)
Remove a symbol.
|
int |
size()
Get the total number of exported tags.
|
getTagType, toString
public String description()
Tag
description
in class Tag
public ICharacterTag getSymbol(String name)
name
- symbol namepublic void addSymbol(ICharacterTag characterTag, String name)
characterTag
- character tagname
- symbol namepublic final String getSymbolName(ICharacterTag characterTag)
characterTag
- character tagpublic void removeSymbol(ICharacterTag characterTag)
characterTag
- tags to removepublic void removeSymbol(String name)
name
- name of the tag to removepublic int size()
Copyright © 2016 The Apache Software Foundation. All rights reserved.