EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 457

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...
pointAt 457
Parameters
intH
Required. An integer that specifies the horizontal coordinate of the point.
intV Required. An integer that specifies the vertical coordinate of the point.
Example
This statement sets the variable lastLocation to the point (250, 400):
-- Lingo syntax
lastLocation = point(250, 400)
// JavaScript syntax
var lastLocation = point(250, 400);
This statement adds 5 pixels to the horizontal coordinate of the point assigned to the variable
myPoint:
-- Lingo syntax
myPoint.locH = myPoint.locH + 5
// JavaScript syntax
myPoint.locH = myPoint.locH + 5;
In Lingo only, the following statements set a sprite’s Stage coordinates to mouseH and mouseV plus
10 pixels. The two statements are equivalent.
-- Lingo syntax
sprite(_mouse.clickOn).loc = point(_mouse.mouseH, _mouse.mouseV) \
+ point(10, 10)
sprite(_mouse.clickOn).loc = _mouse.mouseLoc + 10
See also
locH, locV
pointAt
Usage
member(whichCastmember).model(whichModel).pointAt\
(vectorPosition{, vectorUp})
member(whichCastmember).camera(whichCamera).pointAt\
(vectorPosition{, vectorUp})
member(whichCastmember).light(whichLight).pointAt\
(vectorPosition{, vectorUp})
member(whichCastmember).group(whichGroup).pointAt\
(vectorPosition{, vectorUp})
Description
3D command; rotates the referenced object so that its forward direction vector points at a
specified world relative position, then it rotates the referenced object to point it’s up direction
vector in the direction hinted at by a specified relative vector.
The object’s front and up direction vectors are defined by the object’s
pointAtOrientation
property.