Extending Flash |
|
|
|
| C-Level Extensibility > The C-level API > unsigned short *JS_ObjectType() | |||
unsigned short *JS_ObjectType(JSObject *obj);
Method; given an object reference, returns the class name of the object. For example, if the object is a DOM object, the function returns "Document". If the object is a node in the document, the function returns "Element". For an array object, the function returns "Array".
|
NOTE |
Do not modify the returned buffer pointer, or you might corrupt the data structures of the JavaScript interpreter. |
JSObject *obj
JS_ValueToObject() function.A pointer to a null-terminated string. The caller should not free this string when it finishes.
|
|
|
|