EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 914

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...
914 Chapter 14: Properties
Example
This statement displays the pathname for the folder containing the current movie:
-- Lingo syntax
trace(_movie.path)
// JavaScript syntax
trace(_movie.path);
This statement plays the sound file Crash.aif stored in the Sounds subfolder of the current movie’s
folder:
-- Lingo syntax
sound(1).playFile(_movie.path & "Sounds\Crash.aif")
// JavaScript syntax
sound(1).playFile(_movie.path + "Sounds\\Crash.aif");
See also
Movie
path (3D)
Usage
member(whichCastmember).modelResource(whichModelResource).\
emitter.path
Description
3D property; when used with a model resource whose type is #particle, allows you to get or set
the
path property of the resource’s particle emitter.
This property is a list of vectors that define the path particles follow over their lifetime. The
default value of this property is an empty list
[].
Example
In this example, ThermoSystem is a model resource of the type #particle. This statement specifies
that the particles of ThermoSystem will follow the path outlined by the list of vectors.
member("Fires").modelResource("ThermoSystem").emitter.path = \
[vector(0,0,0), vector(15,0,0), vector(30,30,-10)]
See also
pathStrength, emitter
pathName (Flash member)
Usage
member(whichFlashMember).pathName
the pathName of member whichFlashMember
Description
Cast member property; controls the location of an external file that stores the assets of a Flash
movie cast member are stored. You can link a Flash movie to any path on a local or network drive
or to a URL.