|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.MovieAttributes
public final class MovieAttributes
The MovieAttributes tag defines characteristics of a Movie. It contains several flags to indicate types of objects in the movie and whether any hardware acceleration should be used if available. For Flash Version 8 and above it must be the first object after the MovieHeader.
Constructor Summary | |
---|---|
MovieAttributes()
Creates a new MovieAttributes object. |
|
MovieAttributes(MovieAttributes object)
Creates and initialises a MovieAttributes object using the values copied from another MovieAttributes object. |
|
MovieAttributes(SWFDecoder coder)
Creates and initialises a MovieAttributes object using values encoded in the Flash binary format. |
Method Summary | |
---|---|
MovieAttributes |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
boolean |
hasAS3()
Does the Movie contain meta-data. |
boolean |
hasMetaData()
Does the Movie contain Actionscript 3 code. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setUseDirectBlit(boolean useBlit)
Instruct the Flash Player to use direct bit block transfer to accelerate graphics. |
void |
setUseGPU(boolean useGPU)
Instruct the Flash Player to use the graphics processor to accelerate compositing - if available. |
void |
setUseNetwork(boolean useNetwork)
Instructor the Flash Player use the network for loading resources even if the movie is loaded from the local file system. |
String |
toString()
|
boolean |
useDirectBlit()
Does the Flash Player use direct bit block transfer to accelerate graphics. |
boolean |
useGPU()
Does the Flash Player use the graphics processor to accelerate compositing - if available. |
boolean |
useNetwork()
Does the Flash Player use the network for loading resources even if the movie is loaded from the local file system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MovieAttributes()
public MovieAttributes(SWFDecoder coder) throws IOException
coder
- an SWFDecoder object that contains the encoded Flash data.
IOException
- if an error occurs while decoding the data.public MovieAttributes(MovieAttributes object)
object
- a MovieAttributes object from which the values will be
copied.Method Detail |
---|
public boolean hasMetaData()
public boolean hasAS3()
public boolean useDirectBlit()
public void setUseDirectBlit(boolean useBlit)
useBlit
- use graphics hardware accelerations.public boolean useGPU()
public void setUseGPU(boolean useGPU)
useGPU
- use graphics processor for compositing.public boolean useNetwork()
public void setUseNetwork(boolean useNetwork)
useNetwork
- use the network even if the movie is loaded locally.public MovieAttributes copy()
copy
in interface Copyable<MovieTag>
public String toString()
toString
in class Object
public int prepareToEncode(Context context)
prepareToEncode
in interface SWFEncodeable
context
- an Context that allows information to be passed between
objects to control how they are initialised for encoding.
public void encode(SWFEncoder coder, Context context) throws IOException
encode
in interface SWFEncodeable
coder
- an SWFEncoder object.context
- an Context that allows information to be passed between
objects to control how they are initialised for encoding.
IOException
- if an error occurs while encoding the object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |