Use the ActionScript Vector and Array classes to efficiently
pass arrays between the ActionScript side and native side of your
extension. In your native functions, an input parameter, output
parameter, or return value can correspond to an ActionScript Array
or Vector class object.
As with other ActionScript class objects, an FREObject variable
is the native side representation of an ActionScript Array or Vector
object. The C APIs provide functions for manipulating an Array or
Vector class object using an FREObject variable.
Use the following C API functions to get and set the length of
an Array or Vector object:
Use the following C API functions to get and set an element of
an Array or Vector object:
-
FREGetArrayElementAt()
FREResult FREGetArrayElementAt(
FREObject arrayOrVector,
uint32_t index,
FREObject* value
);
-
FRESetArrayElementAt()
FREResult FRESetArrayElementAt(
FREObject arrayOrVector,
uint32_t index,
FREObject value
);
|
|
|