Extending Flash |
|
|
|
| C-Level Extensibility > The C-level API > JSBool JS_GetElement() | |||
JSBool JS_GetElement(JSContext *cx, JSObject *obj, jsint idx, jsval *vp)
Method; reads a single element of an array object.
JSContext *cx, JSObject *obj, jsint idx, jsval *vp
cx argument is the opaque JSContext pointer that passes to the JavaScript function.obj argument is a pointer to an array object.idx argument is an integer index into the array. The first element is index 0, and the last element is index (length -1).vp argument is a pointer to a jsval where the contents of the jsval structure in the array should be copied.A Boolean value: JS_TRUE indicates success; JS_FALSE indicates failure.
|
|
|
|