User Guide
423
netThrottleTicks
Syntax
the netThrottleTicks
Description
System property; in the Macintosh authoring environment, allows you to control the frequency of
servicing to a network operation.
The default value is 15. The higher the value is set, the smoother the movie playback and
animation is, but less time is spent servicing any network activity. A low setting allows more time
to be spent on network operations, but will adversely affect playback and animation performance.
This property only affects the authoring environment and projectors on the Macintosh. It is
ignored on Windows or Shockwave on the Mac.
new()
Syntax
new(type)
new(type, castLib whichCast)
new(type, member whichCastMember of castLib whichCast)
variableName = new(parentScript arg1, arg2, ...)
new(script parentScriptName, value1, value2, ...)
timeout("name").new(timoutPeriod, #timeoutHandler, {, targetObject})
new(xtra "xtraName")
Description
Function; creates a new cast member, child object, timeout object, or Xtra instance and allows
you to assign of individual property values to child objects.
The Director player for Java supports this function only for the creation of child objects. When a
movie plays back as an applet, you canât use the
new function to create cast members.
For cast members, the type parameter sets the cast memberâs type. Possible predefined values
correspond to the existing cast member types:
#bitmap, #field, and so on. The new function can
also create Xtra cast member types, which can be identified by any name that the author chooses.
Itâs also possible to create a new color cursor cast member using the Custom Cursor Xtra. Use
new(#cursor) and set the properties of the resulting cast member to make them available for use.
The optional
whichCastMember and whichCast parameters specify the cast member slot and
Cast window where the new cast member is stored. When no cast member slot is specified, the
first empty slot is used. The
new function returns the cast member slot.
When the argument for the
new function is a parent script, the new function creates a
child object. The parent script should include an
on new handler that sets the child objectâs initial
state or property values and returns the
me reference to the child object.
The child object has all the handlers of the parent script. The child object also has the same
property variable names that are declared in the parent script, but each child object has its own
values for these properties.
Because a child object is a value, it can be assigned to variables, placed in lists, and passed
as a parameter.
As with other variables, you can use the
put command to display information about a child object
in the Message window.