pathStrength
915
Setting the path of an unlinked cast member converts it to a linked cast member.
This property can be tested and set. The
pathName
property of an unlinked member is an
empty string.
This property is the same as the
fileName
property for other member types, and you can use
fileName
instead of
pathName
.
Example
The following
startMovie
script creates a new Flash cast member using the
new
command, sets
the newly created cast member’s
linked
property so that the cast member’s assets are stored in an
external file, and then sets the cast member’s
pathName
property to the location of a Flash movie
on the World Wide Web:
on startMovie
member(new(#flash)).pathName = \
"http://www.someURL.com/myFlash.swf"
end
See also
fileName (Member)
,
linked
pathStrength
Usage
member(
whichCastmember
).modelResource(
whichModelResource
).\
emitter.pathStrength
Description
3D property; when used with a model resource whose type is
#particle
,
determines how closely
the particles follow the path specified by the
path
property of the emitter. Its range starts at 0.0
(no strength - so the particles won't be attracted to the path) and continues to infinity. Its default
value is 0.1. Setting
pathStrength
to 0.0 is useful for turning the path off temporarily.
As the value of
pathStrength
gets larger, the entire particle system will get more and more stiff.
Large
pathStrength
values will tend to make the particles bounce around very quickly, unless
some dampening force is also used, such as the particle
drag
property.
This property can be tested and set.
Example
In this example, ThermoSystem is a model resource of the type #particle. This statement sets the
pathStrength
property of ThermoSystem to 0.97. If a path is outlined by ThermoSystem’s
emitter.path
property, the particles follow that path very closely.
member("Fires").modelResource("ThermoSystem").emitter.\
pathStrength = 0.97
See also
path (3D)
,
emitter
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 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...