Extending Flash |
|
|
|
| C-Level Extensibility > The C-level API > JSObject *JS_NewArrayObject() | |||
JSObject *JS_NewArrayObject(JSContext *cx, unsigned int length [, jsval *v])
Method; creates a new object that contains an array of JSVals.
JSContext *cx, unsigned int length, jsval *v
cx argument is the opaque JSContext pointer that passes to the JavaScript function.length argument is the number of elements that the array can hold.v argument is an optional pointer to the jsvals to be stored in the array. If the return value is not null, v is an array that contains length elements. If the return value is null, the initial content of the array object is undefined and can be set using the JS_SetElement() function.A pointer to a new array object or the value null upon failure.
|
|
|
|