FREGetObjectAsDouble()

AIR 3.0 and later

Usage

FREResult FREGetObjectAsDouble ( FREObject object, double *value );

Parameters

object
An FREObject.

value
A pointer to a double. The function sets this value to correspond to the Boolean, int, or Number ActionScript variable that the FREObject variable represents.

Returns

An FREResult. The possible return values include, but are not limited to, the following:

FRE_OK
The function succeeded and the value parameter is correctly set.

FRE_TYPE_MISMATCH
The FREObject parameter does not contain a Boolean, int, or Number ActionScript value.

FRE_INVALID_OBJECT
The FREObject parameter is invalid.

FRE_INVALID_ARGUMENT
The value parameter is NULL .

FRE_WRONG_THREAD
The method was called from a thread other than the one on which the runtime has an outstanding call to a native extension function.

Description

Call this function to set the value of a C double variable to the value of an ActionScript Boolean, int, or Number variable.

// Ethnio survey code removed