A encapsulation of code generation for a graphical animated scene.
| MovieCodeGenerator | A encapsulation of code generation for a graphical animated scene. |
| Public code generation | |
| generateCode | Generates script code for a complete movie scene that can be compiled into a standalone application. |
| Private movie scene code generation | |
| generateMembersCode | Generate AS3 code for data members holding stroke sprite and shape objects. |
| generateMemberCode | Generate AS3 code for a data member holding a stroke sprite and shape object. |
| generateStrokesCode | Generate AS3 code for all methods creating stroke shapes and paths in the movie scene. |
| generateStrokeCode | Generate AS3 code for a method to create a stroke sprite, shape or path object. |
| generateSceneGraphCode | Generate AS3 code for a method to create all stroke shapes and masks. |
| generateSceneNodesCode | Generate AS3 code for a snippet to create strokes, their relationships and masks. |
| generateSceneNodeCode | Generate AS3 code for a snippet to create a stroke, add to its parent and as a mask if appropriate. |
| Private animation code generation | |
| generateAnimationCode | Generate AS3 code for a method to add a series of tweens to a timeline. |
| generateTransformCode | Generate AS3 code for initialization of matrix and color transforms. |
| generateTransitionType | Generate a symbolic transition constant from a pseudo-enumeration transition string. |
public static function generateCode( movie: MovieScene, title: String, codeStyle: Object ):String
Generates script code for a complete movie scene that can be compiled into a standalone application.
A static scene does not require any external libraries. An animated scene requires the boostworthy animation library and the TweenEx class if extended transform or filter properties are animated.
| movie | movie scene object |
| title | version decorated identification of the generating application |
| codeStyle | dynamic object with properties describing the desired code style |
an application class script
private static function generateMembersCode( scene: SceneGraph, title: String, indent: String, codeStyle: Object ):String
Generate AS3 code for data members holding stroke sprite and shape objects.
| scene | scene graph object |
| title | version decorated identification of the generating application |
| indent | string with spaces to indent each line of code |
| codeStyle | dynamic object with properties describing the desired code style |
an AS3 script snippet
private static function generateMemberCode( nodeStroke: Stroke, arg: Object ):String
Generate AS3 code for a data member holding a stroke sprite and shape object.
| nodeStroke | the stroke to generate code for |
| arg | dynamic object with a title, indent and codeStyle property |
an AS3 script snippet
private static function generateStrokesCode( scene: SceneGraph, title: String, indent: String, codeStyle: Object ):String
Generate AS3 code for all methods creating stroke shapes and paths in the movie scene.
| scene | scene graph object |
| title | version decorated identification of the generating application |
| indent | string with spaces to indent each line of code |
| codeStyle | dynamic object with properties describing the desired code style |
an AS3 script snippet
private static function generateStrokeCode( nodeStroke: Stroke, arg: Object ):String
Generate AS3 code for a method to create a stroke sprite, shape or path object.
| nodeStroke | the stroke to generate code for |
| arg | dynamic object with a title, indent and codeStyle property |
an AS3 script snippet
private static function generateSceneGraphCode( scene: SceneGraph, title: String, methodName: String, className: String, indent: String, codeStyle: Object ):String
Generate AS3 code for a method to create all stroke shapes and masks.
| scene | scene graph object |
| title | version decorated identification of the generating application |
| methodName | name of the method to be generated |
| className | name of the class being generated |
| indent | string with spaces to indent each line of code |
| codeStyle | dynamic object with properties describing the desired code style |
an AS3 script snippet
private static function generateSceneNodesCode( scene: SceneGraph, title: String, indent: String, codeStyle: Object ):String
Generate AS3 code for a snippet to create strokes, their relationships and masks.
| scene | scene graph object |
| title | version decorated identification of the generating application |
| indent | string with spaces to indent each line of code |
| codeStyle | dynamic object with properties describing the desired code style |
an AS3 script snippet
private static function generateSceneNodeCode( nodeStroke: Stroke, arg: Object ):String
Generate AS3 code for a snippet to create a stroke, add to its parent and as a mask if appropriate.
| nodeStroke | the stroke to generate code for |
| arg | dynamic object with a title, indent and codeStyle property |
an AS3 script snippet
private static function generateAnimationCode( timeline: TimelineEx, title: String, methodName: String, timelineName: String, className: String, indent: String, codeStyle: Object ):String
Generate AS3 code for a method to add a series of tweens to a timeline.
| timeline | animation timeline object |
| title | version decorated identification of the generating application |
| methodName | name of the method to be generated |
| timelineName | name of the timeline to add tweens to |
| className | name of the class being generated |
| indent | string with spaces to indent each line of code |
| codeStyle | dynamic object with properties describing the desired code style |
an AS3 script snippet
private static function generateTransformCode( tweenEx: TweenExInterface, objectName: String, indent: String ):String
Generate AS3 code for initialization of matrix and color transforms.
| tweenEx | extended tween which may require a transform object |
| objectName | name of the object being tweened |
| indent | string with spaces to indent each line of code |
an AS3 script snippet
Generates script code for a complete movie scene that can be compiled into a standalone application.
public static function generateCode( movie: MovieScene, title: String, codeStyle: Object ):String
Generate AS3 code for data members holding stroke sprite and shape objects.
private static function generateMembersCode( scene: SceneGraph, title: String, indent: String, codeStyle: Object ):String
Generate AS3 code for a data member holding a stroke sprite and shape object.
private static function generateMemberCode( nodeStroke: Stroke, arg: Object ):String
Generate AS3 code for all methods creating stroke shapes and paths in the movie scene.
private static function generateStrokesCode( scene: SceneGraph, title: String, indent: String, codeStyle: Object ):String
Generate AS3 code for a method to create a stroke sprite, shape or path object.
private static function generateStrokeCode( nodeStroke: Stroke, arg: Object ):String
Generate AS3 code for a method to create all stroke shapes and masks.
private static function generateSceneGraphCode( scene: SceneGraph, title: String, methodName: String, className: String, indent: String, codeStyle: Object ):String
Generate AS3 code for a snippet to create strokes, their relationships and masks.
private static function generateSceneNodesCode( scene: SceneGraph, title: String, indent: String, codeStyle: Object ):String
Generate AS3 code for a snippet to create a stroke, add to its parent and as a mask if appropriate.
private static function generateSceneNodeCode( nodeStroke: Stroke, arg: Object ):String
Generate AS3 code for a method to add a series of tweens to a timeline.
private static function generateAnimationCode( timeline: TimelineEx, title: String, methodName: String, timelineName: String, className: String, indent: String, codeStyle: Object ):String
Generate AS3 code for initialization of matrix and color transforms.
private static function generateTransformCode( tweenEx: TweenExInterface, objectName: String, indent: String ):String
Generate a symbolic transition constant from a pseudo-enumeration transition string.
private static function generateTransitionType( transition: String ):String