MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 546

Extending flash
Table of Contents

Advertisement

JSBool JS_ValueToBoolean()
Usage
JSBool JS_ValueToBoolean(JSContext *cx, jsval v, JSBool *bp);
Description
Method; extracts a function argument from a
(if possible), and passes the converted value back to the caller.
Arguments
,
JSContext *cx
jsval v
The
argument is the opaque
cx
The
argument is the
v
The
argument is a pointer to a
bp
converted value in
Returns
A Boolean value:
JS_TRUE
JSBool JS_ValueToObject()
Usage
JSBool JS_ValueToObject(JSContext *cx, jsval v, JSObject **op);
Description
Method; extracts a function argument from a
possible), and passes the converted value back to the caller. If the object is an array, use
JS_GetArrayLength()
Arguments
,
JSContext *cx
jsval v
The
argument is the opaque
cx
The
argument is the
v
The
argument is a pointer to a
op
value in
.
*op
Returns
A Boolean value:
JS_TRUE
546
C-Level Extensibility
,
JSBool *bp
JSContext
structure from which the Boolean value is to be extracted.
jsval
JSBool
.
*bp
indicates success;
and
JS_GetElement()
,
JSObject **op
JSContext
structure from which the object is to be extracted.
jsval
JSObject
indicates success;
structure, converts it to a Boolean value
jsval
pointer that passes to the JavaScript function.
Boolean value. This function stores the
indicates failure.
JS_FALSE
structure, converts it to an object (if
jsval
to read its contents.
pointer that passes to the JavaScript function.
pointer. This function stores the converted
indicates failure.
JS_FALSE

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents