470
Chapter 12: Methods
The
preloadNetThing()
function does not parse a Director file’s links. Thus, even if a Director
file is linked to casts and graphic files,
preloadNetThing()
downloads only the Director file. You
still must preload other linked objects separately.
Parameters
url
Required. Specifies the name of any valid Internet file, such as a Director movie, graphic, or
FTP server location.
Example
This statement uses
preloadNetThing()
and returns the network ID for the operation:
set mynetid = preloadNetThing("http://www.yourserver.com/menupage/
mymovie.dir")
After downloading is complete, you can navigate to the movie using the same URL. The movie
will be played from the cache instead of the URL, since it’s been loaded in the cache.
See also
netDone()
preMultiply
Usage
transform1
.preMultiply(
transform2
)
Description
3D transform command; alters a transform by pre-applying the positional, rotational, and scaling
effects of another transform.
If
transform2
describes a rotation of 90° about the X axis and
transform1
describes a
translation of 100 units in the Y axis,
transform1.multiply(
transform2
)
will alter this
transform so that it describes a translation followed by a rotation. The statement
transform1.preMultiply(
transform2
)
will alter this transform so that it describes a rotation
followed by a translation. The effect is that the order of operations is reversed.
Parameters
transform2
Required. Specifies the transform from which effects are pre-applied to another
transform.
Example
This statement performs a calculation that applies the transform of the model Mars to the
transform of the model Pluto:
member("scene").model("Pluto").transform.preMultiply\
(member("scene").model("Mars").transform)
Содержание DIRECTOR MX 2004
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...