MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 552

Extending flash
Table of Contents

Advertisement

JSBool JS_GetElement()
Usage
JSBool JS_GetElement(JSContext *cx, JSObject *obj, jsint idx, jsval *vp)
Description
Method; reads a single element of an array object.
Arguments
,
JSContext *cx
JSObject *obj
The
argument is the opaque
cx
The
argument is a pointer to an array object.
obj
The
argument is an integer index into the array. The first element is index 0, and
index
the last element is index (
The
argument is a pointer to a
v
array should be copied.
Returns
A Boolean value:
JS_TRUE
JSBool JS_SetElement()
Usage
JSBool JS_SetElement(JSContext *cx, JSObject *obj, jsint idx, jsval *vp)
Description
Method; writes a single element of an array object.
Arguments
JSContext *cx, JSObject *obj, unsigned int index, jsval *v
The
argument is the opaque
cx
The
argument is a pointer to an array object.
obj
The
argument is an integer index into the array. The first element is index
index
the last element is index (
The
argument is a pointer to a
v
in the array.
jsval
552
C-Level Extensibility
,
unsigned int index
pointer that passes to the JavaScript function.
JSContext
).
length - 1
where the contents of the
jsval
indicates success;
JS_FALSE
pointer that passes to the JavaScript function.
JSContext
).
length - 1
structure whose contents should be copied to the
jsval
,
jsval *v
jsval
indicates failure.
structure in the
, and
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents