
Chapter 3
196
displayRealLogo
Syntax
sprite(
whichSprite
).displayRealLogo
member(
whichCastmember
).displayRealLogo
Description
RealMedia sprite or cast member property; allows you to set or get whether the RealNetworks
logo is displayed (
TRUE
) or not (
FALSE
). When set to
TRUE
, this property displays the
RealNetworks logo in the RealMedia viewer at the beginning of the stream, when the video is
stopped, or when the video is rewound.
The default value of this property is
TRUE
(1). Integer values other than 1 or 0 are treated as
TRUE
.
Examples
The following examples show that the
displayRealLogo
property for sprite 2 and the cast
member Real is set to
TRUE
, which means that the RealNetworks logo is displayed when the
movie starts to play and when it is stopped or rewound.
put sprite(2).displayRealLogo
-- 1
put member("Real").displayRealLogo
-- 1
The following examples set the
displayRealLogo
property for sprite 2 and the cast member Real
to
FALSE
, which means that the RealNetworks logo is not displayed.
sprite(2).displayRealLogo = FALSE
member("Real").displayRealLogo = FALSE
distanceTo()
Syntax
vector1
.distanceTo(
vector2
)
Description
3D vector method; returns the distance in world units between two vectors.
Example
There are three vectors in this example. The distance from Vec1 to Vec2 is 100.0000 world units.
The distance from Vec1 to Vec3 is 141.4214 world units.
Vec1 = vector(100, 0, 0)
Vec2 = vector(100, 100, 0)
Vec3 = vector(100, 100, 100)
put Vec1.distanceTo(Vec2)
-- 100.0000
put Vec1.distanceTo(Vec3)
-- 141.4214
See also
magnitude
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...