StrokeUtils

A class of static helper functions for strokes.

Summary
StrokeUtilsA class of static helper functions for strokes.
Functions
convertStrokeToPathConverts a Stroke object defining a path into a Path object.
verifyPropertyTypeVerifies that the Stroke object has a transform or filter compatible with the TweenEx type by adding it as needed.

Functions

convertStrokeToPath

public static function convertStrokeToPath(strokePath: Stroke):Path

Converts a Stroke object defining a path into a Path object.  Only segment start and line/curve points are valid for a path.

Parameters

strokea Stroke object defining a path

Returns

a Path object

See also

MovieScene.convertStrokeIndexToPath

verifyPropertyType

public static function verifyPropertyType(stroke: Stroke,
tweenType: String):Boolean

Verifies that the Stroke object has a transform or filter compatible with the TweenEx type by adding it as needed.

Parameters

strokea Stroke object
tweenTypea TweenEx property type

Returns

Always true.

public static function convertStrokeToPath(strokePath: Stroke):Path
Converts a Stroke object defining a path into a Path object.
Defines a stroke object consisting of curves, line segments and primitive graphics objects.
The ‘Path’ class stores a collection of path segments, thus forming a path.
public static function verifyPropertyType(stroke: Stroke,
tweenType: String):Boolean
Verifies that the Stroke object has a transform or filter compatible with the TweenEx type by adding it as needed.
Extends the Tween class with dispose and extended properties on objects.
public function convertStrokeIndexToPath(strokeIndex: int):Path
Convert the indexed Stroke to a Path.
Close