Jsbool Js_Valuetoobject(); Jsbool Js_Stringtovalue() - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

JSBool JS_ValueToObject()

Usage
JSBool JS_ValueToObject(JSContext *cx, jsval v, JSObject **op);
Description
Method; extracts a function argument from a
possible), and passes the converted value back to the caller. If the object is an array, use
JS_GetArrayLength()
Arguments
JSContext *cx
The
argument is the opaque
cx
The
argument is the
v
The
argument is a pointer to a
op
in
.
*op
Returns
A Boolean value:

JSBool JS_StringToValue()

Usage
JSBool JS_StringToValue(JSContext *cx, unsigned short *bytes, uint sz, jsval
*vp);
Description
Method; stores a string return value in a
object.
Arguments
JSContext *cx
The
argument is the opaque
cx
The
argument is the string to be stored in the
bytes
so the caller should free the string when it is not needed. If the string size is not specified (see
the
argument), the string must be null-terminated.
sz
The
argument is the size of the string, in bytes. If
sz
string is computed automatically.
The
argument is a pointer to the
vp
should be copied.
Returns
A Boolean value:
380
Chapter 4: C-Level Extensibility
and
JS_GetElement()
,
,
jsval v
JSObject **op
JSContext
structure from which the object is to be extracted.
jsval
JSObject
indicates success;
JS_TRUE
,
unsigned short *bytes
JSContext
indicates success;
JS_TRUE
structure, converts it to an object (if
jsval
to read its contents.
pointer that passes to the JavaScript function.
pointer. This function stores the converted value
indicates failure.
JS_FALSE
structure. It allocates a new JavaScript string
jsval
,
,
size_t sz
jsval *vp
pointer that passes to the JavaScript function.
jsval
is 0, the length of the null-terminated
sz
structure into which the contents of the string
jsval
indicates failure.
JS_FALSE
structure. The string data is copied,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents