EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Unwatch (Object.unwatch Method); Valueof (Object.valueof Method)

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Object 565
// 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 Object.watch() created. This method returns a value of true if
the watchpoint is successfully removed,
false otherwise.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
name:String - A string; the name of the object property that should no longer be watched.
Returns
Boolean - A Boolean value: true if the watchpoint is successfully removed, false otherwise.
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
Object - The primitive value of the specified object or the object itself.

Table of Contents

Related product manuals