Table of Contents

Object.unwatch( ) Method Flash 6

remove an existing watchpoint
someObject.unwatch(prop)

Arguments

prop

A string indicating the name of the property that should no longer be watched. The name must adhere to the rules for creating an identifier outlined under Section 15.5 in Chapter 15.

Returns

A Boolean indicating whether prop was previously being watched; true if prop exists and was previously being watched; false otherwise.

Description

The unwatch( ) method removes a watchpoint previously set on prop via the Object.watch( ) method. Once the watchpoint is removed, value assignments to prop will no longer be moderated by the watch( ) callback function. Note that a watchpoint can be removed only via Object.unwatch( )�deleting the watched property does not remove the watchpoint. For complete details, see Object.watch( ).

See Also

Object.watch( )


Table of Contents