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.
Содержание 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...