MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 726

Director scripting reference
Table of Contents

Advertisement

Example
This statement sets the
the fog's
enabled
distances set by the fog's
property is set to 1000, the fog will begin 100 world units in front of the camera and gradually
increase in density to a distance of 1000 world units in front of the camera.
member("3d world").camera("Defaultview").fog.decayMode = #linear
See also
fog,
near
(fog),
defaultRect
Usage
-- Lingo syntax
memberObjRef.defaultRect
// JavaScript syntax
memberObjRef.defaultRect;
Description
Cast member property; controls the default size used for all new sprites created from a Flash
movie or vector shape cast member. The
that have not been stretched on the Stage. You specify the property values as a Director rectangle;
for example, rect(0,0,32,32).
The
defaultRect
property. The
defaultRectMode
cast, which means the original
originally created in Flash. Setting
defaultRectMode
This property can be tested and set.
Example
This handler accepts a cast reference and a rectangle as parameters. It then searches the specified
cast for Flash cast members and sets their
-- Lingo syntax
on setDefaultFlashRect(whichCast, whichRect)
repeat with i = 1 to castLib(whichCast).member.count
if member(i, whichCast).type = #flash then
member(i, whichCast).defaultRect = whichRect
end if
end repeat
end
726
Chapter 14: Properties
property of the fog of the camera Defaultview to
decayMode
property is set to
TRUE
and
properties. If the
near
far
far
(fog),
enabled (fog)
member property is affected by the cast member's
property is always set to
defaultRect
defaultRect
property to
.
#fixed
, the density of the fog will steadily increase between the
property is set to 100 and the
near
setting also applies to all existing sprites
defaultRect
#Flash
setting is always the size of the movie as it was
after that implicitly changes the cast member's
property to the specified rectangle.
defaultRect
#linear
defaultRectMode
when a movie is inserted into a
. If
far
member

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents