User Guide
475
PI
Syntax
PI
Description
Constant; returns the value of pi (π), the ratio of a circle’s circumference to its diameter, as a
floating-point number. The value is rounded to the number of decimal places set by the
floatPrecision property.
Example
This statement uses the PI constant as part of an equation for calculating the area of a circle:
set vArea = PI*power(vRadius,2)
picture (cast member property)
Syntax
member(whichCastMember).picture
the picture of member whichCastMember
Description
Cast member property; determines which image is associated with a bitmap, text, or PICT cast
member. To update changes to a cast member’s registration point or update changes to an image
after relinking it using the
fileName property, use the following statement:
member(whichCastMember).picture = member(whichCastMember).picture
where you replace whichCastMember with the name or number of the affected cast member.
Because changes to cast members are stored in RAM, this property is best used during authoring.
Avoid setting it in projectors.
The property can be tested and set.
Example
This statement sets the variable named pictHolder to the image in the cast member
named Sunset:
pictHolder = member("Sunset").picture
See also
type (sprite property)
picture (window property)
Syntax
the stage.picture
the picture of the stage
window
whichWindow.picture
the picture of window whichWindow
Description
Window property; this property provides a way to get a picture of the current contents of a
window (either the Stage window or a movie in a window).
You can apply the resulting bitmap data to an existing bitmap or use it to create a new one.