User Guide

248 Chapter 12: Methods
Line 7 calls the build() command to construct the mesh.
-- Lingo syntax
nm = member("Shapes").newMesh("Plane",1,3,0,3,0)
nm.vertexList = [vector(0,0,0), vector(20,0,0), vector(20, 20, 0)]
nm.face[1].vertices = [1,2,3]
nm.colorList = [rgb(255,255,0), rgb(0, 255, 0), rgb(0,0,255)]
nm.face[1].colors = [3,2,1]
nm.generateNormals(#smooth)
nm.build()
nm = member("Shapes").newModel("TriModel", nm)
// JavaScript syntax
nm = member("Shapes").newMesh("Plane",1,3,0,3,0);
nm.vertexList = [vector(0,0,0), vector(20,0,0), vector(20, 20, 0)];
nm.face[1].vertices = [1,2,3];
nm.colorList = [rgb(255,255,0), rgb(0, 255, 0), rgb(0,0,255)];
nm.face[1].colors = [3,2,1];
nm.generateNormals(#smooth);
nm.build();
nm = member("Shapes").newModel("TriModel", nm);
See also
generateNormals(), newMesh, face[ ]
cacheDocVerify()
Usage
-- Lingo syntax
cacheDocVerify #setting
cacheDocVerify()
// JavaScript syntax
cacheDocVerify symbol(setting);
cacheDocVerify();
Description
Function; sets how often the contents of a page on the Internet are refreshed with information
from the projectors cache.
The form
cacheDocVerify() returns the current setting of the cache.
The
cacheDocVerify function is valid only for movies running in Director or as projectors. This
function is not valid for movies with Macromedia Shockwave content because they use the
network settings of the browser in which they run.
-- Lingo syntax
on resetCache
current = cacheDocVerify()
if current = #once then
alert "Turning cache verification on"
cacheDocVerify #always
end if
end