insertFrame()
367
See also
downloadNetThing
,
fileName (Window)
,
Member
,
preloadNetThing()
insertBackdrop
Usage
sprite(
whichSprite
).camera{(
index
)}.insertBackdrop(
index,
\
texture, locWithinSprite, rotation
)
member(
whichCastmember
).camera(
whichCamera
).\
insertBackdrop(
index
,
texture
,
locWithinSprite, rotation
)
Description
3D camera command; adds a backdrop to the camera’s list of backdrops at a specified position in
the list.
Parameters
index
Required. Specifies the index position in the camera’s list of backdrops to which the
backdrop is added.
texture
Required. Specifies the texture of the added backdrop.
locWithinSprite
Required. A 2D loc at which the backdrop is displayed in the 3D sprite. This
location is measured from the upper left corner of the sprite.
rotation
Optional. Specifies the rotation of the added backdrop.
Example
The first line of this example creates a texture called Cedar. The second line inserts that texture at
the first position in the list of backdrops of the camera of sprite 5. The backdrop is positioned at
the point (300, 120), measured from the upper left corner of the sprite. It is rotated 45°.
t1 = member("scene").texture("Cedar")
sprite(5).camera.insertBackdrop(1, t1, point(300, 120), 45)
See also
removeBackdrop
,
bevelDepth
,
overlay
insertFrame()
Usage
-- Lingo syntax
_movie.insertFrame()
// JavaScript syntax
_movie.insertFrame();
Description
Movie method; duplicates the current frame and its content.
The duplicate frame is inserted after the current frame and then becomes the current frame.
This method can be used only during a Score recording session and performs the same function as
the
duplicateFrame()
method.
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...