MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 545

Extending flash
Table of Contents

Advertisement

JSBool JS_ValueToInteger()
Usage
JSBool JS_ValueToInteger(JSContext *cx, jsval v, long *lp);
Description
Method; extracts a function argument from a
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 4-byte integer. This function stores the converted value
lp
in
.
*lp
Returns
A Boolean value:
JS_TRUE
JSBool JS_ValueToDouble()
Usage
JSBool JS_ValueToDouble(JSContext *cx, jsval v, double *dp);
Description
Method; extracts a function argument from a
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 an 8-byte double. This function stores the converted
dp
value in
.
*dp
Returns
A Boolean value:
JS_TRUE
jsval
,
long *lp
JSContext
structure from which the integer is to be extracted.
jsval
indicates success;
JS_FALSE
jsval
,
double *dp
JSContext
structure from which the double is to be extracted.
jsval
indicates success;
JS_FALSE
structure, converts it to an integer (if
pointer that passes to the JavaScript function.
indicates failure.
structure, converts it to a double (if
pointer that passed to the JavaScript function.
indicates failure.
The C-level API
545

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