Mtsimagestream - Adobe ATMOSPHERE User Manual

Table of Contents

Advertisement

340
APPENDIX E
numProps = object.getPropertyCount();
getPropertyName(index)
Returns the 4-character name for the property for that index value.
propName = object.getPropertyName(2);
getPropertyType(index)
Returns the data type for the property for that index value as a long integer.
if ( a.getPropertyType(1) == a.getPropertyType(2) )
{
chat.print ("Same type");
}
getPropertyTypeName(index)
Returns the data type for the property for that index value as a 4-character string.
chat.print( "Type = " + a.getPropertyTypeName() );
hasProperty(name)
Returns whether an object has the property with the 4-character string name.
hasScale = a.hasProperty("scl_");
setProperty(name, value)
Sets the named property with the supplied value.
a.setProperty( "scl_", [1.0, 2.0, 3.0] );

MTSImageStream

An MTSImageStream object is used to represent a Viewpoint time element of type 'MTSImageStream' . These time
elements are typically used to load an image for a texture (MTSTexture). Using these methods, you can change the
image based upon any given event without needing to reload the world, or the object.
Properties
aolArt
America Online performs further compression on GIF and JPG images to aid in reducing download time.
Atmosphere has the capacity to decompress these fi les. This boolean fl ag specifi es whether the AOL image fi les
should be decompressed. (Off by default)
VPobject = stageModel.getViewpointObject("plane1");
timeElem = VPobject.scene.getTimeElem("imgStream");
timeElem.aolArt = true;
path
Returns or sets the path for the timeElement. Note that in order to set or change the path, the timeElem must
not be running.

Advertisement

Table of Contents
loading

Table of Contents