MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 553

Extending flash
Table of Contents

Advertisement

Returns
A Boolean value:
JS_TRUE
JSBool JS_ExecuteScript()
Usage
JS_ExecuteScript (JSContext *cx, JSObject *obj, unsigned short *script,
unsigned int sz, jsval *rval)
Description
Method; compiles and executes a JavaScript string. If the script generates a return value, it
returns in
.
*rval
Arguments
,
JSContext *cx
JSObject *obj
*rval
The
argument is the opaque
cx
The
argument is a pointer to the object in whose context the script executes. While
obj
the script is running, the
pointer that passes to the JavaScript function.
JSObject
The
argument is a string that contains JavaScript code. If the string size is not
script
specified (see the
The
argument is the size of the string, in bytes. If sz is 0, the length of the null-
sz
terminated string is computed automatically.
The
argument is a pointer to a single
rval
stored in
.
*rval
Returns
A Boolean value:
JS_TRUE
indicates success;
,
unsigned short *script
JSContext
keyword is equal to this object. Usually this is the
this
argument), the string must be null-terminated.
sz
indicates success;
indicates failure.
JS_FALSE
,
unsigned int sz
pointer that passes to the JavaScript function.
structure. The function's return value is
jsval
indicates failure.
JS_FALSE
,
jsval
The C-level API
553

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