MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 551

Extending flash
Table of Contents

Advertisement

Arguments
,
JSContext *cx
unsigned int length
The
argument is the opaque
cx
The
argument is the number of elements that the array can hold.
length
The
argument is an optional pointer to the
v
return value is not
, the initial content of the array object is undefined and can be set using the
null
JS_SetElement()
Returns
A pointer to a new array object or the value
long JS_GetArrayLength()
Usage
long JS_GetArrayLength(JSContext *cx, JSObject *obj)
Description
Method; given a pointer to an array object, gets the number of elements in the array.
Arguments
,
JSContext *cx
JSObject *obj
The
argument is the opaque
cx
The
argument is a pointer to an array object.
obj
Returns
The number of elements in the array or -1 upon failure.
,
jsval *v
JSContext
,
is an array that contains
null
v
function.
JSContext
pointer that passes to the JavaScript function.
to be stored in the array. If the
jsvals
elements. If the return value is
length
upon failure.
null
pointer that passes to the JavaScript function.
The C-level API
551

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