EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 932

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
932 Chapter 14: Properties
posterFrame
Usage
-- Lingo syntax
memberObjRef.posterFrame
// JavaScript syntax
memberObjRef.posterFrame;
Description
Flash cast member property; controls which frame of a Flash movie cast member is used for its
thumbnail image. This property specifies an integer corresponding to a frame number in the
Flash movie.
This property can be tested and set. The default value is 1.
Example
This handler accepts a reference to a Flash movie cast member and a frame number as parameters,
and it then sets the thumbnail of the specified movie to the specified frame number:
-- Lingo syntax
on resetThumbnail(whichFlashMovie, whichFrame)
member(whichFlashMovie).posterFrame = whichFrame
end
// JavaScript syntax
function resetThumbnail(whichFlashMovie, whichFrame) {
member(whichFlashMovie).posterFrame = whichFrame;
}
preferred3dRenderer
Usage
-- Lingo syntax
_movie.preferred3dRenderer
// JavaScript syntax
_movie.preferred3dRenderer;
Description
Movie property; allows you to get or set the default renderer used to draw 3D sprites within a
particular movie if that renderer is available on the client machine. Read/write.
If the specified renderer is not available on the client machine, the movie selects the most suitable
available renderer.
The possible values for this property are as follows:
• #openGL specifies the openGL drivers for a hardware acceleration that work with both
Macintosh and Windows platforms.
• #directX7_0 specifies the DirectX 7 drivers for hardware acceleration that work only with
Windows platforms.
• #directX5_2 specifies the DirectX 5.2 drivers for hardware acceleration that work only with
Windows platforms.