MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 547

Extending flash
Table of Contents

Advertisement

JSBool JS_StringToValue()
Usage
JSBool JS_StringToValue(JSContext *cx, unsigned short *bytes, uint sz,
jsval *vp);
Description
Method; stores a string return value in a
string object.
Arguments
,
JSContext *cx
unsigned short *bytes
The
argument is the opaque
cx
The
argument is the string to be stored in the
bytes
copied, so the caller should free the string when it is not needed. If the string size is not
specified (see the
The
argument is the size of the string, in bytes. If
sz
null-terminated string is computed automatically.
The
argument is a pointer to the
vp
should be copied.
Returns
A Boolean value:
JS_TRUE
JSBool JS_DoubleToValue()
Usage
JSBool JS_DoubleToValue(JSContext *cx, double dv, jsval *vp);
Description
Method; stores a floating-point number return value in a
Arguments
,
JSContext *cx
double dv
The
argument is the opaque
cx
The
argument is an 8-byte floating-point number.
dv
The
argument is a pointer to the
vp
should be copied.
jsval
JSContext
argument), the string must be null-terminated.
sz
jsval
indicates success;
,
jsval *vp
JSContext
jsval
structure. It allocates a new JavaScript
,
,
size_t sz
jsval *vp
pointer that passes to the JavaScript function.
structure. The string data is
jsval
is 0, the length of the
sz
structure into which the contents of the string
indicates failure.
JS_FALSE
structure.
jsval
pointer that passes to the JavaScript function.
structure into which the contents of the double
The C-level API
547

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

This manual is also suitable for:

Flash 8

Table of Contents