public class ExportAssetsTag extends Tag implements IManagedTag, ICharacterReferrer
ExportAssets
tag in a SWF file.
The ExportAssets tag makes portions of a SWF file available for import by other SWF files. Each exported character is identified by a string. Any type of character can be exported.
If the value of the character in ExportAssets was previously exported with a different identifier, Flash Player associates the tag with the latter identifier. That is, if Flash Player has already read a given value for Tag1 and the same Tag1 value is read later in the SWF file, the second Name1 value is used.
The map between character tag and name is implemented in a BiMap fashion. A character can only be exported with one name; and a name can only be used to export one character tag.
Note: ExportAssets tag is only used in ActionScript 1 and 2 only. In ActionScript3, ExportAssets is ignored. SymbolClass is used instead.
Constructor and Description |
---|
ExportAssetsTag()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addExport(ICharacterTag characterTag,
String name)
Export character tag with the given name.
|
String |
description()
Sub-class can override this method to provide more information when the
tag object is printed out.
|
Set<String> |
getCharacterNames()
Get all the symbol names.
|
ICharacterTag |
getCharacterTagByName(String name)
Get a character tag by its assigned name.
|
Iterable<ICharacterTag> |
getReferences()
Get all the referred character tags.
|
void |
removeExport(ICharacterTag characterTag)
Remove a character tag from the exported tags by reference.
|
void |
removeExport(String name)
Remove a character tag from the exported tags by name.
|
int |
size()
Get the total number of exported tags.
|
getTagType, toString
public Set<String> getCharacterNames()
public ICharacterTag getCharacterTagByName(String name)
name
- symbol namepublic void addExport(ICharacterTag characterTag, String name)
characterTag
- character tagname
- symbol namepublic void removeExport(ICharacterTag characterTag)
characterTag
- tags to removepublic void removeExport(String name)
name
- name of the tag to removepublic int size()
public String description()
Tag
description
in class Tag
public Iterable<ICharacterTag> getReferences()
getReferences
in interface ICharacterReferrer
Copyright © 2016 The Apache Software Foundation. All rights reserved.