A graphical scene with a graph of shape and path layers which can be timeline animated over a background.
MovieScene | A graphical scene with a graph of shape and path layers which can be timeline animated over a background. |
Public properties | |
scene | Movie scene graph holding shapes, masks and paths. |
timeline | Movie timeline holding tweens for all animations. |
backgroundColor | Movie scene background RGB color value. |
Construction/ | |
MovieScene | Create a new movie scene object. |
dispose | Dispose of all resources used or referenced in the instance. |
Utility methods | |
render | Render all layers in the scene |
resize | Handle a stage resize event. |
convertStrokeIndexToPath | Convert the indexed Stroke to a Path. |
Public code generation | |
generateCode | Generates script code for a complete movie scene that can be compiled into a standalone application. |
public function MovieScene( onSizeChange: Function, onStrokeChange: Function, onSelectionChange: Function )
Create a new movie scene object.
onSizeChange | Callback function called when the scene graph changes size |
onStrokeChange | Callback function called when the selected stroke changes |
onSelectionChange | Callback function called when the selected stroke point changes |
onSizeChange | function movieSceneChangedSize(size:uint):void |
onStrokeChange | function movieSceneChangedSelectedStroke(stroke:Stroke):void |
onSelectionChange | function movieSceneChangedSelectedStrokePoint(index:int):void |
public function generateCode( title: String, codeStyle: Object ):String
Generates script code for a complete movie scene that can be compiled into a standalone application.
title | version decorated identification of the generating application |
codeStyle | dynamic object with properties describing the desired code style |
an application class script
Movie scene graph holding shapes, masks and paths.
public var scene: SceneGraph
Movie timeline holding tweens for all animations.
public var timeline: TimelineEx
Movie scene background RGB color value.
public var backgroundColor: uint
Create a new movie scene object.
public function MovieScene( onSizeChange: Function, onStrokeChange: Function, onSelectionChange: Function )
Dispose of all resources used or referenced in the instance.
public function dispose():void
Render all layers in the scene
public function render():void
Handle a stage resize event.
public function resize( applyMask: Function ):void
Convert the indexed Stroke to a Path.
public function convertStrokeIndexToPath( strokeIndex: int ):Path
Generates script code for a complete movie scene that can be compiled into a standalone application.
public function generateCode( title: String, codeStyle: Object ):String
Converts a Stroke object defining a path into a Path object.
public static function convertStrokeToPath( strokePath: Stroke ):Path