Scaleform::GFx::Value
class Value : public Value;
Value holds a simple or complex type and the corresponding value. These values can be passed to and from the application context to the AS runtime.
The supported types are:
Undefined |
The AS undefined value. |
Null |
The AS null value. |
Boolean |
The AS Boolean type (C++ bool analogue). |
Number |
The AS Number type (C++ double analogue). |
The AS String type. Can be a string managed by the application, or a string from the AS runtime. | |
StringW | |
Object |
The AS Object type (and all objects derived from it). A special API interface (ObjectInterface) is provided to manipulate such objects. |
Array |
A special case of the Object type. An additional API (ObjectInterface) is provided to manipulate AS arrays. |
DisplayObject |
A special case of the Object type. Corresponds to entities on the stage (MovieClips, Buttons, and TextFields). A custom API (DisplayInfo) is provided to manipulate display properties of such objects. |
Regarding strings, the application is expected to manage their lifetimes when Values are assigned const char* or const wchar_t* pointers. Strings returned from the AS runtime are managed by the runtime. To create a string that is managed by the runtime, use the Movie::CreateString() or Movie::CreateStringW() method.
Regarding objects, Values are of type Object (and Array, DisplayObject) are returned by the AS runtime. The application can create instances of the base Object class type, by using the Movie::CreateObject() method. This method also takes a class name that allows users to create instances of specific classes. To create an instance of Array, the Movie::CreateArray() method can be used. Currently, there is no interface to create instances on the stage (of type DisplayObject).
Values are expected to be non-movable, to the tracking mechanism in debug builds. If Values are stored in a dynamic array, use a C++ compliant dynamic array type (such as the STL vector, or the ArrayCPP container). These guarantee that the Values are destroyed and created appropriately on container resize.
Class |
Description |
Structure to modify display properties of a display object. |
Enumeration |
Description |
The type of value stored in Value. |
Method |
Description |
Attaches an instance of a library symbol onto the parent MovieClip. | |
Removes all elements from an array. | |
Creates an empty MovieClip and attaches it onto the parent MovieClip. | |
Deletes a member from an object. | |
Retrieves the size of an array object. | |
Returns a value of type Boolean. | |
Retrieves the color transformation matrix of the display object. | |
Retrieves the display properties of a display object (MovieClips, Buttons and TextFields). | |
Retrieves the display matrix of a display object. | |
Retrieves a specific element from the array by array index. | |
Returns a value of type integer. | |
Returns a value of type unsigned integer. | |
Retrieves the transformation matrix of a three-dimensional display object. | |
Retrieves a member of an object. | |
Retrieves the Movie instance that owns this object. | |
Returns a value of type number. | |
Returns a value of type string. | |
Returns a value of type wide string. | |
Retrieves the raw text of a TextField. | |
Retrieves the HTML code of a TextField. | |
Returns type based on which you can interpret the value. | |
Gets the user data object installed with a VM object held by the GFx::Value. | |
Retrieves the world matrix of a display object. | |
Request the MovieClip referenced by the Value to go to and play a specific frame. | |
Request the MovieClip referenced by the Value to go to and stop at a specific frame. | |
Retrieves the size of the ActionScript 3 ByteArray. | |
Checks if an object member exists. | |
Calls a method on an object. | |
Returns the pointer of the raw data. | |
Calls a closure object. Only supported in ActionScript 3. | |
Determines whether the type is of complex array type or not. | |
Determines whether the type is of Boolean type or not. | |
Checks if an ActionScript 3 Object is of ByteArray type. | |
Determines whether the type is a closure or not. Only supported in ActionScript 3. | |
Checks if the DisplayObject held by the GFx::Value is on the stage. | |
Determines whether the type is of display object type or not. | |
Determines whether the type is of null type or not. | |
Returns the parent of the display object. | |
Determines whether the type is of integer type or not. | |
Determines whether the type is of unsigned integer type or not. | |
Determines whether the type is of number type or not. | |
Determines whether the type is of numeric type or not. | |
Checks whether this is an instance of the specified class name. | |
Determines whether the type is of complex type (Object, Array, MovieClip, etc) or not. | |
Set if value was referencing managed value and the owner Movie/VM was destroyed. | |
Determines whether the type is of string type or not. | |
Determines whether the type is of wide character string type or not. | |
Determines whether the type is of undefined value type or not. | |
Remove an element from the back of an array. | |
Adds an element to the back of an array. | |
Removes an element from a specific array index. | |
Remove a range of elements from an array. | |
Reads bytes from an ActionSCript 3 ByteArray object to a byte buffer. | |
Set the size of an array object. | |
Sets a Boolean value and type to Boolean. | |
Sets the color transformation matrix of the display object. | |
Sets the size of the array in bytes. | |
Marks a value to be converted to the Boolean type when assigned from within GFx APIs. | |
Marks a value to be converted to a number type when assigned from within GFx APIs. | |
Marks a value to be converted to the character string type when assigned from within GFx APIs. | |
Marks a value to be converted to the wide character string type when assigned from within GFx APIs. | |
Sets the display properties of a display object (MovieClips, Buttons and TextFields). | |
Sets the display matrix of a display object. | |
Set a specific element in the array by array index. | |
Sets a value and type to integer type. | |
Sets a value and type to unsigned integer type. | |
Sets the transformation matrix of a three-dimensional display object. | |
Set a member of an object. | |
Sets a value and type to Null. | |
Sets a value and type to UTF-8 string type. | |
Sets a value and type to wide character string type. | |
Sets the text of a TextField. | |
Sets HTML text on a TextField. | |
Sets a value and type to number type. | |
Sets a value and type to undefined type. | |
Sets a user data object with a VM object held by the GFx::Value. | |
Converts Value to a string variable. | |
Converts a value into a wide character string. | |
Initializes Value object. | |
Visit the elements of an array. | |
Visit the members of an object. | |
Writes bytes into an ActionScript 3 ByteArray object. |
GFx_Player.h