Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Object > hasOwnProperty (Object.hasOwnProperty method) | |||
public hasOwnProperty(name:String) : Boolean
Indicates whether an object has a specified property defined. This method returns true if the target object has a property that matches the string specified by the name parameter, and false otherwise. This method does not check the object's prototype chain and returns true only if the property exists on the object itself.
Availability: ActionScript 1.0; Flash Player 6
name:String -
Boolean - A Boolean value: true if the target object has the property specified by the name parameter, false otherwise.
Version 8