Object.unwatch( ) Method

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
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( )



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net