User Guide
548
on resizeWindow
Syntax
on resizeWindow
statement(s)
end
Description
System message and event handler; contains statements that run when a movie is running as a
movie in a window (MIAW) and the user resizes the window by dragging the window’s resize box
or one of its edges.
An
on resizeWindow event handler is a good place to put Lingo related to the window’s
dimensions, such as Lingo that positions sprites or crops digital video.
Example
This handler moves sprite 3 to the coordinates stored in the variable centerPlace when the
window that the movie is playing in is resized:
on resizeWindow centerPlace
sprite(3).loc = centerPlace
end
See also
drawRect, sourceRect
resolution
Syntax
member(whichCastmember).modelResource(whichModelResource).resolution
Description
3D property; allows you to get or set the resolution property of a model resource whose type is
either
#sphere or #cylinder.
Resolution controls the number of polygons used to generate the geometry of the model resource.
A larger value generates more polygons and thus results in a smoother surface. The default value
of this property is 20.
Example
This statement sets the resolution of the model resource named sphere01 to 10.0:
member("3D World").modelResource("sphere01").resolution = 10.0