FRENewObjectFromBool()

AIR 3.0 and later

Usage

FREResult FRENewObjectFromBool ( uint32_t value, FREObject* object);

Parameters

value
A uint32_t that is the value for a new ActionScript Boolean instance.

object
A pointer to an FREObject that points to the data that represents a Boolean ActionScript variable. A non-zero value corresponds to true . A zero value corresponds to false .

Returns

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

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

FRE_INVALID_ARGUMENT
The FREObject 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 create an ActionScript Boolean instance with the value parameter. The runtime sets the FREObject variable to the data corresponding to the new ActionScript instance.

// Ethnio survey code removed