extrude3D
305
Alternatively, define a script for the event:
<SCRIPT FOR="NameOfShockwaveInstance"
EVENT="externalEvent(aParam)"
LANGUAGE="VBScript">
'script here
</SCRIPT>
Within the movie, include the function and any parameters as part of the string for
externalEvent
:
externalEvent ("MyFunction ('parm1','parm2')")
See also
on EvalScript
extrude3D
Usage
member(
whichTextCastmember
).extrude3D(member(
which3dCastmember
))
Description
3D command; creates a new
#extruder
model resource in a 3D cast member from the text in a
text cast member.
This is not the same as using the 3D
displayMode
property of a text cast member.
To create a model using extrude3D:
1
Create a new
#extruder
model resource in a 3D cast member:
textResource = member("
textMember
").extrude3D(member\
("
3DMember
"))
2
Create a new model using the model resource created in step 1:
member("
3DMember
").newModel("myText", textResource)
Parameters
which3dCastmember
Required. The cast member within which a new
#extruder
model resource
is created.
Example
In this example, Logo is a text cast member and Scene is a 3D cast member. The first line creates
a model resource in Scene which is a 3D version of the text in Logo. The second line uses this
model resource to create a model named 3dLogo.
myTextModelResource = member("Logo").extrude3d(member("Scene"))
member("Scene").newModel("3dLogo", myTextModelResource)
See also
bevelDepth
,
bevelType
,
displayFace
,
smoothness
,
tunnelDepth
,
displayMode
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...