Movie

Movie
Declaration
class Movie : public RefCountBase<Movie, StatMV_Other_Mem>, public StateBag;
Description

Movie class provides the client program's interface to a playing instance of a movie clip; i.e., an independent movie with a separate timeline animation state. Movie is created by the MovieDef::CreateInstance function and is a primary user interface to a movie instance. After being created, Movie is normally configured by setting the renderer, viewport, and fscommand callback, if necessary. 

After such setup the movie is ready for playback. Its animation state can be advanced by calling Advance and it can be rendered at by calling GetDisplayHandle

In GFx, a movie snapshot is a captured state of a movie at a given point in time. By default, a snapshot is captured automatically at the end of the GFx::Movie::Advance call; it can also be captured explicitly by calling GFx::Movie::Capture. Once a snapshot is captured, its frame state becomes available for the render thread, while being stored separately from the dynamic state of the movie. When drawing a frame, the render thread calls NextCapture on a movie handle to grab the most recent snapshot and use it in rendering.

Enumerations
Enumeration 
Description 
Alignment type used for the SWF file stage, corresponds to Stage.align property in ActionScript. 
An enumeration that defines bits in the returning value from HandleEvent method. 
HitTestType describes the type of hit testing performed by the HitTest function. 
Flags used to control the speed of GC. 
Flags used for the objects report. 
Scaling mode used for the SWF file stage, corresponds to Stage.scaleMode property in ActionScript. 
Type of array being set. 
Describes the delayed assignment queuing behavior within SetVariable calls. 
Methods
Method 
Description 
Advances the movie based on the time that has passed since the last advance call. 
Explicitly forces a render tree Capture, making it available for the render thread. 
Creates an instance of an ActionScript Array object. 
Creates a function object that wraps a C++ function. 
Creates an instance of ActionScript Object. 
Creates strings that are managed by ActionScript runtime. 
Creates wide character strings that are managed by ActionScript runtime. 
Used to force garbage collector execution by the user's application. 
Forces render tree to be updated in order to apply all possible changes related to images and/or textures. 
Returns timer value, in milliseconds. 
Returns the version number of the AVM used in the movie clip. 
Obtains the background color alpha applied to the movie clip. 
Returns the number of controllers in the application for input and layout management. 
Returns the focus group index associated with the specified controller. 
Obtains the currently active frame of the movie, starting with 0. 
Returns and optionally resets the "dirty flag" that indicates whether anything was changed on the stage (and needs to be re-rendered) or not. 
Returns a display handle that should be passed to the render thread and used for movie rendering. 
Returns the configured EdgeAA mode used for the root of the render tree, which typically controls all of the movie. 
 
Obtains the total number of frames in this movie clip. 
Obtains the frame rate of the movie clip. 
Obtains the memory heap allocated for the movie view object. 
Gets the number of supported mouse cursors. 
Retrieves the mouse state, such as coordinates and buttons state. 
Obtains the movie definition that created this instance. 
Obtains the play state of the movie clip, currently either Playing or Stopped. 
Obtains the projection matrix set on a 3D movieclip. 
Describes the scale of a single pixel to the renderer. 
Obtains the safe rectangle, in pixels. 
Obtains statistics for the movie view and performs a reset for tracked counters. 
Obtains the user data handle set on the movie view. 
Obtains the value of an ActionScript variable based on its path. 
Populates a buffer with results from an ActionScript array. 
Returns the size of array buffer necessary for GetVariableArray
Obtains the value of an ActionScript variable as a Double based on its path. 
Gets the current alignment mode for the movie. 
Obtains the view matrix set on a 3D movieclip. 
Obtains the render-target surface viewport to which the movie is scaled. 
Obtains the current scale mode for the movie. 
Obtains the visibility state of a movie clip. 
Obtains the currently visible rectangle. 
Moves a playhead to a specified frame. 
Moves a playhead to a specified frame identified by a label. 
Notifies the movie view that a certain event, such as input action, character event etc has occured. 
Determines whether the movie clip has looped past its last frame. 
Determines whether a given viewport coordinate falls within a SWF file drawn component or not. 
Calls an ActionScript method on the movie clip. 
Invokes an ActionScript method on the movie clip using a format string followed by a variable argument list. 
Checks for availability of a field, method, or nested clip. 
Determines whether exit was requested by ActionScript. 
Determines if the movie has focus or not. 
Determines if the movie is paused or not. 
Returns true once rendering has been shut down after ShutdownRendering call. 
Returns whether or not the movie was instantiated by a correctly-licensed Scaleform instance. 
Scrolls viewport to make 'box' fully visible inside the 'screenRect'. 
Initializes Movie instance. 
Notifies the movie view that a mouse state has changed. 
Prints out a report about objects and links between them. 
Releases the heap and the resources allocated for movie views. 
Resets input focus the the specified controller. 
Restarts the movie from the beginning. 
Restores viewport matrix changed by MakeAreaVisible to its original state. 
Schedules garbage collection. 
Sets the background color alpha applied to the movie clip. 
Sets the background color drawn underneath the movie clip. 
Sets the expected thread the Capture function will be called from. 
Sets the number of keyboard/controllers used in the application for input and layout management. 
Associates a controller with a focus group. 
Configures the EdgeAA mode used for the root of the render tree, which typically controls all of the movie. 
Sets where to return a Value from an External Interface call. 
Sets the number of supported mouse cursors. 
 
Pauses/resumes the playback of the movie. 
Changes playback state of the movie, allowing animation to be paused and resumed. 
Sets the projection matrix for a 3D movieclip. 
Sets the safe rectangle, in pixels. 
Sets the stage orientation flag. 
Sets the user data handle for the movie view. 
Sets a variable identified by a path to a new value, specified in UTF-8 encoding. 
Sets array elements in specified range to data items of specified type. 
Sets the size of the array. 
Sets a variable identified by a path to a new value, specified as a Double
Sets the current alignment mode for the movie. 
Sets the view matrix for a 3D movie clip. 
Sets the render-target surface viewport to which the movie is scaled. 
Sets the current scale mode for the movie. 
Sets the visibility state of a movie clip. 
Shuts down rendering of the movie 
Suspends/resumes garbage collection. 
Translates the point in character's coordinate space to the point on screen (window). 
Translates the point/rectangle in Flash coordinates to screen (window) coordinates. 
Topics
Topic 
Description 
BitFlags used in MakeAreaVisible method. 
File

GFx_Player.h