
308
This handler is called by a frame script once per Director frame. The handler creates a new texture
from the image of the RealMedia cast member named Real if it is playing or paused. The new
texture is then used by the shader of the model named mSphere. The texture that was used in the
previous frame is deleted. Finally, the sphere is rotated by 1° around the y-axis. The result is a
#realMedia
video playing on a rotating sphere.
on updateShader
if member("Real").state = 4 then
sphereShader = member("3d").model("mSphere").shader
tex = member("3d").newTexture("texture" & gTextureNumber, \
#fromImageObject, member("Real").image)
sphereShader.texture = tex
if gTextureNumber > 1 then
member("3d").deleteTexture("texture" & (gTextureNumber - 1))
end if
gTextureNumber = gTexture 1
end if
member("3d").model[1].transform.rotate(0, 1, 0)
end
imageCompression
Syntax
member(
whichMember
).imageCompression
the imageCompression of member
whichMember
Description
This bitmap cast member property indicates the type of compression that Director will apply to
the member when saving the movie in Shockwave format. This property can be tested and set,
and has no effect at runtime. Its value can be any one of these symbols:
You normally set this property in the Property inspector’s Bitmap tab. However, if you want to set
this property for a large number of images at once, you can set the property with a Lingo routine.
If a member doesn’t support JPEG compression because it is 8-bit or lower, or if the image is
linked from an external file, only
#standard
compression can be used. Image formats that do not
support JPEG compression include GIF and 8-bit or lower images.
Example
This statement displays the imageCompression of member Sunrise in the message window:
put member("Sunrise").imageCompression
-- #movieSetting
See also
imageQuality
,
movieImageCompression
,
movieImageQuality
Value
Meaning
#movieSetting
Use the compression settings of the movie, as stored in the movieImageCompression
property. This is the default value for image formats not restricted to standard
compression (see below).
#standard
Use the Director standard internal compression format.
#jpeg
Use JPEG compression. See imageQuality.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...