|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.FSTransformObject
com.flagstone.transform.FSMovieObject
com.flagstone.transform.FSExport
public class FSExport
FSExport is used to export shapes and other objects so they can be used in another Flash file.
Since the identifier for an object is only unique within a given Flash file, each object exported must be given a name so it can referenced when it is imported.
Attributes | |
---|---|
type | Identifies the data structure when it is encoded. Read-only. |
objects | A HashTable containing key-value pairs where the key is the identifier of the object being exported and the value is name assigned to the object so it can be referenced when it is imported into a Flash file. |
To export an object from a Flash file:
FSDefineShape shape = new FSDefineShape(...); movie.add(shape); movie.add(new FSExport(shape.getIdentifier(), "Shape"));The object can then be imported into another file:
movie.add(new FSImport("exportFile.swf", movie.newIdentifier(), "Shape"));
The FSExport class represents the ExportAssets tag in the Macromedia Flash (SWF) File Format Specification. It was introduced in Flash 5.
Field Summary |
---|
Constructor Summary | |
---|---|
FSExport(FSCoder coder)
Construct an FSExport object, initialising it with values decoded from an encoded object. |
|
FSExport(FSExport obj)
Constructs an FSExport object by copying values from an existing object. |
|
FSExport(int anIdentifier,
java.lang.String aString)
Constructs an FSExport object that exports the object with the specified identifier. |
Method Summary | |
---|---|
void |
add(int anIdentifier,
java.lang.String aString)
Adds the identifier and name to the list of objects to be exported. |
void |
appendDescription(java.lang.StringBuffer buffer,
int depth)
AppendDescription is used to present a string description of the object including all nested objects up to a specified depth. |
void |
decode(FSCoder coder)
|
void |
encode(FSCoder coder)
|
boolean |
equals(java.lang.Object anObject)
Returns true if anObject is equal to this one. |
java.util.Hashtable |
getObjects()
Gets the table of objects to be imported. |
int |
length(FSCoder coder)
|
void |
setObjects(java.util.Hashtable aTable)
Sets the table of objects to be imported. |
Methods inherited from class com.flagstone.transform.FSMovieObject |
---|
getType |
Methods inherited from class com.flagstone.transform.FSTransformObject |
---|
clone, name, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FSExport(FSCoder coder)
coder
- an FSCoder containing the binary data.public FSExport(int anIdentifier, java.lang.String aString)
anIdentifier
- the identifier of the object to be exported.aString
- the name of the exported object to allow it to be referenced.public FSExport(FSExport obj)
obj
- an FSExport object.Method Detail |
---|
public void add(int anIdentifier, java.lang.String aString)
anIdentifier
- the identifier of the object to be exported.aString
- the name of the exported object to allow it to be referenced.public java.util.Hashtable getObjects()
public void setObjects(java.util.Hashtable aTable)
aTable
- the table of objects being imported.public boolean equals(java.lang.Object anObject)
FSMovieObject
equals
in class FSMovieObject
public void appendDescription(java.lang.StringBuffer buffer, int depth)
FSTransformObject
appendDescription
in class FSMovieObject
buffer
- a StringBuffer to which the description of each object is
appended.depth
- the maximum level of nesting up to which objects will be
displayed.public int length(FSCoder coder)
length
in class FSMovieObject
public void encode(FSCoder coder)
encode
in class FSMovieObject
public void decode(FSCoder coder)
decode
in class FSMovieObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |