// output: A vehicle that is red and has 2 doors
// for comparison purposes, this is a call to valueOf()
// there is no primitive value of myVehicle, so the object is returned
// giving the same output as toString().
trace(myVehicle.valueOf());
// output: A vehicle that is red and has 2 doors
unwatch (Object.unwatch method)
public unwatch(name:String) : Boolean
Removes a watchpoint that
created. This method returns a value of
if
Object.watch()
true
the watchpoint is successfully removed,
otherwise.
false
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- A string; the name of the object property that should no longer be watched.
name:String
Returns
- A Boolean value:
if the watchpoint is successfully removed,
otherwise.
Boolean
true
false
Example
See the example for
.
Object.watch()
See also
,
watch (Object.watch method)
addProperty (Object.addProperty method)
valueOf (Object.valueOf method)
public valueOf() : Object
Returns the primitive value of the specified object. If the object does not have a primitive
value, the object is returned.
Availability: ActionScript 1.0; Flash Lite 2.0
Returns
- The primitive value of the specified object or the object itself.
Object
Object
565